get_code_snippet
Retrieve source code for a named symbol with configurable context lines, so you can inspect exact code without reading entire files.
Instructions
Read source code for a symbol by its name. More precise than reading entire files.
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": {
"name": "<name>"
},
"name": "get_code_snippet"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Symbol name | |
| project | No | Project name | default |
| context_lines | No | Lines of context before/after |