opencode_tool
Lists available OpenCode tool IDs or returns tools with JSON schemas for a chosen provider and model, so you can discover which tools an agent can use.
Instructions
Discover available tools in OpenCode. Actions: ids (list all tool IDs), list (get tools with JSON schema for a specific provider/model).
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": {
"action": "<action>"
},
"name": "opencode_tool"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Model ID (required for list) | |
| action | Yes | ||
| provider | No | Provider ID (required for list) |