更新智能体
先调用「创建智能体」,用返回的智能体 ID 替换示例 ID。
/agent/v1/agents/{agent_id}◐ 部分支持请求参数
agent_idstring必填path: 智能体 ID,由 agents.create 或 agents.list 返回;用于会话筛选时,指创建该会话所用的智能体。不是智能体名称。
namestring可选新的显示名称,1–256 个字符;只是标签,不要求唯一。省略保持不变。
modelstring | object可选智能体使用的模型:从 Praxis 模型目录(praxis.model.models.list)取得 ID 字符串,或传 model_config 对象。与 Anthropic 不同,不在目录中的 Claude 模型 ID 会被拒绝。
展开子字段 (5)
idstring必填模型 ID,取自 Praxis 模型目录(praxis.model.models.list)。
effortstring | object可选每次推理的思考力度:可传级别字符串(如 high)或 {type: high} 对象。创建时省略取该模型的默认值;更新时省略保持不变。
inference_geostring可选模型推理的地理区域;不传沿用工作区默认。model 是整体替换字段,更新时省略子字段即清除该项。
speedstring可选推理速度模式:fast 出字显著更快但按溢价计费;并非所有模型都支持,不支持的组合在创建时被拒。
settingsobject可选Platform model settings: reasoning (default thinking level) and max_output_tokens (output cap). Other model controls return 400.
systemstring可选系统提示词;省略保持不变,传空串或 null 清除。
environment_idstring可选服务智能体的默认环境:新会话未指定 environment_id 时使用。可用 light、node22 或本组织有效环境的 env_ ID;其他值返回 400 environment_id <id> was not found。null 表示无环境,会话为不带 codemode 或 bash 的纯对话。与其他配置一样随智能体版本保存,因此 apply=false 时新会话仍使用原环境,直到应用该版本;会话显式指定的 environment_id(包括 null)优先。创建时省略取 light;更新时省略则保留。此字段出现前保存的版本读为 light。个人智能体使用 Computer:非 null 值返回 400,响应不返回此字段。仅 /agent/v1 支持;/anthropic 既不接受也不返回。
versionnumber可选智能体当前版本号,用于并发保护:必须与最近一次创建/读取返回的版本一致,否则返回冲突。
metadataobject可选元数据补丁:键设为字符串即写入,设为 null 即删除;省略该字段保持不变。存储上限 16 个键、每个值 512 字符。
descriptionstring可选用途说明;省略保持不变,传空串或 null 清除。
mcp_serversarray可选整体替换的 MCP 服务器列表;省略保持不变,传空数组或 null 清除。
multiagentobject可选◐ 部分支持多智能体协作拓扑:会话主线程作为协调者,从 agents 名单派生会话线程执行工作。
展开子字段 (2)
agentsarray必填协调者可以派生为会话线程的智能体名单,1–20 项;支持 ID 字符串、{type: agent, id, version?} 和最多一个 {type: self}。创建/更新时固定版本。成员须唯一、存在且未归档,不能自身带 multiagent。每个 coordinator 最多一个 advisor,模型须可用且不同于智能体模型;仅主会话可咨询,每次咨询为独立 advisor 线程,建议以 agent.thread_message_received 返回。
typestring必填拓扑类型,目前只有 coordinator。
更多参数 (19)
skillsarray可选整体替换的自定义技能列表,形状同创建;省略保持不变,传空数组或 null 清除。
toolsarray可选整体替换的工具配置;省略保持不变,传 [] 清除全部工具;传 null 返回 400。
applyboolean可选默认为 true:应用新保存的配置版本。false 仅保存,不改变 active_version。配置未变化时不执行操作,包括仅修改备注的更新;使用 versions.apply 激活已保存版本。
version_notestring可选可选变更说明,最多 280 个字符。仅在配置变更创建新不可变版本时记录。仅修改备注不执行操作,返回 200 和当前生效版本。null 等同于省略。
bindingsarray可选整体替换 bindings 列表;省略则保留,null 或 [] 清除。新增项仅影响新会话;应用此版本后,禁用、删除或降低绑定权限会立即撤销旧版本运行会话的对应权限;apply=false 不改变任何访问权限。仅服务智能体接受非空列表。
kindstring可选不可变的智能体类型。personal 要求 computer_id;service 不能绑定电脑。创建时省略则根据 computer_id 推断。更新时相同 kind 被忽略;改变 kind 或跨越其电脑绑定限制返回 400 invalid_request_error。
computer_idstring可选Praxis 扩展:MA 仅有会话级临时容器和 memory_stores,没有持久可浏览的电脑。computer_id 选择租户拥有的有效电脑。会话选择优先于智能体默认值;沙箱 environment_id 与 computer_id 不可同时使用。
subagent_modelstring可选/agent/v1 扩展:智能体级子智能体默认模型 ID,随修订固定。省略保持,null 清除。调用 model 优先,其次本字段,再其次名册成员模型或内置类型的父会话模型。/anthropic 不接受或返回此字段。
image_modelstring可选已下线(imagine 工具已移除):接受但忽略,不会保存。生图请使用素材库与 manage-media 技能。仅 /agent/v1 支持。
subagentsarray可选Praxis 扩展:保存在配置修订中的内联子智能体定义,与 multiagent 名单分开。省略则保留;null 清除。名称必须唯一。仅存储配置,尚未实现运行时激活。仅 /agent/v1 支持。
展开子字段 (6)
namestring必填Unique inline subagent name in this configuration.
descriptionstring必填Nonblank description of when to use this subagent.
promptstring必填Instructions saved for this inline subagent.
toolsarray可选已知原生工具名称;Bash 等 Claude Code 别名会规范化为 bash。未知名称返回 400。
disallowed_toolsarray可选此子智能体禁用的已知原生工具,使用与 tools 相同的别名表进行规范化。
modelstring可选可用模型目录 ID;inherit 或省略则跟随父级。未知或不可用的 ID 返回 400。
commandsarray可选Praxis 扩展:保存在配置修订中的命令定义。名称必须唯一,且最多包含一个冒号。省略则保留;null 清除。仅存储配置,尚未实现运行时激活。仅 /agent/v1 支持。
展开子字段 (4)
namestring必填Unique command name, optionally with one namespace separator, for example git:commit.
descriptionstring可选Optional description of the saved command.
argument_hintstring可选Optional hint for command arguments.
promptstring必填Instructions saved for this command.
settingsobject可选Praxis 扩展:随配置修订保存的托管设置。省略则保留;null 清除。仅存储配置,这些开关和钩子尚未应用于运行时。仅 /agent/v1 支持。
展开子字段 (8)
hooksobject可选Hook declarations for seven supported lifecycle events. Unknown event names return 400.
allowManagedHooksOnlyboolean可选Store the switch restricting hooks to managed configuration.
allowManagedMcpServersOnlyboolean可选Store the switch restricting MCP servers to managed configuration.
allowManagedPermissionRulesOnlyboolean可选Store the managed permission rules switch; permission rules remain on toolsets.
idleCompactionboolean可选Whether new sessions compact large contexts while idle before the prompt cache expires; defaults to true.
autoMemoryEnabledboolean可选Whether automatic memory is enabled in the saved configuration; defaults to true.
disabledobject可选Disabled declaration names; hooks are identified by declaration digests.
outputStylestring可选Case-sensitive output style name: Default adds no style instructions; Concise and Explanatory are built in. Unknown names use Default. Enabled plugin styles marked force-for-plugin override this selection. The result is frozen for the main conversation when the session starts; changes apply to new sessions. Owner instructions take precedence.
modelsobject可选扩展:可切换模型列表,仅 /agent/v1 支持。
展开子字段 (1)
allowedarray必填必须包含默认模型;创建时省略表示只能使用默认模型。更新时省略保持不变。会话使用其钉住版本的列表。
avatarstring可选智能体头像:最多 2048 个字符、不含凭据的绝对 https URL;其他值返回 400 avatar must be an https URL。用于智能体列表、详情、聊天页头,以及嵌入外观未指定头像时的嵌入聊天默认图片。与其他配置一样随智能体版本保存,因此 apply=false 时原头像保持生效,直到应用该版本。创建时省略表示无头像;更新时省略则保留,null 清除。个人和服务智能体均接受。仅 /agent/v1 支持;/anthropic 既不接受也不返回。
vault_idsarray可选智能体的默认保险库:每个新会话都带上这些 vault_ids,让凭据随版本固定。部门或组织规则的 grants 会把保险库写进它覆盖的智能体(智能体的保险库恰好等于规则的集合)。这些保险库的 Secret 以环境变量交给每个会话的电脑,并按地址匹配它的 MCP 服务器;哪些会被跳过见 sessions.create。最多 50 个不重复 ID;每个必须是本组织未归档的保险库,否则返回 400 vault_ids[<index>] <id> was not found。与其他配置一样随版本保存,因此 apply=false 时新会话仍使用原保险库,直到应用该版本;会话自己指定的 vault_ids 加在这些之上,不会替换它们;已经打开的会话保留创建时带上的保险库。创建时省略取 [];更新时省略则保留,传数组整体替换。此字段出现前保存的版本读为 []。嵌入令牌使用其固定版本的 vault_ids;嵌入策略中的 vault_ids 已弃用,仍接受但忽略。通用智能体和 assume 智能体同样把保险库挂在自己身上。仅 /agent/v1 支持;/anthropic 既不接受也不返回。
computersobject可选General agents only: the agent's computers, configured like its models. default is the template its Computer starts on; allowed lists the computers resize may switch to, and a resize to anything else is refused with COMPUTER_NOT_CONFIGURED. Omit on create for {default: base, allowed: Small base-small, Base base, Large base-large}; on update, omit to keep it, send an object to replace it as a whole. Service and assume agents return 400 computers is for general agents; service agents use environment_id. /agent/v1 only.
展开子字段 (2)
defaultstring必填Template of the computer the agent's Computer starts on; must be the template of one allowed entry.
allowedarray必填Computers the agent may switch to with the computer tool's resize, in the order they are listed.
browserobject可选ADR-205: which browser the agent drives. {byob: byb_…} names one of your organization's paired browsers (browser.byob.browsers.list), which the agent then drives through connect() instead of a cloud browser; null or absent is the cloud browser. The browser must belong to your organization (otherwise 400) and must grant this agent before a session can open it. Omit on update to keep it, send an object to replace it, or null to go back to the cloud browser. /agent/v1 only.
展开子字段 (1)
byobstring必填A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list.
presetstring可选可选工具预设。minimal 启用 read、glob、grep 和 ask_user_question;data-editor 还启用 write 和 edit;full 使用带 always_allow 的默认工具集。显式 tools 覆盖预设中的对应条目。codemode 要求 bash,data-editor 不包含它。
output_stylesarray可选Inline custom output styles, including for agents without a computer. Omit to keep the saved list; null or [] clears it. Same-name precedence is inline, project files, personal files, then plugins. Selection is settings.outputStyle; styles apply to main conversations and are frozen per session.
返回
200
通过 agent_toolset_20260401.configs 逐个开关原生工具并设置权限。未列出的工具遵循 default_config;后台任务、Monitor 和子智能体依赖 bash。version 可用于乐观并发控制,版本冲突返回 409;无变化的更新不增加版本。支持 custom 工具定义,限制与创建一致;省略 tools 保留,传 [] 清空全部工具声明;tools 为 null 返回 400 tools cannot be null; send [] to remove every tool。skills 以 [{type:"custom",skill_id,version?}] 挂载已上传的技能,只支持 custom(type 为 anthropic 返回 400);最多 20 个,skill_id 不得重复,技能及固定的版本须存在于本组织且未删除。省略 version 或传 "latest" 表示创建会话时该技能的最新版本;之后上传的新版本不影响已运行的会话。更新时省略 skills 保留,传数组整体替换,传 null 清空。会话带机器时,每个技能在会话启动时安装到 /home/user/.praxis/skills/<name>/;机器上已有同名技能时不覆盖,会话收到一条提示。无机器的会话不安装。 更新工具集 permissions 可把允许的同类操作保存到智能体的新版本,供以后的对话使用。 multiagent 接受 null 或 coordinator 名册,1–20 项:智能体 ID、{type:"agent",id,version?} 或最多一个 {type:"self"}。创建/更新时固定版本:省略 version 时固定为名册成员保存当时的生效版本,只传字符串 ID 会被接受并改写为对象形式;成员去重且须存在、未归档、不能自身带 multiagent。名册可启用 Agent,仍需启用 bash;SendMessage 遵循工具配置。每个 coordinator 最多一个 advisor,模型须可用且不同于智能体模型;仅主会话可咨询,每次咨询为独立 advisor 线程,建议以 agent.thread_message_received 返回。 /agent/v1 顶层 subagent_model 是可空模型 ID,随智能体版本保存;省略保留、null 清除。模型须存在。优先级为调用 model > subagent_model > 成员模型(内置类型用父会话模型)。/anthropic 不接受或返回此字段。
错误按 Anthropic 错误格式返回(type / message / request_id),参见 错误码
请求示例
curl
# 先调用「创建智能体」,用返回的智能体 ID 替换示例 ID。
curl https://api.deepraxis.com/agent/v1/agents/agent_123 \
-H "Authorization: Bearer $PRAXIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"文档助手(已更新)","version":1}'Python
# 先调用「创建智能体」,用返回的智能体 ID 替换示例 ID。
import requests
opts = dict(
base_url="https://api.deepraxis.com/agent",
api_key="$PRAXIS_API_KEY",
)
# /agent 是我们自己的 Managed Agents 形状,直接发 HTTP 请求(Bearer 认证)
resp = requests.post(
f"{opts['base_url']}/v1/agents/agent_123",
headers={"Authorization": f"Bearer {opts['api_key']}"},
json={"name":"文档助手(已更新)","version":1},
)
print(resp.status_code, resp.json())TypeScript
// 先调用「创建智能体」,用返回的智能体 ID 替换示例 ID。
const opts = {
baseURL: "https://api.deepraxis.com/agent",
apiKey: "$PRAXIS_API_KEY",
};
// /agent 是我们自己的 Managed Agents 形状,直接发 HTTP 请求(Bearer 认证)
const resp = await fetch(`${opts.baseURL}/v1/agents/agent_123`, {
method: "POST",
headers: { Authorization: `Bearer ${opts.apiKey}`, "Content-Type": "application/json" },
body: JSON.stringify({"name":"文档助手(已更新)","version":1}),
});
console.log(resp.status, await resp.json());响应示例 200
{
"id": "agent_17d06659-186f-46b2-9042-ff870c9bfd20",
"type": "agent",
"name": "文档助手(已更新)",
"description": null,
"system": "用一句话简短回答。",
"model": {
"id": "deepseek-flash"
},
"metadata": {},
"tools": [
{
"type": "agent_toolset_20260401",
"default_config": {
"enabled": true,
"permission_policy": {
"type": "always_allow"
}
},
"configs": [
{
"name": "bash",
"enabled": true,
"permission_policy": null
},
{
"name": "edit",
"enabled": true,
"permission_policy": null
},
{
"name": "glob",
"enabled": true,
"permission_policy": null
},
{
"name": "grep",
"enabled": true,
"permission_policy": null
},
{
"name": "read",
"enabled": true,
"permission_policy": null
},
{
"name": "write",
"enabled": true,
"permission_policy": null
},
{
"name": "task_output",
"enabled": true,
"permission_policy": null
},
{
"name": "task_stop",
"enabled": true,
"permission_policy": null
},
{
"name": "monitor",
"enabled": true,
"permission_policy": null
},
{
"name": "agent",
"enabled": true,
"permission_policy": null
},
{
"name": "send_message",
"enabled": true,
"permission_policy": null
},
{
"name": "codemode",
"enabled": true,
"permission_policy": null
},
{
"name": "skill",
"enabled": true,
"permission_policy": null
},
{
"name": "todo_write",
"enabled": true,
"permission_policy": null
},
{
"name": "enter_plan_mode",
"enabled": true,
"permission_policy": null
},
{
"name": "ask_user_question",
"enabled": true,
"permission_policy": null
},
{
"name": "goal_read",
"enabled": true,
"permission_policy": null
},
{
"name": "web_search",
"type": "web_search",
"enabled": true,
"permission_policy": null
},
{
"name": "web_fetch",
"type": "web_fetch",
"enabled": true,
"permission_policy": null
}
]
}
],
"mcp_servers": [],
"skills": [],
"multiagent": null,
"creation_source": "api",
"identity_number": "PR9BDYAN",
"avatar": null,
"environment_id": "light",
"vault_ids": [],
"subagent_model": null,
"subagents": null,
"commands": null,
"settings": null,
"version": 2,
"active_version": 2,
"created_by": {
"type": "api_key",
"id": "key_4njccw0s4v7q17pt6yngh221"
},
"note": null,
"created_at": "2026-10-23T21:18:53.405Z",
"updated_at": "2026-10-23T21:18:53.951Z",
"archived_at": null,
"kind": "service",
"bindings": [],
"status": "active"
}响应
HTTP 200
Successful response
application/json
| 名称 | 类型 | 说明 |
|---|---|---|
| id | string | Agent id (agent_...). Pass it as agent when creating a session and as agent_id in agent calls. |
| archived_at | null | string | A timestamp in RFC 3339 format |
| created_at | string | A timestamp in RFC 3339 format |
| description | null | string | Free-text description of what the agent is for; null when none was set. |
| mcp_servers | array<object> | Praxis extension: HTTP, SSE or trusted stdio MCP servers paired with mcp_toolset entries and saved with the agent version. |
| mcp_servers[].type | string | Streamable HTTP transport. / Legacy SSE transport. / Run a command on the agent computer. |
| mcp_servers[].name | string | Name of the MCP server; the mcp_toolset entry that refers to it uses the same name in mcp_server_name. |
| mcp_servers[].url | string | HTTP or HTTPS MCP server endpoint. |
| mcp_servers[].headers | object | Praxis extension: request headers. Platform identity headers take precedence, case-insensitively. |
| mcp_servers[].timeout_ms | integer | Praxis extension: timeout in milliseconds. Applied to stdio; HTTP/SSE currently use the connection SDK default. |
| mcp_servers[].command | string | Executable command on the agent computer. |
| mcp_servers[].args | array<string> | Command arguments; omitted means no arguments. |
| mcp_servers[].env | object | Praxis extension: environment variables for the command on the agent computer. |
| metadata | object | Free-form string key/value pairs stored with the agent for your own bookkeeping. |
| model | object | Model identifier and configuration. |
| model.id | string | A model id from the Praxis model catalog (praxis.model.models.list). Unlike Anthropic, Claude model ids other than those in the catalog are rejected. |
| model.effort | object | How hard Claude works on each turn. Sets output_config.effort on every Messages call the session makes. |
| model.inference_geo | string | Geographic region for model inference. When unset, requests fall through to the workspace's default_inference_geo. |
| model.speed | string | Inference speed mode. fast provides significantly faster output token generation at premium pricing. Not all models support fast; invalid combinations are rejected at create time. |
| model.settings | object | Platform model settings: reasoning (default thinking level) and max_output_tokens (output cap). Other model controls return 400. |
| multiagent | null | object | Coordinator roster. A bare string agent id is equivalent to {type: "agent", id}; omitting its version pins the referenced agent's current saved version when this roster is saved. {type: "self"} refers to this agent. Specify a concrete version to pin it explicitly. |
| multiagent.agents | array<object> | Agents the coordinator may spawn as session threads, each resolved to a specific version. |
| multiagent.type | string | Always coordinator. The agent coordinates the roster in agents and can delegate to its members. |
| name | string | Display name of the agent, as set on create or update. It is a label, not a unique key. |
| skills | array<object> | Custom skills attached to the agent, each {type: "custom", skill_id, version?}: skill_id comes from skills.create or skills.list, at most 20 skills, no repeated skill_id. Omit version, or send "latest", to use the skill's newest version at the moment a session starts; a pinned version stays fixed. type anthropic returns 400: upload the skill and attach it as custom. On update, omit the field to keep the list, send an array to replace it, or send [] or null to clear it. |
| skills[].skill_id | string | Id of the skill to attach. |
| skills[].type | string | Always anthropic. A skill provided by Anthropic, identified by skill_id. / Always custom. A skill created by you, identified by skill_id. |
| skills[].version | string | Version of the skill: omit or latest to follow the newest version at each new session; give a version id to pin it. |
| system | null | string | System prompt given to the model at the start of every session of this agent; null when none was set. |
| tools | array<object> | Tools of the agent: one agent_toolset_20260401 entry for the native tools (all resolved settings are returned, ready to send back on update), plus mcp_toolset entries and custom tool definitions. Custom calls emit agent.custom_tool_use and wait for user.custom_tool_result. Keep bash enabled to use codemode, skill and subagents. |
| tools[].configs | array<object> | array | null | Per-tool settings that override default_config. Tools that are not listed follow default_config. |
| tools[].default_config | object | object | null | Resolved default configuration for agent tools. / Settings applied to every tool of this toolset that configs does not name. When omitted, tools are enabled with the always_allow policy. |
| tools[].type | string | Always agent_toolset_20260401. The native toolset entry (bash, edit, glob, grep, read, write, web_search, web_fetch, task_output, task_stop, monitor, agent, send_message). / Always mcp_toolset. An entry that exposes the tools of one MCP server from mcp_servers. / Always custom. A custom tool defined by name, description and input_schema; its calls are answered by the client with user.custom_tool_result. |
| tools[].mcp_server_name | string | Name of the MCP server in mcp_servers whose tools this entry exposes. |
| tools[].description | string | What the custom tool does and when the model should call it. |
| tools[].input_schema | object | JSON Schema for custom tool input parameters. |
| tools[].name | string | Name of the custom tool, as the model sees and calls it. |
| type | string | Always agent. An agent definition. |
| updated_at | string | A timestamp in RFC 3339 format |
| version | number | Version of this returned configuration. Default retrieve returns the effective version; an explicit version query or a version-history item returns that saved version. |
| latest_version | integer | Newest saved version number, including an unapplied save. Returned by default retrieve, update and apply; use it for optimistic concurrency when updating. |
| active_version | integer | Agent-level currently effective version used by new sessions and newly issued embed tokens. This same value appears on every history item; it is not that item's version. Saving with apply false leaves it unchanged. Existing sessions and tokens retain their version. |
| created_by | object | null | Authenticated author who created this immutable version; null for historical versions without attribution. user identifies the signed-in user; api_key identifies the calling key. Never supplied by the request body. |
| created_by.type | string | user denotes a version saved by a signed-in user. / api_key denotes a version saved through an API key. |
| created_by.id | string | Authenticated user identifier at the time this version was saved. / Authenticated API key identifier, never the key secret. |
| created_by.name | string | User display name at save time, omitted when unavailable. |
| note | string | null | Change explanation supplied as version_note when this version was saved; null when omitted or for historical versions. Immutable after creation. |
| deployments_behind | integer | null | How many of this agent's live deployments are not on its active version: pinned to a version other than active_version, not archived, counted once each. It counts both a pin older than the active version and a pin newer than it that was saved without being applied, so read it as "not on the active version", never as "older than". Following deployments are never counted (they run the active version by definition). Null when the deployment side could not be read. Returned by update and apply too, so those answers equal the read that follows them. |
| bindings | array<object> | Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A resource binding may also carry customer_access (read_only by default): it caps what a terminal customer's session (a visitor, ADR-163 §3) may do with that one resource, at the intersection of customer_access and the binding's own access — invoke (call) and read_write (change) are different axes, so only a matching pair keeps its access and any other pair falls to read_only. Its value must be one the type can grant: read_only or read_write for database, vector_store and media_library, read_only for file, and read_only or invoke for model, workflow and script. A member's session ignores it, so raising it never widens what members may do. A visitor's session never receives a whole-service binding (the default ticket service included) or an agent resource. A service binding opens one service, or one sub-tree of one, and carries only enabled: search, browser, ticket, crm, canvas, cut, studio, feedback or workspace. workspace opens development units — list one, read one, start, stop, exec inside one, fetch, push, connect, and open a unit for a change — and opens neither publishing nor any production operation. The ticket service is bound by default: a service agent whose list has no ticket entry may call the ticket API, and {"type": "ticket", "enabled": false} removes it. Every other service stays closed until it is bound. An open service allows every public method of that service. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access, customer_access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for the default: the ticket service only. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time. |
| bindings[].type | string | Resource type. Decides the id format and the allowed access. / Service type. Opens one service, or one sub-tree of one, to codemode; there is no per-resource id. |
| bindings[].id | string | Resource id, never its name. database db_..., vector_store vs_..., file file- plus 24 letters or digits; media_library and model ids must not contain ':' or whitespace; workflow and script use <namespace>/<name> with no '/', '@', ':' or whitespace inside a part; repository pkg_..., browser_context bsc_.... |
| bindings[].access | string | database, vector_store and media_library accept read_only or read_write; file accepts read_only; model, workflow and script accept invoke; repository and browser_context accept read_only or read_write. Any other combination returns 400. |
| bindings[].customer_access | string | What a visitor's session (a terminal customer, ADR-163 §3) may do with this resource: read_only, read_write or invoke. Its scope is the intersection of this value and the binding's own access, so invoke needs both to be invoke. Limited to the accesses the type can grant: read_only or read_write for database, vector_store and media_library, read_only for file, read_only or invoke for model, workflow and script. Defaults to read_only. A member's session ignores it entirely; a visitor's session never receives a whole-service binding or an agent resource. |
| bindings[].instructions | string | Optional guidance for using this resource, up to 4096 characters; does not expand access. |
| bindings[].verified | boolean | Save-time verification result. false means the resource owner was unavailable; saving still succeeded. Unchanged bindings retain their previous result. true is returned for other bindings, including workflow and script ids which are not verified at save time. Client values are ignored. |
| bindings[].enabled | boolean | Whether this binding grants access. Defaults to true; false immediately disables it for running sessions. / Whether the service is open. Defaults to true; false immediately closes it for running sessions. |
| kind | string | Immutable agent kind. general uses a durable computer and acts for its owner; service uses a clean environment per session; assume is driven over MCP with a durable computer and no conversation model. Historical agents infer kind from their computer binding and read as general. |
| computers | object | General agents only: the agent's computers, configured like its models. default is the template its Computer starts on; allowed lists the computers resize may switch to, and a resize to anything else is refused with COMPUTER_NOT_CONFIGURED. Omit on create for {default: base, allowed: Small base-small, Base base, Large base-large}; on update, omit to keep it, send an object to replace it as a whole. Service and assume agents return 400 computers is for general agents; service agents use environment_id. /agent/v1 only. |
| computers.default | string | Template of the computer the agent's Computer starts on; must be the template of one allowed entry. |
| computers.allowed | array<object> | Computers the agent may switch to with the computer tool's resize, in the order they are listed. |
| browser | object | null | ADR-205: which browser the agent drives. {byob: byb_…} names one of your organization's paired browsers (browser.byob.browsers.list), which the agent then drives through connect() instead of a cloud browser; null or absent is the cloud browser. The browser must belong to your organization (otherwise 400) and must grant this agent before a session can open it. Omit on update to keep it, send an object to replace it, or null to go back to the cloud browser. /agent/v1 only. |
| browser.byob | string | A paired browser's id (byb_ and 26 lowercase hex characters), from browser.byob.browsers.list. |
| computer_id | string | Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. computer_id selects a tenant-owned active computer. Session selection overrides the agent default; a sandbox environment_id and computer_id cannot be combined. Omitted when no computer is selected. |
| subagent_model | string | null | Praxis extension: default subagent model ID, pinned in the agent revision. Call model overrides this; otherwise it overrides the roster member model or the parent model for built-ins. Null clears the default. /agent/v1 only. |
| subagents | array | null | Praxis extension: inline subagent definitions stored in the configuration revision, separately from the multiagent roster. Omit to preserve; null clears. Names must be unique. Configuration storage only; runtime activation is not implemented. /agent/v1 only. |
| commands | array | null | Praxis extension: command definitions saved in the configuration revision. Names must be unique and contain at most one colon. Omit to preserve; null clears. Configuration storage only; runtime activation is not implemented. /agent/v1 only. |
| settings | object | null | Agent runtime settings follow Claude Code managed settings. Praxis freezes output-style selection for each new session; inline output_styles extend file-based styles. Omit settings to keep saved settings; null clears them. |
| settings.hooks | object | Hook declarations for seven supported lifecycle events. Unknown event names return 400. |
| settings.allowManagedHooksOnly | boolean | Store the switch restricting hooks to managed configuration. |
| settings.allowManagedMcpServersOnly | boolean | Store the switch restricting MCP servers to managed configuration. |
| settings.allowManagedPermissionRulesOnly | boolean | Store the managed permission rules switch; permission rules remain on toolsets. |
| settings.idleCompaction | boolean | Whether new sessions compact large contexts while idle before the prompt cache expires; defaults to true. |
| settings.autoMemoryEnabled | boolean | Whether automatic memory is enabled in the saved configuration; defaults to true. |
| settings.disabled | object | Disabled declaration names; hooks are identified by declaration digests. |
| settings.outputStyle | string | Case-sensitive output style name: Default adds no style instructions; Concise and Explanatory are built in. Unknown names use Default. Enabled plugin styles marked force-for-plugin override this selection. The result is frozen for the main conversation when the session starts; changes apply to new sessions. Owner instructions take precedence. |
| models | object | Praxis extension: switchable model ids on /agent/v1 only. The default model must be included. When omitted, only the default model is selectable. |
| models.allowed | array<string> | Model ids a session may select with its model field; it must be non-empty and must contain the agent's default model. |
| avatar | string | null | Avatar image URL of this agent version (absolute https), shown in agent lists, the agent detail, the chat header and as the default avatar of embedded chat; null when none is set. Follows the version like other configuration: a version saved with apply=false does not change the avatar in effect. /agent/v1 only. |
| creation_source | string | null | Channel the agent was created through (for example api or console); null for historical agents whose channel is unknown. Display only. /agent/v1 only; /anthropic neither returns it. |
| managed_by | string | null | Application that manages this agent (for example praxis-work); null when no application does. Set when the agent is created, or claimed once by an update that sends the same value in the Praxis-Managed-By header; never changes after. Archiving a managed agent without the managing application's Praxis-Managed-By header returns 409 AGENT_MANAGED_BY_APPLICATION; configuration stays changeable. An accident guard, not a security boundary. /agent/v1 only; /anthropic neither returns it. |
| identity_number | string | null | Platform-wide identity number of the agent (8 characters), usable wherever an agent is addressed by identity_number; null when the agent has none. /agent/v1 only; /anthropic neither returns it. |
| environment_id | string | null | Default environment of this service agent version: the environment_id new sessions get when they name none; null means no environment. Present for service agents only. Follows the version like other configuration: a version saved with apply=false does not change the environment in effect. Versions saved before this field existed read as light. /agent/v1 only. |
| vault_ids | array<string> | Default vaults of this service or assume agent version: the vault_ids every new session carries; a session's own vault_ids are added to them. Present for service and assume agents. Follows the version like other configuration: a version saved with apply=false does not change the vaults in effect. Versions saved before this field existed read as []. /agent/v1 only. |
| status | string | Current agent lifecycle status; unarchive restores an archived agent to active. |
| output_styles | array<object> | null | Inline custom output styles, including for agents without a computer. Omit to keep the saved list; null or [] clears it. Same-name precedence is inline, project files, personal files, then plugins. Selection is settings.outputStyle; styles apply to main conversations and are frozen per session. |