adobe_add_rectangle
Adds a filled rectangle or mask on a new layer in Photoshop or Illustrator using pixel- or point-based bounds and RGB color.
Instructions
Add a filled motif or mask on a new layer; bounds are x,y,width,height in px/pt.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"application": "<application>",
"session_id": "<session_id>",
"name": "<name>",
"bounds": "<bounds>",
"rgb": "<rgb>"
},
"name": "adobe_add_rectangle"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rgb | Yes | ||
| name | Yes | ||
| bounds | Yes | ||
| opacity | No | ||
| session_id | Yes | ||
| application | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| copy | Yes | ||
| document | Yes | ||
| retry_safe | Yes | ||
| session_id | Yes | ||
| operation_id | Yes | ||
| source_sha256 | Yes |