-
-
Notifications
You must be signed in to change notification settings - Fork 205
Recipe Trace a Failed Tool Call
nguyen.david edited this page Aug 13, 2026
·
1 revision
Use when: a tool error appears in an alert, event feed, or transcript.
- Capture session ID, agent ID, tool name, and failure timestamp.
- Open the event immediately before the failure. It often contains the triggering request or permission decision.
- Inspect the failed tool event and result. Redact secrets before sharing.
- Read the following transcript entries to see whether the agent retried, changed approach, or recovered.
- Check sibling/child agents for parallel work that may have changed the same files.
- Verify the real external state: file, command result, API object, or git diff. A tool error can occur after a partial side effect.
- Classify the cause:
- invalid arguments or path;
- permission/policy denial;
- dependency or environment failure;
- timeout/network problem;
- conflicting concurrent work;
- provider/tool defect.
- Reproduce only with a narrow, non-destructive command.
npx ccam session <session-id>
npx ccam events --session <session-id> --limit 100
npx ccam transcript <session-id> --agent <agent-id>The report identifies the exact tool call, prior context, observed side effects, recovery status, and smallest next action. “Tool failed” alone is not a root cause.
Start Here · Localized product Wiki · Repository · Releases · Security · Report an issue
Guidance tracks the current master branch. For a deployed release, consult the repository documentation at that release tag before changing configuration.
CCAM Handbook
Use CCAM
- Read the dashboard
- Sessions and agents
- Kanban and tasks
- Tokens and costs
- Run agents
- Personal settings
Operate CCAM
- Deployment guide
- Hook health
- Security
- Backups and retention
- Prometheus and Grafana
- Remote machines
- Upgrades and rollback
- Incident runbooks
Automate and extend
- CLI patterns
- MCP workflows
- Alerts and webhooks
- Dynamic workflows
- Skills and plugins
- Safe config explorer
- Integration patterns
Help