opencode_session_prompt
Send a prompt to an existing OpenCode session to continue coding tasks; optionally attach files or add context without triggering an AI response.
Instructions
Send a prompt to an existing OpenCode session.
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>",
"prompt": "<prompt>"
},
"name": "opencode_session_prompt"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | No | File paths to attach | |
| prompt | Yes | The message to send | |
| noReply | No | Add context without triggering AI response | |
| sessionId | Yes | Session ID from opencode_session_create |