opencode_message_send
Send a prompt to an AI session and wait for the AI response, enabling MCP clients to submit queries and retrieve model output over HTTP.
Instructions
Send a prompt to a session and wait for the AI response.
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_message_send"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| agent | No | ||
| format | No | ||
| system | No | ||
| modelID | No | ||
| noReply | No | ||
| variant | No | ||
| directory | No | Project directory to target. Optional; defaults to the server default project. | |
| sessionId | Yes | ||
| providerID | No |