Canvas Tools

Tools for managing the canvas itself (size, background color).

get_canvas_info

Get canvas size, background color, and element count.

Parameters: None

Returns: JSON with canvas properties

{
  "width": 1920,
  "height": 1080,
  "backgroundColor": "#FFFFFF",
  "elementCount": 5,
  "projectId": "abc123",
  "projectName": "My Design"
}

Example prompt: "What's the current canvas size?"


set_canvas

Set canvas width, height, and/or background color.

Parameters:

Name Type Required Description
width number No Canvas width in pixels
height number No Canvas height in pixels
backgroundColor string No Background color hex (e.g. #FFFFFF)

Returns: Confirmation message

Example prompt: "Set the canvas to 1080x1080 with a dark blue background"

{
  "width": 1080,
  "height": 1080,
  "backgroundColor": "#1E3A5F"
}

Common Canvas Sizes

Use Case Width Height
Instagram Post 1080 1080
Instagram Story 1080 1920
Facebook Post 1200 630
Twitter/X Post 1200 675
YouTube Thumbnail 1280 720
LinkedIn Post 1200 627
Presentation Slide 1920 1080
A4 Print (300dpi) 2480 3508