get_last_tools
Retrieve the most recent tool-calling lines from a Claude Code agent log file. Specify the file path and count to quickly review tool usage without sifting through raw JSONL data.
Instructions
Return the last count tool-calling lines the agent emitted.
Every assistant line carrying at least one tool call counts as one entry and all of its tool calls (name and input, without results) are returned. Entries are ordered oldest first and tagged with their raw line number.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path to the agent's .jsonl log file. | |
| count | Yes | Number of qualifying log lines to return, counted after filtering. | |
| after_line | No | Only lines with a number strictly greater than this are considered. Pass the highest `line` you already received to suppress repeats, 0 means all. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entries | Yes |