Read file
file_readRead a UTF-8 file from a specified workspace. Provide the workspace ID and file path to retrieve content, with optional offset and limit for partial access.
Instructions
Read a UTF-8 file inside an open workspace.
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": {
"workspaceId": "<workspaceId>",
"path": "<path>"
},
"name": "file_read"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workspaceId | Yes | ||
| path | Yes | ||
| offset | No | ||
| limit | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| content | Yes | ||
| totalLines | Yes | ||
| returnedLines | Yes | ||
| offset | Yes | ||
| limited | Yes |