Run a task with a debug command and export a JSON tool trace.
Copy the install command and let the AI configure it · recommended for beginners
Please install the "tool-tracer" skill from askskill: 1. Download https://raw.githubusercontent.com/microsoft/cat-agent-skills/main/submissions/tool-tracer/SKILL.md 2. Save it as ~/.claude/skills/tool-tracer/SKILL.md 3. Reload skills and tell me it's ready
/special-debug tool-trace Check the status of order 4471 and draft an email to the customer
Completes the order lookup and email draft, then generates a downloadable tool_trace.json listing tools and actions in sequence.
/special-debug tool-trace Show which connectors were called in this task and summarize whether any errors occurred
Returns the task result and a trace file in redacted mode, masking likely secrets, tokens, and private data.
/special-debug tool-trace --full Run this task and keep all call inputs and outputs for admin investigation
Runs the task and generates an unredacted full trace JSON for authorized admin-level investigation.
When developers or DevOps need to see which tools, connectors, or sub-skills were used in a real interaction, they can run the original task with this command and export a structured trace file.
If a task fails or behaves unexpectedly, this skill outputs a JSON trace with error codes, retries, and call order to support troubleshooting and postmortems.
Its default mode redacts likely secrets, tokens, and sensitive personal data, making it easier to share traces for triage without exposing too much sensitive information.
The document describes an admin/debug skill that activates only when the exact command /special-debug tool-trace appears in the user message. It runs the task normally and then creates tool_trace.json, a structured run summary capturing tool, action, connector, knowledge-query, and sub-skill calls, including inputs, outputs, errors, retries, and order. It also explains the default redacted mode, the unredacted --full mode, sensitivity risks, and the default file save location.
Runs any user task normally, then produces a structured JSON run summary (tool_trace.json) capturing every tool, action, connector, knowledge query, and sub-skill call made during the run — inputs, outputs, error codes, retries, and sequence. Built as an admin / debug tool: on a live channel a normal user never sees what the agent did behind the scenes, so this lets a maker or admin see it and triage an interaction without reproducing it in the test pane.
This skill activates only when the user's message contains the exact debug command:
/special-debug tool-trace
The command may be followed by (or precede) the task to run — e.g. /special-debug tool-trace look up order 4471 and email the customer. If the command is present, run the task and produce the trace; if it is not present, this skill does not apply — even for casual phrasings like "trace this", "log this run", "debug this", or "what did you just do". Requiring the explicit command keeps a trace a deliberate act, not something a channel user triggers by accident.
Two capture modes. By default the trace runs in redacted mode — values that look like secrets, tokens, credentials, or PII/PHI are masked so the trace is safe to share for triage while still showing what ran. An authorized admin can append --full (/special-debug tool-trace --full …) to capture every value verbatim for deep debugging. Restrict who can use --full at deployment — a skill can't enforce it.
Scope & sensitivity. This is an admin / debug tool. In the default redacted mode, values that look like secrets, tokens, credentials, or PII/PHI are masked (e.g.
"<redacted:token>") so the trace shows what ran without leaking sensitive data. In--fullmode nothing is masked, sotool_trace.jsoncan contain secrets, tokens, or PHI verbatim. A skill cannot enforce access control; the maker deploying this is responsible for restricting--full(and the agent) to authorized admin/maker users and for handling the file within that trust boundary. Prefer not to expose--fullon agents published to untrusted end-user channels.
Carry out the user's request exactly as you would without this skill. Use whatever tools are needed. Do not alter your reasoning or tool usage because tracing is active.
After the task is complete (or if it fails), compile a tool_trace.json file capturing every tool call made during the run.
Write tool_trace.json using your file-writing tool so it is returned to the user as a download. Default path: /app/created/tool_trace.json (the download folder in the Agent Skills sandbox). If that path or a create tool is unavailable in your runtime, use whatever file-writing tool exists and save to the runtime's user-download location.
{
"trace_metadata": {
"task_description": "<what the user asked for>",
"agent_name": "<agent name if known, else null>",
"timestamp_utc": "<ISO 8601 timestamp of when the task completed, or null if no clock is available>",
"total_tool_calls": 0,
"mode": "redacted | full",
"status": "success | partial | failed"
},
"tool_calls": [
{
"step": 1,
"tool_name": "<exact tool name>",
"purpose": "<one sentence: why this tool was called at this step>",
"input": {
"<param_name>": "<param_value>"
},
"output_summary": "<concise summary of what the tool returned>",
"output_raw": "<full raw output if ≤ ~2000 chars, else 'truncated — see output_summary'>",
"status": "success | error",
"error_message": null
}
],
"final_answer_summary": "<brief description of what was ultimately delivered to the user>"
}
…
It activates only when the user's message contains the exact command /special-debug tool-trace, optionally with --full. Natural-language requests like “trace this” do not trigger it.
By default it uses redacted mode, masking values that look like secrets, tokens, credentials, or PII/PHI. Those values are kept verbatim only when --full is used.
The docs say it is normally written to /app/created/tool_trace.json and returned as a downloadable file. If that path or file-creation tool is unavailable, it uses whatever file-writing method and download location the runtime supports.
Validate a SharePoint list, analyze it, and return an interactive HTML report link.
Design, review, and package reusable Agent Skills and SKILL.md files.
Humanizes and polishes prose so it reads naturally, not AI-generated.
Prepare and improve negotiations with calm, structured, ethical decision support.
Turn whiteboard sketches into polished, editable PowerPoint infographics.
Analyze Teams chats and emails to build a reusable personal writing style profile.
Analyze JSONL debug logs to explain chat agent issues and behavior.
Analyze local-first AI agent CLI usage patterns and invocation data.
Fetch and analyze LangSmith traces to debug LangChain and LangGraph agents.
Systematically reproduce, isolate, diagnose, and fix tricky software or environment issues.
Turn AI tasks into reusable step flows you can refine and repeat.
Probe live APIs and explain failures with root causes and confidence.