Canvas, boards and projects
13 tools: set_format, set_canvas, set_doc_name, list_sheets…
set_format
Resize the canvas to a social format preset: '16:9', '9:16', '1:1', '4:5' or '4:3'.
| Input | Type | |
|---|---|---|
preset | string | Required |
set_canvas
Set the canvas width/height/fps/background colour, or previewQuality ('auto' | 'economy' | 'draft' | 'balanced' | 'full' — playback decoder cap; full = original resolution on this sheet). backgroundMode: 'color' (the background hex — a brand-colour canvas), 'blur' (a blurred copy of the main clip fills the frame) or 'image' (cover-fits backgroundImage, a bin mediaId).
| Input | Type | |
|---|---|---|
width | number | |
height | number | |
fps | number | |
background | string | |
backgroundMode | one of color | blur | image | |
backgroundImage | string | |
previewQuality | one of auto | economy | draft | balanced | full |
set_doc_name
Rename the project.
| Input | Type | |
|---|---|---|
name | string | Required |
list_sheets
List the project's PAGES (sheets) — id, name, size, clip count, and which is active. Each sheet is its own timeline; the editing tools act on the ACTIVE sheet. Switch with switch_sheet.
create_sheet
Create a new blank page (sheet) and switch to it — for a fresh variation or a new part of the project.
switch_sheet
Open a page (sheet) by id (from list_sheets), making it the active timeline for subsequent edits.
| Input | Type | |
|---|---|---|
id | string | Required |
duplicate_sheet
Duplicate the ACTIVE page into a new sheet, optionally at a new size — the clean way to make a per-format variant (e.g. a 1080x1920 9:16 copy of a 16:9 edit). name labels the copy.
| Input | Type | |
|---|---|---|
name | string | Required |
width | number | |
height | number |
delete_sheet
Delete a page (sheet) by id. The user can restore the last-deleted sheet in the UI.
| Input | Type | |
|---|---|---|
id | string | Required |
list_projects
List the user's PROJECTS (isolated boards) — id, name, page count, and which is active. A project is a whole separate board with its own pages/sheets and its own media; switching projects changes everything you see. (Pages within one project are list_sheets.)
create_project
Create a new project (a fresh, empty isolated board) and switch to it. Use this to start unrelated work instead of adding pages to the current board. name labels it.
| Input | Type | |
|---|---|---|
name | string |
switch_project
Open a project by id (from list_projects), making its board active for all subsequent edits.
| Input | Type | |
|---|---|---|
id | string | Required |
rename_project
Rename a project by id.
| Input | Type | |
|---|---|---|
id | string | Required |
name | string | Required |
delete_project
Delete a project (its whole board and media) by id. Destructive — the user can't undo this from the UI, so confirm intent before calling.
| Input | Type | |
|---|---|---|
id | string | Required |