Prompt a Kiro session
kiro_promptSend a prompt to an attached Kiro session and wait for the turn to finish, returning final text, tool calls, or a running status with a cursor for polling events.
Instructions
Send a prompt to an attached session (session/prompt) and wait up to wait_s for the turn to finish. Returns the finished turn (final text, tool calls, credits) or status running with a turn_id and cursor: then poll kiro_events with that cursor until the status is completed, cancelled, or failed, answering any pending_permissions with kiro_permission_respond. A turn finishes only when Kiro answers the prompt. Add files as links (or embedded UTF-8 text with embed: true) and images from a path or base64. command runs an advertised skill, MCP prompt, or sub-agent as /<name> <input>; text starting with @name runs a saved prompt. when_busy queue waits behind the running turn.
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>"
},
"name": "kiro_prompt"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | ||
| files | No | ||
| images | No | ||
| wait_s | No | Seconds to wait (default 20, max 55). | |
| command | No | ||
| when_busy | No | ||
| session_id | Yes | Kiro session id (sess_<uuid>). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| turn | Yes | ||
| cursor | Yes | ||
| queued | Yes | ||
| status | Yes | ||
| turn_id | Yes | ||
| session_id | Yes | ||
| pending_permissions | Yes |