Skip to main content
Glama

Create Document

photopea_create_document

Create a blank document with custom dimensions, resolution, and color mode to start a design project. Sets up the active canvas with a background layer for editing.

Instructions

Create a new blank document and make it the active document. This is typically the first step in a workflow. The document opens with a Background layer. Use open_file instead to edit an existing image.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
widthYesDocument width in pixels (e.g. 1920 for full HD)
heightYesDocument height in pixels (e.g. 1080 for full HD)
resolutionNoResolution in DPI (72 for screen, 300 for print)
nameNoDocument name shown in the title barUntitled
modeNoColor mode (use RGB for most workflows)RGB
fillColorNoBackground fill color as hex (e.g. #ffffff for white, #000000 for black). Defaults to white if omitted.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/attalla1/photopea-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server