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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"symbol": "<symbol>"
},
"name": "get_symbol_context"
}
}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 |