read
Fetch file content from a workspace while returning a file revision needed for subsequent edit or write operations. Use offset and limit to retrieve additional context.
Instructions
Read actual file content using Pi. Returns a file revision for subsequent edit/write preconditions. Use offset/limit for more context.
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": {
"workspace_id": "<workspace_id>",
"path": "<path>"
},
"name": "read"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path or path relative to the workspace. Home is a starting directory, not a sandbox. | |
| limit | No | ||
| offset | No | ||
| workspace_id | Yes |