droid-baton
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| DROID_BIN | No | 指定 Droid 可执行文件路径;修改后需重新执行 setup。 | |
| DROID_BATON_HOME | No | 数据目录(默认 `~/.droid-baton`);修改后需重新执行 setup。 | |
| DROID_SESSIONS_DIR | No | 只影响原生会话只读发现的目录。 |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
把任务交给本机 Factory Droid 并带回证据;从 droid_send 开始。
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| droid_list_workspacesA | 列出 Droid Baton 登记的工作目录;不等同于 Factory 桌面侧栏。 |
| droid_list_sessionsB | 列出桥接会话及本机保存的 Droid 主会话,含模型和运行状态。读取原生文件只用于发现,不修改它们。 |
| droid_read_sessionA | 读取指定会话的近期可见消息。使用明确 session_id,不要用“最近会话”关联并发任务。 |
| droid_list_modelsA | 查询本机 Droid 当前实际可选模型。不要读取设置文件里的凭据。除非用户指定模型,否则派发时省略 model,沿用 Droid 默认/会话配置。 |
| droid_sendA | 把完整目标、任务说明文件路径、允许范围和验收交给本机 Factory Droid。新任务用 cwd/workspace_id,续聊用 session_id;忙碌时 followup 排队,steer 在当前工具循环后投递。长期任务设 supervision:true,能独立执行的验收放入 checks。派发后用 droid_wait 等事件,Codex 处理授权、实际阻塞及最终验收。 |
| droid_statusA | 按需查看一次进度,默认 summary。常规等待用 droid_wait。 |
| droid_waitA | 一次等待单个或多个运行的结束、待答问题或监督决定。Codex 省略 timeout_s 可等至 3540 秒;普通巡检留在本地。默认返回 decision。等待超时或取消仅结束等待。保留仍在执行的 ID 再等;已收到的终态从 run_ids 移除。 |
| droid_answerB | 按当前 request_id 回答问题或选择。权限只支持当前请求给出的 cancel 或 proceed_once;批准需要用户授权依据。 |
| droid_cancelB | 停止指定运行及其会话队列,终止所属进程。仅取消 queued run_id 时只移除该项。 |
| droid_superviseA | 处理 needs_attention。watch 确认通知;continue 纠偏或续做;accept 审查需求覆盖和证据后接收;pause/resume 暂停/恢复。提供当前 attention_id。预算用尽、明确阻塞和终止须按原授权处理。 |
| droid_callB | 调用少用工具:droid_create_workspace(path,title?,create_dir?)、droid_rename_workspace(workspace_id,title)、droid_rename_session(session_id,title)、droid_session_activity、droid_update_queued(run_id,action=edit/remove/steer,message?)、droid_list_runs(session_id?,limit?)、droid_dashboard。也可调用上列工具。 还支持 droid_supervise 和 droid_open_terminal(run_id)。旧聊天可通过本入口调用新工具。 |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 11 tools
Most tools have distinct roles (list/read/send/cancel/answer), and descriptions explicitly separate droid_status (one-shot poll) from droid_wait (blocking wait). The main ambiguity is droid_call, a meta-tool that can invoke the other tools plus ~10 hidden operations, which makes routing unclear, and droid_answer vs droid_supervise overlap around handling pending items.
Every tool follows the same droid_ + snake_case verb_noun pattern (droid_list_workspaces, droid_send, droid_cancel, droid_supervise). The hidden operations referenced in droid_call use the same convention, so the pattern holds throughout.
The 11 visible tools are reasonable for an agent-orchestration server, but droid_call bundles roughly ten additional operations (create/rename workspace, rename session, list_runs, dashboard, open_terminal, etc.), pushing the effective surface to ~21. That hidden breadth should be broken out and reviewed as separate tools.
The lifecycle is well covered: discover workspaces/sessions/models, dispatch work, wait, answer, supervise, cancel, and inspect activity/terminal via droid_call. Minor gaps exist — no explicit workspace deletion or session archiving, and several real operations exist only inside the meta-tool rather than as first-class tools.