read
Retrieve file contents or directory listings from the AI knowledge vault. Specify a relative path and optional depth or size limits to control the output.
Instructions
Read a file or directory listing from the AI knowledge vault.
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": "read"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Relative path within vault. Use '.' for root. | |
| depth | No | Directory listing depth (default 1) | |
| max_bytes | No | Max file bytes to return (default 65536, cap 10485760) | |
| workspace_path | No | Absolute thread workspace directory; must map to this project. Omit only when the server cwd is the thread workspace. |