design_diff
Compare two screens to identify added, removed, and changed elements, styles, and text. Use the structured diff to track design iterations.
Instructions
Compares two screens by name and returns a structured diff showing added elements, removed elements, style changes, and text changes. Useful for tracking design iterations.
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": {
"projectId": "<projectId>",
"screenId1": "<screenId1>",
"screenId2": "<screenId2>"
},
"name": "design_diff"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectId | Yes | The project ID. | |
| screenId1 | Yes | First screen ID (before). | |
| screenId2 | Yes | Second screen ID (after). | |
| includeTextDiff | No | Include text content diffs. | |
| includeStyleDiff | No | Include detailed style property diffs. |