Skip to main content

DisableAgent

Disables an agent of the tenant (kill switch): it starts no run and its service-account client is disabled (tenant administrators only). Calls the MCP tool set_agent_enabled with your token.

Examples​

Disable the agent 'Knowledge curator' of the tenant of the context:

octo-cli -c DisableAgent -a "Knowledge curator"

Options​

ShortLongRequiredDescription
-a--agentyesRuntime id or name of the agent
-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 (role TenantManagement or UserManagement); an agent's own token is refused.

Calls <McpServiceUrl of the context>/<tenant>/mcp (set it once with AddContext -msu or Config -msu).