UpdateAgent
Updates an agent of the tenant (tenant administrators only); omitted options keep their value. Calls the MCP tool update_agent with your token.
Examples
Replace the grants and allow five executed changes per run:
octo-cli -c UpdateAgent `
-a "Knowledge curator" `
-g "knowledge_*:Medium" `
-cb "5"
Options
| Short | Long | Required | Description |
|---|---|---|---|
-a | --agent | yes | Runtime id or name of the agent |
-n | --name | no | New name (unique in the tenant) |
-i | --instructions | no | New persona and standing instructions. Or use -if |
-if | --instructionsFile | no | File with the new instructions (instead of -i) |
-m | --model | no | New model id |
-cm | --clearModel | no | Go back to the tenant default model |
-al | --autonomyLevel | no | ProposeOnly or ActWithinBudget |
-rk | --runnerKind | no | AgentSdk or ClaudeCodeCli |
-su | --sponsorUserId | no | New sponsor user id |
-mid | --mandateRtId | no | Switch the agent to another existing mandate; leave the mandate values out then |
-g | --grant | no | Tool grant <toolPattern>[:<maxRisk>[:<argumentConstraints JSON>]]. Repeat for several; the given grants replace the list |
-cg | --clearGrants | no | Remove every tool grant of the agent's mandate |
-rc | --riskCeiling | no | New risk ceiling: Low, Medium, High |
-cb | --changeBudgetPerRun | no | New change budget per run (0 or more) |
-wm | --writeMode | no | Propose or Direct |
-ct | --allowedCkType | no | Writable CK type id. Repeat for several; the given types replace the list |
-cct | --clearCkTypes | no | Clear the list of writable CK types (the grants decide alone) |
-r | --role | no | Role name or id the service-account client gets instead of its current roles. Repeat for several |
-cr | --clearRoles | no | Remove every role of the service-account client |
-tid | --tenantId | no | Id of the tenant. Default: the tenant of the context |
-json | --json | no | Print the answer of the MCP tool as JSON |
Notes
Tenant administrators only; agents never manage agents. Grants are checked like in CreateAgent (UnknownTool, RiskAboveCeiling). A mandate shared by several agents is not changed: pass -mid instead.
A change of instructions, model or mandate raises the agent's version. Use EnableAgent and DisableAgent to switch the agent on or off.
Calls <McpServiceUrl of the context>/<tenant>/mcp (set it once with AddContext -msu or Config -msu).