ait_slice_context
Returns a token-efficient structural slice of one known Python symbol—source, signature, docstring, variables, calls, and callers—so you can inspect its implementation without reading the whole file.
Instructions
Return a token-efficient structural slice of exactly one symbol: its source text, signature, docstring, variable table, outgoing calls, callers and optionally the bodies of its callees. USE WHEN: you know the symbol name and need its implementation without reading the whole file. DO NOT USE: for whole-file or repository review (use ait_review), or when the symbol name is unknown — locate it first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| depth | No | Call-graph hops to expand (0 = signature only, 3 = maximum). Out-of-range values are rejected, not clamped. | |
| file_path | Yes | Existing Python file that contains the symbol, e.g. src/ait/slicer.py. | |
| symbol_name | Yes | Function or class name; qualify it as Class.method when ambiguous, e.g. Engine.scan. |