Get symbol context
get_symbol_contextRetrieve definitions and changesets for code symbols to understand their context before making edits.
Instructions
Purpose: Find known code graph entities that match a symbol name. When to use: call before modifying a function, class, method, or variable so the agent can see definitions and related changesets. Inputs: symbol is the name to match; limit caps returned entities. Side effects: none beyond database reads. Output: matching entities with file locations, workspace data, related changesets, and evidence refs. Failure modes: returns an empty list when the code graph has not indexed the symbol.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of matching code entities to return. | |
| symbol | Yes | Function, class, method, or other code symbol name to look up. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |