Read a 4.2BSD source file
read_source_fileRead a source file from the 4.2BSD tree by its path, optionally within a line range. Fetches up to 1500 lines.
Instructions
Read a source file from the 4.2BSD tree by path (e.g. "sys/sys/sysent.c" or "src/lib/libc/gen/read.c"). Optionally restrict to a line range. At most 1500 lines are returned.
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>"
},
"name": "read_source_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | File path in the source tree, e.g. "sys/netinet/tcp_input.c" | |
| end_line | No | Last line to read (inclusive) | |
| start_line | No | First line to read |