send_to
Send text or key presses to a specific agent or surface, with delivery receipts and verification status for each submission.
Instructions
Send text or a key through the shared delivery engine. Never send a Return yourself for a message; send_to submits messages. Key-Return is for pickers, menus, and permission prompts. Every receipt includes caller_agent_id (null when unknown). Workers with collab_path cannot address their own parent or ancestor leads in any mode; append to that collab file instead. Unknown callers remain allowed. Lead-originated and engine-internal pushes remain allowed. Targets may be one agent, structured agent targeting, or a raw surface in surface/command/key mode. A clean verified success returns up to six mode-specific core fields by default: text/command mode returns ok, retry_count, target identity, delivery_state, submitted, and delivery_id when available; key mode returns ok, retry_count, surface, key, submit_verified, and submit_verification_reason. A degraded transport, queued-behind-turn landing, or deduplicated send adds its warning or status field. Pass verbose=true for the full legacy receipt; non-success keeps full diagnostics automatically.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | agent | |
| text | No | Max 2-3 short lines. Longer payloads BREAK the receiving pane — write the payload to a file and send one line: `Read and follow <path>`. Text to send. Capped at 500 inline UTF-8 bytes by default. | |
| target | No | ||
| surface | No | ||
| verbose | No | Return the full legacy success receipt, including transport and timing diagnostics. Failures always keep full detail. | |
| agent_id | No | ||
| targeting | No | ||
| workspace | No | ||
| allow_busy | No | Deprecated no-op. Safety gates still refuse text at a picker/menu or permission prompt; use mode=key to drive those deliberately. | |
| background | No | ||
| chunk_size | No | ||
| press_enter | No | Press enter after sending text | |
| rename_to_task | No | ||
| boot_prompt_path | No | ||
| allow_long_inline | No | Bypass the inline length and multi-paragraph safety guards for a deliberate raw send. Large allowed sends keep the existing chunked delivery behavior. | |
| boot_prompt_timeout_ms | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| key | No | ||
| model | No | ||
| title | No | ||
| typed | No | ||
| health | No | ||
| screen | No | ||
| status | No | ||
| command | No | ||
| surface | No | ||
| accepted | No | ||
| agent_id | No | ||
| delivery | No | ||
| receipts | No | ||
| terminal | No | ||
| delivered | No | ||
| agent_type | No | ||
| delivery_id | No | ||
| done_marker | No | ||
| report_path | No | ||
| retry_count | Yes | ||
| rpc_methods | No | ||
| duplicate_of | No | ||
| contract_path | No | ||
| delivery_state | No | ||
| registry_state | No | ||
| state_conflict | No | ||
| needs_attention | No | ||
| submit_evidence | No | ||
| submit_verified | No | ||
| attention_reason | No | ||
| submit_attempted | No | ||
| boot_prompt_bytes | No | ||
| submit_dispatched | No | ||
| boot_prompt_receipt | No | ||
| boot_prompt_warning | No | ||
| boot_prompt_delivered | No | ||
| coordination_footer_note | No | ||
| coordination_footer_bytes | No | ||
| boot_prompt_submit_verified | No | ||
| coordination_footer_delivered | No |