Orient on a symbol
orientFetch a symbol's signature, body, callers, callees, tests, and implementations from language-server indexes to understand code before broad file reads.
Instructions
Compact source context from language-server indexes: signature, body, callers, callees, tests, implementations and relevant files. Use before broad file reads in Swift, Rust, C/C++, TypeScript/JavaScript, Python and WebAssembly WAT projects. In mixed workspaces specify profile or use path:line:column. No cross-language/FFI edges are inferred. Increase up/down only when needed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| up | No | How many levels of callers to walk (default 2: test cases usually sit one helper above the code they exercise). | |
| down | No | How many levels of callees to walk (default 1). | |
| symbol | Yes | A function, method, type or property: "updateLocation", "Engine.updateLocation", or an exact position "Sources/Engine.swift:204:10" (1-based line:column, on the name). | |
| profile | No | Source-language profile; required for bare names in mixed workspaces. | |
| project | No | Workspace-relative project directory, e.g. tools/driver for a nested Cargo package. | |
| max_nodes | No | Maximum graph nodes per direction and reference contexts; lower it for compact answers. | |
| include_body | No | Include the symbol's source body. | |
| max_body_lines | No | Truncate the body after this many lines. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | ||
| root | No | ||
| stats | Yes | ||
| tests | Yes | ||
| symbol | Yes | ||
| callees | Yes | ||
| callers | Yes | ||
| profile | No | ||
| warnings | No | ||
| freshness | Yes | ||
| truncated | Yes | ||
| live_files | Yes | Files that can affect or be affected by the symbol within the walked depth. | |
| references | No | For non-callables or servers without hierarchy: references grouped by file. | |
| test_run_hint | No | ||
| type_hierarchy | No | ||
| implementations | Yes | ||
| reference_contexts | No | ||
| project_source_files | Yes | ||
| external_callees_omitted | Yes | SDK / package callees dropped from `callees`. |