list_file_symbols
List symbols in one file (name + kind + line bounds). Step 1 of the two-step read: get line bounds, then pass startLine/endLine to source (op:read) for that slice only (~4-15x fewer tokens). For one symbol + signature, use find_node {symbol, filePath}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| feedback | No | Optional: report how a previous answer worked out; piggybacks on any call. | |
| filePath | Yes | Repo-relative file path to list symbols for. | |
| commitSha | No | Pin reads to one indexed revision (7-40 hex). Graph tools error with revision_not_indexed when it is not an indexed revision of the scoped repository, or revision_not_servable when that revision's graph was superseded by a later reindex, and echo the revision served back as commitSha; source ops read git objects, so any commit works there. Exception: a kept revision (revisions rows flagged architectureSnapshot) still serves map view:"architecture" as a preserved snapshot. | |
| projectId | No | Project id from init/list_projects. Omit for the active project. | |
| repository | No | Repository full name, e.g. "owner/repo". Omit when the project has one repository. |