Prompt an OpenCode session
opencode_session_promptSend a message to a session and return the final answer. By default only a summary is returned: tool calls, intermediate steps and reasoning stay inside OpenCode, so the caller's context is not polluted.
Instructions
Send a message to a session and return the final answer. By default only a summary is returned: tool calls, intermediate steps and reasoning stay inside OpenCode, so the caller's context is not polluted. Set verbosity='full' only when you explicitly need the transcript. Attach files with files (path or data: URI). Set wait=false for fire-and-forget.
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": {
"sessionID": "<sessionID>",
"text": "<text>"
},
"name": "opencode_session_prompt"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The prompt text | |
| wait | No | Wait for the run to finish (default true) | |
| files | No | ||
| agents | No | Agents the model may delegate to | |
| skills | No | ||
| sessionID | Yes | ||
| timeoutMs | No | Default 45000 (kept under typical MCP client timeouts) | |
| verbosity | No | summary (default). 'full' is admin-only and usually disabled |