read
Safely loads one text file from the project root, enabling AI agents to inspect source contents while blocking path escapes and rejecting binary or oversized files.
Instructions
Read one text file. Paths cannot leave the root; binary and oversized files are rejected.
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>"
},
"name": "read"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Local project directory. Defaults to the server's working directory. | |
| format | No | Output format: 'markdown' (default) or 'json' (structured envelope). | markdown |
| file_path | Yes | Path of the file relative to the project root. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |