Get a JsonFabrica batch
jsonfabrica_get_batchRetrieve the status and generated documents of an asynchronous JSON batch job using its batch ID.
Instructions
Calls GET /v1/batches/{batchId}. Returns batch status and, once complete, the generated documents. Use this to poll a batch that was accepted asynchronously (202).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"batchId": "<batchId>"
},
"name": "jsonfabrica_get_batch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| batchId | Yes | ID of the batch job to fetch, as returned by jsonfabrica_create_batch. Required. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seed | No | PRNG seed used for the whole batch. | |
| spec | No | The original BatchSpec request body this batch was created from. | |
| error | No | Present if the whole batch failed. | |
| status | Yes | Current batch status. | |
| batchId | Yes | Id of the fetched batch. | |
| tenantId | No | Owning tenant id. | |
| documents | No | Generated documents, once available. |