Zum Hauptinhalt springen

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​

ShortLongRequiredDescription
-a--agentyesRuntime id or name of the agent
-n--namenoNew name (unique in the tenant)
-i--instructionsnoNew persona and standing instructions. Or use -if
-if--instructionsFilenoFile with the new instructions (instead of -i)
-m--modelnoNew model id
-cm--clearModelnoGo back to the tenant default model
-al--autonomyLevelnoProposeOnly or ActWithinBudget
-rk--runnerKindnoAgentSdk or ClaudeCodeCli
-su--sponsorUserIdnoNew sponsor user id
-mid--mandateRtIdnoSwitch the agent to another existing mandate; leave the mandate values out then
-g--grantnoTool grant <toolPattern>[:<maxRisk>[:<argumentConstraints JSON>]]. Repeat for several; the given
grants replace the list
-cg--clearGrantsnoRemove every tool grant of the agent's mandate
-rc--riskCeilingnoNew risk ceiling: Low, Medium, High
-cb--changeBudgetPerRunnoNew change budget per run (0 or more)
-wm--writeModenoPropose or Direct
-ct--allowedCkTypenoWritable CK type id. Repeat for several; the given types replace the list
-cct--clearCkTypesnoClear the list of writable CK types (the grants decide alone)
-r--rolenoRole name or id the service-account client gets instead of its current roles. Repeat for several
-cr--clearRolesnoRemove every role of the service-account client
-tid--tenantIdnoId of the tenant. Default: the tenant of the context
-json--jsonnoPrint 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).