kernel_code_read
Read project source files safely with line limits and offsets. Restricted to src so .env, credentials, node_modules, and data stay unreadable.
Instructions
Read a source file from the project (read-only). Restricted to project src — cannot read .env, credentials, node_modules, or data.
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": "kernel_code_read"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Relative path from project root (e.g. 'src/core/logger.ts') | |
| limit | No | Max lines to return (default: 200) (max 1000) | |
| offset | No | Start line (1-based, default: 1) |