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.
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": {
"event_type": "<event_type>"
},
"name": "emit_warp_event"
}
}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 |