---
title: "Get Tool Call History"
method: GET
path: "/api/v1/agents/{system}/{entity_id}/tool-calls"
tags: ["v1", "Agent Chat", "agent-chat"]
---

# Get Tool Call History

`GET /api/v1/agents/{system}/{entity_id}/tool-calls`

## Request

- Base URL: `https://api.jeevyfabrication.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.jeevyfabrication.com/api/v1/agents/{system}/{entity_id}/tool-calls`
- Auth: none declared

Extract chronological tool call ledger from persisted message history.
Pairs AIMessage.tool_calls with their ToolMessage results.
Groups steps by phase (ingestion, verification, digestion, output).

JEEVY-1737: thread_id is resolved the SAME way every other estimator/
project_manager route resolves it — the viewing user's current
generation, via the one lifecycle minter — not a separate, user_id-less
id that nothing writes to.

## Path parameters

- `system` string, required
- `entity_id` string, required

## Query parameters

- `instance_id` string: Chat instance id (default 'default'). Shop: per-user tab. Estimator/project_manager: additional tabs on the same quote/project.

## Response `200`

Successful Response

- ToolCallHistoryResponse: Response for GET /agents/{system}/{entity_id}/tool-calls.
  - `phases` PhaseGroup[]
    - `name` string, required: Display name: Ingestion, Verification, Digestion, Output
    - `steps` ToolCallStep[]
      - `type` string, required: 'tool_call' or 'update'
      - `name` string, required: Step/tool name
      - `phase` string, required: ingestion | verification | digestion | output
      - `description` string, nullable: Human-readable what this step does
      - `payload` object, nullable: Raw payload for display
      - `sources_referenced` string[]: Source IDs referenced in this step
      - `timestamp` number, nullable: Unix timestamp
      - `args` object, nullable: Tool arguments (sanitized)
      - `result` unknown
      - `duration_ms` integer, nullable: Execution duration in ms
      - `status` string, nullable: 'success' or 'error'
      - `error` string, nullable: Error message when status is error
  - `is_live` boolean: True when an agent run is active
  - `legacy_notice` string, nullable: JEEVY-667 H3-2: set only when at least one turn was withheld because it predates the H3-1 stamp (never for a turn hidden because its record is no longer visible).

## Other responses

- `422`: Validation Error

## Changes

- **2026-10-20** `9eebba4f395d`: 2 info
  - added the new optional `query` request parameter `instance_id`
  - added the optional property `legacy_notice` to the response with the `200` status

[Operation history](https://skmtc.dev/jeevyfabrication/apis/bom-generation-api/changes/api/v1/agents/:system/:entity_id/tool-calls/get.md)

---

[API](https://skmtc.dev/jeevyfabrication/apis/bom-generation-api.md) - [All operations](https://skmtc.dev/jeevyfabrication/apis/bom-generation-api/llms.txt) - [OpenAPI document](https://skmtc.dev/jeevyfabrication/apis/bom-generation-api/revisions/ad9a01abeac9?raw)
