Send a message to a DSH session
dsh_send_messageSend one user message to an existing session, wait for the turn to complete, and return assistant text, tool-call summary, and usage; permission requests are denied unless explicitly allowed.
Instructions
Send one user text message to an existing session via ACP session/prompt and wait for the turn to settle. Exactly one prompt may be in flight per session. Returns the assistant text, a tool-call summary and usage. DSH internal thoughts (agent_thought_chunk) are NOT returned unless the operator set DSH_CODEX_INCLUDE_THOUGHTS. Permission requests made by DSH tools are DENIED unless permission_policy is explicitly "allow_once"; they are never auto-approved.
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>",
"text": "<text>"
},
"name": "dsh_send_message"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | User message text. | |
| session_id | Yes | Explicit session id (never defaulted to "most recent"). | |
| timeout_ms | No | Prompt settlement timeout; capped by the bridge prompt timeout. | |
| permission_policy | No | How to answer DSH tool permission requests for this turn. | deny |