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

ParameterTypeDefaultDescription
pathstring (required)—Absolute or workspace-relative path (.vue, .tsx, .jsx, .svelte, .astro, .ts, .js).
rootstringsession rootWorkspace root directory.
sectionsArray<'outline' | 'contract' | 'boundaries' | 'imports'>['outline', 'contract', 'boundaries']Which sections to include.
resolve_typesbooleantrueUse 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_bytesinteger (>= 512)16384Maximum 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-verified sourceRef.
  • contract:
    • Expands external cross-package types, generics, Omit<>, Pick<>, and intersections via TypeScript (e.g. Vue defineProps<Omit<OrderDTO, 'internalNote'> & { compact?: boolean }>(), React interface Props extends BaseProps, Svelte $props<T>()).
    • Lists props, emits, models (defineModel / v-model), slots, rendered child components, and renderBoundary.
  • 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 a backendTargetHint.
    • Emits DYNAMIC_HTTP_METHOD when the HTTP method is computed at runtime.
  • imports: Static and dynamic imports with their resolved workspace path or package name.
  • omissions: Flags dynamic prop spreads (v-bind="attrs", {...props}) with sourceRef handles so the agent knows what must be checked manually.