Lay out Playground media for comparison
playground_media_compareCompare 2–4 images or 2–4 videos side by side on the canvas. Two images fill a Compare (image-compare) node's A/B slots; three or four images feed a Picks (output-gallery) node; videos are grouped in one titled row. Inputs stay where they are except videos, which move into the new group. Free; revision checked and idempotent. It does not judge quality. Returns comparison layout, selected node IDs, summaries, revision and Playground URL.
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>",
"expectedRevision": "<expectedRevision>",
"idempotencyKey": "<idempotencyKey>",
"nodeIds": "<nodeIds>"
},
"name": "playground_media_compare"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | Human-readable label to display for this item in Playground. | |
| nodeIds | Yes | IDs of the existing canvas nodes to use for this action. | |
| projectId | Yes | ID of the Playground project chosen for this task; obtain it from project creation, an explicit project link or current context. | |
| idempotencyKey | Yes | Unique key for this request; reuse only when retrying the identical request after a lost response. Use a new key after quoting or changing inputs. | |
| expectedRevision | Yes | Current canvas revision from canvas_read; on revision_conflict, read again and rebuild the change. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| layout | Yes | ||
| nodeIds | Yes | ||
| summary | Yes | ||
| replayed | Yes | ||
| revision | Yes | ||
| canvasUrl | Yes | ||
| compareNodeId | No |