opencode_file_read
Read any file from your OpenCode project by path and return its contents as text, giving IDEs and AI clients direct access to project source files.
Instructions
Read a file from the OpenCode project. Returns the file content as text.
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 relative to project root |