cartographer
latest
false
Cartographer 用户指南
- 概述
- 安装和设置
- 入门指南
- 信任与合规
- 监管
- 功能
- 参考
- 故障排除
- 备份和还原
重要 :
请注意,此内容已使用机器翻译进行了本地化。/n/n新发布内容的本地化可能需要 1-2 周的时间才能完成。
Hooks reference
Cartographer 中 Hook 区域的参考 — 在智能体生命周期的特定点运行 Shell 命令。
A hook runs a shell command at a specific point in the agent's lifecycle. Hooks are managed from Add-ons & Integrations → Hooks, via Add hook.
| 字段 | 描述 |
|---|---|
| 事件类型 | When the hook runs: Session start, User prompt submitted, Before tool, Permission request, Permission resolved, After tool, After tool failure, or Agent stop. |
| 名称 | A short label for the hook (for example, "Block file deletion"). |
| 工具 | Which tool the hook applies to. Defaults to All tools. |
| Shell command | The command to run. Runs via cmd.exe. To deny a tool, exit with code 2 (for example, exit /b 2). |