Skip to main content
Glama

bake

DestructiveIdempotent

Bake a layer's live filters into its own pixels without merging it into anything: the layer survives as itself, just with no more editable filters; a text layer stays a text layer (baking never rasterizes one). A masked filter's confinement survives the bake exactly. Defaults to the selected layer, or the topmost layer if none is selected. Baking clears the masked-filter refusal of canvas_size, resize and transform_image: it is the way to make a masked adjustment safe to resize, rotate or flip around. all: true bakes every ordinary layer with a live filter at once; a group layer is always skipped, even one that carries its own filter, and is reported under skipped_groups_with_filters. Targeting a group directly (layer / layer_id) is refused. IRREVERSIBLE in this session: there is no undo, so make a checkpoint first when in doubt.

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": {
      "image": "<image>"
    },
    "name": "bake"
  }
}

Input Schema

NameRequiredDescriptionDefault
allNoBake every layer on the image that has any live filter, instead of just one. A group layer is always skipped even when it carries its own filter (filters on a group item cannot be merged) — any such group is reported under skipped_groups_with_filters rather than silently ignored.
imageYesImage id, as returned by open_photo.
layerNoLayer name. Defaults to the selected layer, or the topmost layer if none is selected. Ignored when layer_id or all is given.
layer_idNoCanonical layer id. Takes priority over `layer`. Ignored when `all` is given.

Output Schema

NameRequiredDescriptionDefault
nameNo
bakedNo
layer_idNo
baked_layersNo
mindset_notesNo
skipped_groups_with_filtersNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • removedOutput schema / properties / editor_notes
      Removed value: -{
      -  "items": {
      -    "type": "string"
      -  },
      -  "type": "array"
      -}
    • addedOutput schema / properties / mindset_notes
      Added value: +{
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
  2. Changed1 schema field changed
    • addedOutput schema / properties / editor_notes
      Added value: +{
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
  3. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources