photopea_add_gradient
Apply a linear gradient fill
How to use it
Project documentation lists photopea_add_gradient for the Photopea MCP Server MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), then check which tools your installed version makes available. Tool availability can depend on configuration and credentials. A server handshake does not verify this tool’s behavior. See the full listing for setup details.
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
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
Move a layer in the stack (above, below, top, bottom)
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