compare_sheets
Compare two drawing sheets or revisions to detect moved linework, group added, removed, or modified ink into changed regions, and return affected takeoff shape IDs for re-checking.
Instructions
Visual revision comparison of two sheets (or revisions of a sheet): discovers what moved between them. Automatically aligns vector linework, computes segment differences, groups modified/added/removed ink into changed region bounding hulls, and returns existing takeoff shape IDs on sheet_a that intersect changed ink so an agent can re-check only what moved. Coordinates are image px at render scale 2.0: PDF pt × 2, origin top-left, y down (the browser canvas's native space). Sheet payloads carry dims in both px and pt.
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": {
"sheet_a": "<sheet_a>",
"sheet_b": "<sheet_b>"
},
"name": "compare_sheets"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sheet_a | Yes | Base sheet key or filename (e.g. 'plans.pdf#1') | |
| sheet_b | Yes | Incoming/revised sheet key or filename | |
| alignment | No | Optional manual translation offset; defaults to auto-alignment by title-block/drawing frame |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stats | Yes | ||
| sheet_a | Yes | ||
| sheet_b | Yes | ||
| alignment | Yes | ||
| diff_method | Yes | ||
| changed_regions | Yes | ||
| flagged_shape_ids | Yes | IDs of existing takeoff shapes on sheet_a that touch changed ink and require re-review |