Look at the canvas
canvas_lookSee your open canvas as an image. The overview defaults to 480 pixels across. view zooms into part of it ({x, y, w, h} in canvas units) and defaults to 1000 pixels across. Set width for more detail, up to 1600. Aids drawn over it (only in your view): grid (true, or a spacing) labels coordinates; outline [names or keys] boxes those objects; new: true boxes what changed since your last look; layers [names] shows only those layers (hidden ones too); compare "side" or "onion" sets yours beside the reference picture or half see-through over it; "diff" shows only where they differ (red: ink only yours has, blue: ink only the reference has) and names the cells that differ most, to zoom into with view, and the named objects that hold most of the difference (how much of each differs, and whether its color is off or it has ink where the reference has none), with a group's or use's named parts by path, so you know what to fix first; grain is not counted as a difference. With compare, align: true first lays yours on the reference (the move, size and small turn that fit best, said in canvas units, with how much less then differs), and region (an object or layer) counts only its box, leaving out a backdrop you do not paint; with "diff", regions (up to 6 boxes or named objects or parts) scores each alone, so a small figure drawn badly is not averaged away. trace {x, y} (a point) or {color} outlines a region of the reference (of: "yours" for your painting): the connected pixels of about that color, as path data in canvas units to start a path op from, drawn in magenta on the look. A trace is fitted with smooth curves that keep its corners (curves: false for straight lines); into "" gives it in that group's own coordinates (as it stands at time), to draw inside the group; a region that seems to have leaked (it touches the edge, fills most of the view, or ran out through a gap in an outline) is flagged, with a lower tol that keeps it in. trace lines: true gives drawn lines (lashes, a jaw line, hair strands) instead: the centre lines of the strokes of ink at the point (or of the color), each a stroke op to paste in, its width along it as pressure. trace as "hair" keeps it on the canvas for 30 days instead of printing it: then "$trace:hair" wherever path data goes (and "$trace:hair.1" as a stroke's points) in canvas_draw, canvas_edit and canvas_shot is that trace, nothing to paste. measure: true reads the numbers of the picture (and of the reference): its ground and inks, line widths, halftone screens as {gap, angle, dot, origin} op fields (each dotted area also as a ready halftone op: its outline, screen and tone, to draw as it is; screens too fine to see dot by dot, or of dots that touch, are read as a pattern), and where the ink reaches, in canvas units, so you can match a look by its numbers; on a view it measures finer, against the whole picture's ground (measure {paper: "#rrggbb"} names the ground instead). measure {of: "face"} reads only the pixels that object or layer paints, and the reference's at the same place. With a reference, measure also hands back its style as one canvas_edit to send as it is (its colors in the kit, your ops' colors, line widths and halftones moved to it) and the fields for new ops. frame "og" sees one of the canvas's named frames alone, as its file will be (the overview outlines them in violet; frames: false hides that). A canvas that moves (anim) is seen at rest unless time (seconds) shows it at that moment, or strip: true (or 4 to 8) shows a filmstrip of frames across one round of its motion, each labelled with its time; span [from, to] spreads them over those seconds instead (frames across a 60 s round can miss a 10 s loop: span [0, 10] shows it). The overview also states composition facts: how much of the canvas the painting covers (grounds left out), its share of each ninth, the empty ninths, the box and centre of its mass, and the main colors, of the moment shown. A piece in shots: shot "s3" makes time and span that shot's own; focus [names] frames those objects; changes [t1, t2] answers in words what moved between two moments (no picture: cheap). sample [[x, y], ...] is an eyedropper: the color at each point, and the reference picture's color there, to match a painting to a photo.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "canvas_look"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kit | No | other values for the kit’s names, for this picture only: {colors: {accent: "#2f6fd1"}, fonts: {heading: "serif"}} | |
| new | No | ||
| grid | No | ||
| hide | No | leave these layers out of this picture (nothing changes on the canvas) | |
| pins | No | show open feedback as numbered orange pins, with any sketches people drew (default true) | |
| shot | No | a shot of a piece (its layer): time and span are then that shot's own seconds, and a strip spans it | |
| span | No | with strip: [from, to] seconds the frames spread across (default the whole motion), to see a short loop move inside a long one | |
| time | No | seconds: the canvas at that moment of its motion (default: at rest) | |
| view | No | {x, y, w, h} or [x, y, w, h] | |
| align | No | with compare diff or onion: first lay yours on the reference (the move, size and small turn that fit its ink best; rays or spokes that repeat around their middle are turned up to half a repeat, and when one named object carries the repeat only it is turned, with the edit that turns it), say that fit, and compare the shapes so laid | |
| focus | No | names or keys: frame the picture on those objects (cheaper than the whole canvas) | |
| frame | No | a named frame of the canvas, seen alone (instead of view) | |
| strip | No | a filmstrip: 4 to 8 frames across one round of the motion (true: 6) | |
| trace | No | outline a region of the reference as path data: {x, y} the region at that point, or {color: "#rrggbb"} its largest regions; of "yours" traces your painting; tol (color, default 40), detail (canvas units the outline may stray, default one pixel), bridge (gaps this wide closed over), max (regions, up to 8; lines, 12 and up to 40); lines (true: the centre lines of strokes of ink up to 40 canvas units wide, as stroke ops, each with its box, to pick "$trace:name.N" by; by color, breaks of a pixel or two in a soft line are joined, and bridge joins wider ones); curves (default true: cubic curves; false: straight lines); into (a group name or part path: path data in its own coordinates; through a placed copy, "body-girl/head/far", in the coordinates of its source group as that copy places it); as (a name: keeps it on the canvas for 30 days, then "$trace:name" wherever path data goes, or as a stroke points, draws it without typing it back) | |
| width | No | ||
| canvas | No | ||
| frames | No | outline the named frames in the overview (default true) | |
| layers | No | ||
| region | No | with compare: an object (name or key) or a layer; the comparison counts only its box (and the look shows that box unless view says otherwise) | |
| sample | No | an eyedropper: [[x, y], ...] (up to 24, canvas units): the color painted at each point (the reference left out, so the ground shows where nothing is painted), and the reference picture's color there if the canvas has one | |
| changes | No | [t1, t2] seconds: say in words what moved, came or went between them, with no picture | |
| comment | No | the number of a feedback pin: the look is framed on its place, and names what is under it | |
| compare | No | against the reference: side (yours left, it right), onion (yours half see-through over it) or diff (only where they differ: red yours, blue its). With comment: before (the place of the pin as it was when it was left, then now) | |
| measure | No | also read the numbers of yours and the reference: inks, line widths, halftone gap/angle/dot/origin with each dotted area as a ready halftone op, where the ink reaches; {of} only one object or layer | |
| outline | No | ||
| regions | No | with compare diff: up to 6 parts each scored alone (the part of its own pixels that differ, and its share of the whole difference): {box: [x, y, w, h]} or {object: a named object or part path}, with an optional name | |
| reference | No | show the reference picture under the painting, if the canvas has one (default true) |