read_project_source
Retrieve implementation source code for a class, function, or struct, displaying actual lines from disk with line numbers. For classes, includes both header and implementation files.
Instructions
Get the implementation source code for a class, function, or struct in the project.
Shows the actual source lines from disk with line numbers. For classes, shows both .h declaration and .cpp implementation if available.
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": "read_project_source"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | Yes | ||
| include_header | No | ||
| max_lines | No | ||
| members_only | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |