Kiro custom agents
kiro_agentsList, validate, create, set default, or upgrade Kiro custom agents so sessions advertise the right modes. Config writes require permission; migration stays withheld.
Instructions
Kiro custom agents: list (the custom agents a session advertises as modes, with their source, plus agent config errors) and validate (kiro-cli agent validate --path). The writes create, set_default, and upgrade need KIRO_MCP_ALLOW_CONFIG_WRITES. Editing an agent opens $EDITOR and is not available; agent migrate is withheld as potentially destructive.
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": {
"action": "<action>"
},
"name": "kiro_agents"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from | No | ||
| name | No | ||
| path | No | Agent config file inside KIRO_MCP_ROOTS (validate). | |
| action | Yes | ||
| dry_run | No | ||
| directory | No | Directory inside KIRO_MCP_ROOTS (create, upgrade). | |
| session_id | No | Kiro session id (sess_<uuid>). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | Yes | ||
| valid | Yes | ||
| action | Yes | ||
| agents | Yes | ||
| errors | Yes | ||
| output | Yes |