photoshop_create_document
Create a new empty Photoshop document with custom width, height, color mode, and resolution. Ideal for starting a fresh design when no document is open.
Instructions
Create a new empty Photoshop document with specified dimensions and color mode.
Use when: starting a design from scratch or no document is open. Do NOT use when: opening an existing file — use photoshop_open_image.
Returns: created document id and name. Preconditions: none. Side effects: creates a new document and makes it active.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| width | Yes | Document width in pixels | |
| height | Yes | Document height in pixels | |
| colorMode | No | Color mode (RGB, CMYK, Grayscale) | RGB |
| resolution | No | Document resolution in DPI (default: 72) | |
| document_id | No | Optional Photoshop document id from photoshop_get_state / photoshop_list_documents. When set, the tool activates that document before running so a UI tab switch cannot retarget the edit. |