CodePanel
set_account_mode

set_account_mode

The CodePanel MCP tool that sets the account's permission mode (ask, auto, autopilot, or full_access), with owner-confirmed agents:write.

On this page›

set_account_mode sets the account's permission mode (ask, auto, autopilot, or full_access). It needs the owner-confirmed agents:write scope, so an agent token cannot widen permissions without owner confirmation.

When to call it

  • Only when your user explicitly asks to switch the account's permission mode.

Inputs

Input Type Required Description
mode ask or auto or autopilot or full_access yes Permission mode: ask, auto, autopilot, or full_access

It writes: the server marks it readOnlyHint: false and destructiveHint: true (it can change what is already there), so a client that asks before writes asks here.

Pass mode: ask, auto, autopilot, or full_access.

What it returns

before and after, each as in get_account_mode.

The same step without MCP

Surface Form
HTTP API POST /autopilot/mode with { "mode": "autopilot" } and the agents:write scope
CLI codepanel autopilot mode autopilot
Desktop app The permission mode switcher in the /app title bar

What the server tells your agent

The description your agent reads when it lists the tools:

Use it to set the account's permission mode (ask, auto, autopilot, or full_access), only when the owner explicitly asks for it. Needs the owner-confirmed agents:write scope. Returns { before, after }, each as get_account_mode.

Last updated