photopea_reorder_layer
Move a layer in the stack (above, below, top, bottom)
How to use it
photopea_reorder_layer is exposed by the Photopea MCP Server MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the photopea_reorder_layer tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.
Install Photopea MCP Server
claude mcp add -s user photopea -- npx -y photopea-mcp-serverOther tools in Photopea MCP Server (33)
Add a solid color fill layer
Apply a linear gradient fill
Add a new empty art layer
Add a shape (rectangle or ellipse)
Add a text layer at specified coordinates
Apply brightness/contrast, hue/saturation, levels, or curves
Apply gaussian blur, sharpen, unsharp mask, noise, or motion blur
Deselect the current selection
Close the active document
Create a new document with specified dimensions and settings
Delete a layer by name or index
Duplicate a layer with optional new name
Edit content or style of an existing text layer
Export to PNG, JPG, WebP, PSD, or SVG
Fill the current selection with a color
Get active document info (name, dimensions, resolution, color mode)
Get the full layer tree as JSON
Group named layers into a layer group
List available fonts, with optional search filter
Load a custom font from a URL (TTF, OTF, WOFF2)
Create a rectangular, elliptical, or full selection
Expand, contract, feather, or invert a selection
Translate a layer by x/y offset
Open an image from a URL or local file path
Place an image from URL or local path
Redo one or more actions
Resize the active document (resamples content to fit)
Execute arbitrary Photopea JavaScript
Make a layer active by name or index
Set opacity, blend mode, visibility, name, or lock state
Scale, rotate, or flip a layer
Undo one or more actions
Ungroup a layer group