opencode_file_read
Reads the contents of a specified file from an OpenCode server file path. Provide a path to retrieve file content through the /api/fs/read endpoint.
Instructions
Read the content of a file (via /api/fs/read/{path}).
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": "opencode_file_read"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | File path to read | |
| directory | No |