Skip to main content
Glama

place_image

Place another uploaded photo into an open photo as a NEW LAYER (compositing). source is an upload handle "upload:" from request_upload (or the name of one of your uploads); a built-in sample photo listed by inspect what=uploads also works. Optional x, y, width, height, name and position work as for layer op=create. For a cut-out: place, then select_with_ai target=subject with that layer, then layer_mask op=create from the channel. If the file holds several pictures (a multi-page TIFF), only ONE is placed (not a flattened composite). On this server the placed layer's scaled box must stay within the workspace's pixel limit (less at a higher bit depth), and a photo's layers together within its layer limit. Uploads and open photos belong to this server; a photo opened through another Editmamei connector stays with that connector.

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>",
      "source": "<source>"
    },
    "name": "place_image"
  }
}

Input Schema

NameRequiredDescriptionDefault
xNoThe new layer's ABSOLUTE horizontal offset in document pixels (not a delta).
yNoThe new layer's ABSOLUTE vertical offset in document pixels (not a delta).
nameNoThe new layer's name. Defaults to the source file's own base filename. Every case enforces a unique name, suffixing " 2", " 3", ... if the name is already taken.
imageYesImage id, as returned by open_photo.
widthNoScale the placed layer to this width. With height, stretches to exactly that box. Alone, height is derived to keep the source file's own aspect ratio. Omit both to place at the source file's natural size.
heightNoScale the placed layer to this height. See width.
sourceYes"upload:<upload_id>" (the name of one of your uploads also works).
positionNoIndex within the target parent's (or top-level) stack, 0 = topmost.
parent_groupNoThe group layer_id to insert the new layer into (omit for top-level).

Output Schema

NameRequiredDescriptionDefault
xNo
yNo
nameNo
widthNo
heightNo
layer_idNo
parent_groupNo
baked_filtersNoNames of the placed layer's own live filters that were baked into its pixels before placing. Omitted when the source layer had none.
mindset_notesNo

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