ps_getState
Retrieves Photoshop document state, including open documents, active document size, resolution, mode, bit depth, path, saved status, layer tree, and active layer for inspection and workflow decisions.
Instructions
Photoshop: open documents and the active document — size, resolution, mode, bit depth, path, saved flag, full layer tree (type/kind, visibility, opacity, blend, bounds, text), active layer.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "ps_getState"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| document | No | Document name; omit for the active document. |