Types
inspect_file
Inspect a file's symbol outline, TypeScript-resolved component props/emits/slots, and outbound HTTP calls without reading implementation bodies.
inspect_file lets an agent inspect a component or TypeScript module's public interface without loading the whole file body.
Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
path | string (required) | — | Absolute or workspace-relative path (.vue, .tsx, .jsx, .svelte, .astro, .ts, .js). |
root | string | session root | Workspace root directory. |
sections | Array<'outline' | 'contract' | 'boundaries' | 'imports'> | ['outline', 'contract', 'boundaries'] | Which sections to include. |
resolve_types | boolean | true | Use the TypeScript TypeChecker to expand external types and resolve 1-hop composable HTTP calls. Set false for fast graph-only reads. |
format | 'text' | 'json' | 'text' | Output format. |
max_bytes | integer (>= 512) | 16384 | Maximum UTF-8 response size. |
What Each Section Returns
outline: Every symbol in the file (component,function,class,method,composable,store,type,interface,enum,variable,slot) with line ranges,symbolId, and a hash-verifiedsourceRef.contract:- Expands external cross-package types, generics,
Omit<>,Pick<>, and intersections via TypeScript (e.g. VuedefineProps<Omit<OrderDTO, 'internalNote'> & { compact?: boolean }>(), Reactinterface Props extends BaseProps, Svelte$props<T>()). - Lists
props,emits,models(defineModel/v-model),slots, rendered child components, andrenderBoundary.
- Expands external cross-package types, generics,
boundaries:- Finds inline HTTP calls (
fetch,$fetch,useFetch,useAsyncData, Axios,useSWR,useQuery) and 1-hop calls made inside imported or Nuxt auto-imported composables. - Matches outbound URLs against indexed fullstack API routes (
server/api/**,app/api/**) to provide abackendTargetHint. - Emits
DYNAMIC_HTTP_METHODwhen the HTTP method is computed at runtime.
- Finds inline HTTP calls (
imports: Static and dynamic imports with their resolved workspace path or package name.omissions: Flags dynamic prop spreads (v-bind="attrs",{...props}) withsourceRefhandles so the agent knows what must be checked manually.