All clips
The cloud API and MCP can fill and paint a layer mask, live on prod (build 7956e852, throwaway cloud document, no browser). A 240 x 160 solid raster (40, 110, 200) with a Reveal All mask: fill black with target "mask" in a 120 x 80 rect took the composite at (120,80) from 40,110,200,255 to 0,0,0,0 while (20,20) stayed 40,110,200,255; a white paint_stroke on the mask restored (120,80); a fill_gradient with target "mask" gave alpha 21, 128 and 234 at x 20, 120 and 220; after clear_mask the export was byte-identical to the source, so the layer pixels were untouched. target "mask" on a layer with no mask was refused invalid_target ("no layer mask to paint; add one first"), fill_gradient with no node was refused, and target "pixels" failed validation (PR #2001, issue #1990)
Fill and gradient now paint a layer mask over the API and MCP, refusing in plain words.
- Agents
- 0:20
- November 2026
- Episode 414
- Mask operations now accept the mask's own node id, live on prod (build 1f8e3a5e; PR #2123, issue #2121). Before, set_mask_enabled with the mask id from describe_document was refused as inside a protected region. On a throwaway cloud document, set_mask_enabled false and true, apply_filter gaussian_blur with target mask, and clear_mask were all accepted with the mask id, and describe_document showed disabled true while the mask was off.Agents can pass a mask's own node id; the planner resolves it to the owner layer.
- describe_document now shows a layer mask's linked flag, live on prod (build 6b0aaed2; PR #2119, issue #2109). Before, an agent could chain or unchain a mask with set_mask_link but not read back whether it moves with its layer. On a throwaway cloud document, a new mask carries linked true; after set_mask_link false the key is absent, and moving the layer 120 px leaves the mask on the canvas; after set_mask_link true it carries linked true again.describe_document shows linked: true on a layer mask while it moves with its layer.
- describe_document now shows a layer mask's disabled state, live on prod (build ed3a840e; PR #2106, issue #2103). Before, an agent could switch a mask off with set_mask_enabled but not read back that it was off. On throwaway cloud documents, with the mask on the mask node has no disabled key; after set_mask_enabled false it carries disabled true; after set_mask_enabled true the key is absent again.Agents can now tell a layer mask is off: describe_document shows disabled true.
- The agent planner own apply_filter tool now takes target mask, live on prod (build 856f8476; PR #2089, issue #2085). Before, an agent had to go through apply_edit and got Unrecognized key target (EP432). On a throwaway cloud document (240 x 160 solid raster layer, Reveal All mask, right half hidden with a black fill on the mask), apply_filter gaussian_blur radius 20 with target mask was accepted and took the exported alpha at x 105, 110, 115, 120, 125, 130, 135 from 255, 255, 255, 0, 0, 0, 0 to 252, 236, 191, 120, 52, 14, 2. After clear_mask the export was byte-identical to the source. A colour-only filter on a mask (denoise_color) is refused with invalid_target.Agents can blur a layer mask in one call: apply_filter takes target "mask" now.
Back to all clips