Email the result of a queued case lookup
email_queued_case_resultHave the answer to a queued find_federal_case lookup emailed to an address the user gives. When the court record’s daily request allowance is spent, find_federal_case comes back with status "queued" and a queue_id instead of the case; call this only after that, and only once the user has offered an email address and wants the result sent there. Do not ask for an address up front. CaseMagic emails the case page to that address when the lookup has run, or straight away if it already has. Calling it again with the same address changes nothing. Free and needs no account.
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": {
"queue_id": "<queue_id>",
"email": "<email>"
},
"name": "email_queued_case_result"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| Yes | The email address the user offered for the result. | ||
| queue_id | Yes | The queue_id from a find_federal_case result whose status was "queued". |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| court | No | The court code the lookup named, or null. | |
| error | No | Present only when the call failed: a code, a message and, where there is one, an action such as a link to give the user. | |
| status | No | pending or running while it waits; ready or not_found once it has run and the answer has been emailed; failed or expired when nothing will be sent. | |
| message | No | What to tell the user. | |
| queue_id | No | The queued lookup the address was attached to. | |
| next_step | No | What to do next. | |
| case_number | No | The case number the lookup was for. | |
| notify_email_set | No | Whether the lookup now has an address to email the answer to. |