CodePanel
duplicate_coding_agent

duplicate_coding_agent

The CodePanel MCP tool that copies a coding agent with all its settings, to try another model or mode without losing the original.

On this page›

duplicate_coding_agent copies a coding agent with all its settings and returns the copy. It needs the agents:write scope.

When to call it

  • To try another model or mode without losing the original: duplicate, then update_coding_agent the copy.

Inputs

Input Type Required Description
agentId string yes Id of a coding agent, from list_coding_agents
name string no Unique per account, ignoring case

It writes: the server marks it readOnlyHint: false, so a client that asks before writes asks here.

agentId is required. name is optional; names are unique per account, ignoring case, so a taken name is refused.

What it returns

{ agent }, the copy, with copiedFromId set to agentId. Undo it with remove_coding_agent.

The same step without MCP

Surface Form
HTTP API POST /autopilot/agents/duplicate with the agents:write scope

What the server tells your agent

The description your agent reads when it lists the tools:

Use it to try a different model or mode without losing the original: copies a coding agent with all its settings. name is optional and unique per account, ignoring case; without it the copy gets a name of its own. Needs the agents:write scope. Returns { agent }, the copy, with copiedFromId set to agentId. Undo with remove_coding_agent.

Last updated