read
Access file contents from a project directory, with path traversal blocked to ensure only files inside the designated project root are readable.
Instructions
Read a file from the project directory. Path traversal is blocked.
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>",
"project_path": "<project_path>"
},
"name": "read"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Path relative to project_path | |
| project_path | Yes | Project root (absolute path) |