Skip to main content
Glama

crop

Destructive

Crop the canvas to an explicit rectangle (left, top, width, height in photo pixels). This is not a scale (use resize). IRREVERSIBLE in this session: there is no undo, so make a checkpoint first when in doubt. Every live filter, mask channel and the filter record survive a crop; it is the one geometry change that never refuses because of masked filters.

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>",
      "left": "<left>",
      "top": "<top>",
      "width": "<width>",
      "height": "<height>"
    },
    "name": "crop"
  }
}

Input Schema

NameRequiredDescriptionDefault
topYesTop edge of the new canvas, in document pixels.
leftYesLeft edge of the new canvas, in document pixels.
imageYesImage id, as returned by open_photo.
widthYesNew canvas width, in pixels.
heightYesNew canvas height, in pixels.

Output Schema

NameRequiredDescriptionDefault
widthNo
heightNo
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