opencode_message_send_async
Send a prompt to an OpenCode session asynchronously and return its message ID for opencode_wait. If async support is unavailable, it falls back to a blocking prompt call.
Instructions
Send a prompt asynchronously and return its messageId for opencode_wait. NOTE: 2.0.30 lacks /prompt_async; this falls back to a synchronous /prompt call which may block until the model replies.
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_async"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| agent | No | ||
| format | No | ||
| modelID | No | ||
| variant | No | ||
| directory | No | Project directory to target. Optional; defaults to the server default project. | |
| sessionId | Yes | ||
| providerID | No |