moltbot nodes
管理已配对节点(设备)并调用节点能力。相关:
通用选项:--url、--token、--timeout、--json。
常用命令
moltbot nodes list
moltbot nodes list --connected
moltbot nodes list --last-connected 24h
moltbot nodes pending
moltbot nodes approve <requestId>
moltbot nodes status
moltbot nodes status --connected
moltbot nodes status --last-connected 24hnodes list 输出待处理/已配对表。已配对行包含最近连接时间(Last Connect)。--connected 仅显示当前已连接节点。--last-connected <duration> 筛选在指定时长内连接过的节点(如 24h、7d)。
调用 / 运行
moltbot nodes invoke --node <id|name|ip> --command <command> --params <json>
moltbot nodes run --node <id|name|ip> <command...>
moltbot nodes run --raw "git status"
moltbot nodes run --agent main --node <id|name|ip> --raw "git status"调用参数:--params <json>(默认 {})、--invoke-timeout <ms>(默认 15000)、--idempotency-key <key>。
Exec 风格默认
nodes run 与模型的 exec 行为一致(默认 + 审批):读取 tools.exec.*(及 agents.list[].tools.exec.* 覆盖);在调用 system.run 前使用 exec 审批(exec.approval.request);当已设置 tools.exec.node 时可省略 --node;需要提供 system.run 的节点(macOS 伴侣应用或无头节点主机)。参数:--cwd、--env、--command-timeout、--invoke-timeout、--needs-screen-recording、--raw、--agent、--ask、--security。
最后更新于: