build_corpus
Pull every comment and attachment for a docket into a local cache and extract attachment text; re-running skips cached items to resume interrupted pulls.
Instructions
Pull every comment and attachment of a docket into the local cache and extract attachment text. Resumable: anything already cached is skipped, so re-running finishes an interrupted pull. max_comments caps new detail fetches per call. Returns counts of comments, attachments, extraction outcomes, OCR needs, stubs, duplicate groups and itemised failures.
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": {
"docket_id": "<docket_id>"
},
"name": "build_corpus"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| refresh | No | ||
| docket_id | Yes | ||
| max_comments | No | ||
| with_attachments | No |