See which tools an agent called in a run: its page lays out every model call and tool call in order and as a graph.
Before you start
You need an agent run that called a tool, such as the chat at the end of Add a tool.
See the tool calls
- Sign in to the CLI.
- Set
RUN_IDto the run's ID (Find your IDs):export RUN_ID=<id>. - List the run's tool-call events. You should now see
TOOL_CALL_STARTforget-time,TOOL_CALL_ARGSwhosedeltapieces, joined pertoolCallId, read{"timeZone":"Asia/Tokyo"}, thenTOOL_CALL_RESULT:Shellnpx veryfront project runs events --run-id $RUN_ID --query '{"event_type":["TOOL_CALL_START","TOOL_CALL_ARGS","TOOL_CALL_RESULT"],"limit":100}' - If
page_info.nextis notnull, run it again with that value as"cursor"in--query. You should now see the next events.
Try it in a sandbox
Before you start: the tool's source
Before you start: the tool
Before you start: an agent with the tool
Before you start: ask it the time in Tokyo
Before you start: let the agent answer
Set RUN_ID
Before you start: wait until the run is completed
List the run's tool-call events
Check it