ctx_skeleton
Get a compact structural map of a source file's public API before editing—signatures, types, exports, and doc comments are preserved while function bodies are stripped.
Instructions
Return a body-less structural skeleton of one source file as {path, language, skeleton}. The skeleton preserves signatures, types, exports and doc comments but strips function bodies, so it is a compact map of a file's public API and structure. Use before editing a file to understand its shape without reading the whole body. path is project-relative or absolute (must be inside the project; traversal is rejected). Set with_stats=true to also include {stats} (symbol counts). Only paths for supported languages can be resolved (error otherwise); use ctx_search (files=true) to confirm a path first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Project-relative or absolute file path. Paths outside the project root are rejected. Required. | |
| with_stats | No | When true, include a {stats} field with symbol counts. Default false. |