Save a case to the account
create_case_passportSave a case that find_federal_case just located to the signed-in CaseMagic account, which creates its Case Passport — the persistent record of the matter — and its permanent CaseMail address. Use this after the user has confirmed which case is theirs and wants CaseMagic to keep it. Requires the connect_token from that lookup, which expires shortly afterwards.
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": {
"connect_token": "<connect_token>",
"user_role": "<user_role>"
},
"name": "create_case_passport"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user_role | Yes | The user's own role in the case. Ask them rather than guessing. | |
| connect_token | Yes | The connect_token returned by find_federal_case for the case the user confirmed. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| case | No | Caption, number and court of the saved case. | |
| 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. | |
| docket | No | Docket size and latest activity. | |
| passport_id | No | Case Passport id. | |
| passport_version | No | Passport version. | |
| organization_matter_id | No | The saved case’s matter id. |