get_symbol
Retrieve the full source code of a specific function or class by providing its name and file path within a repository.
Instructions
Get the full source code of a specific function or class by name.
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": {
"file_path": "<file_path>",
"symbol_name": "<symbol_name>"
},
"name": "get_symbol"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | path relative to the repo root (e.g., "src/main.py" or "calculator.py") | |
| symbol_name | Yes | name of the function or class to retrieve |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |