Fs Read File
fs_read_fileReads text files from allowlisted directories, enforcing a size cap and blocking path traversal through symlinks or '..' sequences.
Instructions
Read a file under allowlisted roots with a hard size limit.
Symlink and .. escapes fail closed. Content is UTF-8 decoded with
replacement characters; truncated is true when the file exceeded the cap.
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": "fs_read_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| max_bytes | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||