Get case by CNJ number
get_caseFetch public cover data for a Brazilian court case from CNJ's DataJud by CNJ number, returning class, subjects, court unit, filing date, instance, and recent movement per instance.
Instructions
Fetch the public cover data of a Brazilian court case from CNJ's DataJud: class, subjects, court unit, filing date, instance and its most recent movement. Returns one record per instance. Party and lawyer names are not available in DataJud. Expect 20-60 s latency.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| court | No | DataJud court alias, e.g. 'tjsp', 'trf1', 'trt2', 'tre-sp', 'stj'. Optional when looking up a case number: the origin court is derived from the number. Pass it explicitly to read the record held by a higher court (e.g. 'stj'), since appeals keep the origin case number. | |
| cnjNumber | Yes | CNJ unified case number, formatted (NNNNNNN-DD.AAAA.J.TR.OOOO) or as 20 digits. Check digits are validated. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| court | Yes | Court alias that was queried | |
| found | Yes | ||
| records | Yes | One record per instance (e.g. first instance and appeal) held by this court | |
| cnjNumber | Yes |