emit_warp_event
Generates a printf command that emits an OSC 777 warp://cli-agent JSON event into Warp's notification UI; run the returned command inside a Warp pane to deliver it.
Instructions
Build a printf invocation that emits an OSC 777 warp://cli-agent JSON event into Warp's notification UI. The returned printf must be executed inside a Warp pane (e.g. via execute_command) to take effect — our MCP stdout is the JSON-RPC channel and cannot directly write to Warp's PTY.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| payload | No | JSON-encoded object string for the event payload (default: '{}') | |
| event_type | Yes | One of: session_start, prompt_submit, tool_complete, stop, permission_request, idle_prompt | |
| session_id | No | Optional session_id to attach to the event |