Record a single tool call within a session
Your organization ID (UUID) from app.agnost.ai
The session ID passed to capture-session.
"my-session-123"
Name of the tool, resource, or prompt that was called.
"search_web"
Type of primitive that was called.
tool, resource, prompt "tool"
Whether the call succeeded or failed.
true
Execution time in milliseconds.
342
JSON-encoded string of input arguments passed to the tool. Omit to skip input tracking.
"{\"query\": \"latest AI news\"}"
JSON-encoded string of output returned by the tool. Omit to skip output tracking.
"{\"results\": [{\"title\": \"...\"}]}"
Optional granular timing breakdown within the call. Useful for profiling multi-step tools.
Optional arbitrary key-value metadata for this event (e.g. HTTP details, trace IDs). All values stored as strings.
{ "trace_id": "abc123" }Event recorded successfully
Unique identifier assigned to this event.
"550e8400-e29b-41d4-a716-446655440000"