Pk Get Judgment
pk_get_judgmentRead the text of one Pakistani High Court judgment from the judgment_url returned by pk_search_judgments (Islamabad, Sindh, Peshawar or Balochistan). Returns extracted text in pages of max_chars with next_offset; a scanned judgment with no text layer returns found:false rather than an empty string.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"max_chars": 1500,
"judgment_url": "https://bhc.gov.pk/media/judgments/1584.pdf"
},
"name": "pk_get_judgment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| offset | No | Character offset to start from (default 0); use next_offset from the previous page. | |
| max_chars | No | Characters to return (default 12000, max 40000). | |
| judgment_url | Yes | judgment_url from a pk_search_judgments result. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | ||
| text | No | ||
| court | No | ||
| found | No | ||
| pages | No | ||
| offset | No | ||
| reason | No | ||
| source | No | ||
| publisher | No | ||
| truncated | No | ||
| characters | No | ||
| next_offset | No | ||
| judgment_url | No | ||
| returned_characters | No |