read_code
Read numbered lines from a source file, research spec, or modding note, up to 300 per call, with a GitHub permalink to cite. Start a few lines above a hit for context.
Instructions
Read lines of a source file, research spec or modding note, numbered, with a GitHub permalink to cite. Up to 300 lines per call. Start a little above a hit for context. source: the one the path came from, as for find_symbol and search_code.
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": {
"path": "<path>",
"start": "<start>"
},
"name": "read_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | ||
| path | Yes | ||
| start | Yes | ||
| source | No | d2moo |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |