Send a follow-up message to a session
send_messageContinue an existing delegated OpenCode session by sending a follow-up message; context and permissions persist, and file edits or shell access can be changed.
Instructions
Continue an existing delegated session with another message. The agent keeps its previous context and its permission level; allow_edits / allow_bash can change that level for this and later messages.
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": {
"session_id": "<session_id>",
"message": "<message>"
},
"name": "send_message"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message | Yes | Follow-up instruction or question. | |
| allow_bash | No | Grant (true) or revoke (false) shell commands from this message onward. Omit to keep the session's current level. | |
| session_id | Yes | Session id returned by delegate_task/create_session. | |
| allow_edits | No | Grant (true) or revoke (false) file edits from this message onward. Omit to keep the session's current level. |