read_file
Reads file content from specified paths, with option to allow external access outside project root after explicit user approval.
Instructions
Read file content.
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": {
"filePath": "<filePath>"
},
"name": "read_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | File path | |
| allow_external_access | No | Set to true to allow reading files outside the project root. User must explicitly approve this action. |