fork_profile
Create a draft copy of an existing agent profile to stage changes safely; source config is copied but runtime attachments must be reattached before activation.
Instructions
Fork a profile into a new staging draft (slug auto-suffixed). env
is the branch the SOURCE profile is read from. The copy carries the
source's model, prompt-version pins (the same version rows — not
copies), tool/KB/legacy-MCP id lists, sub-agents, endpoint and
voice/memory config. It does NOT copy the join-table attachments — MCP
attachments (what binds tools at runtime) and platform skills — so
re-attach them with profile_attachments. It starts as status='draft'
and delegatable=false, so it serves nothing until activated/promoted.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"profile_id": "<profile_id>"
},
"name": "fork_profile"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| env | No | Config branch: which `environment` rows of the AI config DB to read/write. staging = the editable working set (default); prod = what production serves. | staging |
| profile_id | Yes | Agent profile UUID (list_profiles / get_profile). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |