Skip to main content
Glama

resize

Destructive

Scale the whole photo up or down. This is not a crop (use crop). Give width+height to stretch to an exact box, one alone to keep the aspect, or long_edge to scale by the longer side. IRREVERSIBLE in this session: there is no undo, so make a checkpoint first when in doubt. REFUSES when the photo has a masked filter, or any filter that came with the file: resize before adding masked filters, not after. A large target can take tens of seconds; if the call times out the editing session restarts and unsaved work (filters, masks, any other open photo) is lost, so make a checkpoint before an aggressive resize. On this server the result must stay within the workspace's pixel limit.

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": "resize"
  }
}

Input Schema

NameRequiredDescriptionDefault
imageYesImage id, as returned by open_photo.
widthNoTarget width, px. With height, stretches to exactly that box. Alone, height is derived to keep aspect. Capped at 30000 px/side and 250 MP total (a hard limit).
heightNoTarget height, px. See width.
long_edgeNoScale so the longer side lands here, preserving aspect. Use this OR width/height.

Output Schema

NameRequiredDescriptionDefault
widthNo
heightNo
mindset_notesNo
effect_update_failuresNoNames of effect filters (position/direction/size-dependent ones tracked through geometry changes — a center, an angle, an offset, or a size-dependent blur radius under resize) whose own params could not be updated for this transform (a live update failure) -- they were restored to their OLD values in manage_filters's own ledger (guaranteed), and the live render was also asked to restore those same OLD values (best effort — it can, rarely, also fail). Omitted when every filter updated cleanly.

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