Get Latest Comparison
get_latest_comparisonRe-run the most recent PDF comparison for a session. For widget recovery only.
The comparison widget calls this when the host did not hand it the comparison payload. Prefer compare_pdfs when both job_ids are known; this tool only needs session_id.
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": {
"session_id": "<session_id>"
},
"name": "get_latest_comparison"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes | Session ID whose latest comparison should be returned. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| spots | Yes | Aggregate counts for word-level differences. Args: TypedDict: Total difference counts. | |
| totals | Yes | Aggregate counts for word-level differences. Args: TypedDict: Total difference counts. | |
| anchors | Yes | ||
| pages_a | Yes | ||
| pages_b | Yes | ||
| cta_text | Yes | ||
| job_id_a | Yes | ||
| job_id_b | Yes | ||
| pdf_url_a | Yes | ||
| pdf_url_b | Yes | ||
| filename_a | Yes | ||
| filename_b | Yes | ||
| reply_note | Yes | ||
| session_id | Yes | ||
| total_pages | Yes | ||
| schema_version | Yes | ||
| cta_instruction | Yes | ||
| missing_text_layer | Yes |