Export a Kiro session
kiro_session_exportExport a Kiro session to a file inside KIRO_MCP_ROOTS, like chat save. Set overwrite to true to replace an existing destination file.
Instructions
Export a session to a file inside KIRO_MCP_ROOTS with _kiro/session/export, like /chat save. Fails with PATH_EXISTS unless overwrite is true. Importing an archive is not possible over ACP.
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>",
"path": "<path>"
},
"name": "kiro_session_export"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Destination file inside KIRO_MCP_ROOTS (relative paths resolve against the session's cwd). | |
| overwrite | No | ||
| session_id | Yes | Kiro session id (sess_<uuid>). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| bytes | Yes | ||
| session_id | Yes |