Skip to content

Commands

github-actions edited this page Nov 25, 2026 · 7 revisions

Commands

Inspect the window with canopy ls and canopy status. canopy commands lists the app actions below, even without an open window.

Run an action in the open window with canopy do:

canopy do pane.split --direction right
canopy do pane.split '{"direction":"right"}'

Arguments can be named flags or one JSON object. Required arguments are marked below. Actions use the current selection unless you give an explicit target. Some actions close terminals; read their descriptions before running them. Mods can add their own actions, which are not listed here.

canvas.zoom_in

Zoom the canvas in one step.

No arguments.

canvas.zoom_out

Zoom the canvas out one step.

No arguments.

canvas.zoom_reset

Reset canvas zoom.

No arguments.

canvas.arrange

Arrange selected cells or the current space: tidy, row, column or wires. Omit layout to repeat the last; picker opens the layout menu.

Argument Required
layout no
picker no
space no

canvas.undo

Restore geometry before the last canvas move, resize or arrange.

No arguments.

canvas.tile

Tile view: fit every expanded cell of the current space into the visible canvas, tmux-style, with the selected one largest; collapsed cells line up below. Repeat to put everything back.

No arguments.

canvas.fit

Fit the selection, else everything in the current space or Home; repeat to restore the previous camera.

No arguments.

canvas.mode

Enter canvas mode: its keys take priority and unbound keys are swallowed until Enter or Escape.

No arguments.

canvas.leave

Cancel a keyboard connection, or leave canvas mode with selection unchanged.

No arguments.

canvas.enter

Complete a keyboard connection, or expand the selected cell and leave canvas mode.

No arguments.

canvas.go

Select the nearest shown cell left, right, up or down without expanding it.

Argument Required
direction yes

canvas.space

Go into the next or prev space, space N (1-based, top strip order) or a space id, or the recent / oldest one entered; its cells fill the canvas.

Argument Required
direction yes

canvas.home

Leave the space for Home: space cards and cells outside any space.

No arguments.

canvas.select_all

Select every terminal and agent cell in the current place; only with canvas focus, so an entered terminal keeps its own select-all.

No arguments.

canvas.fit_all

Fit everything in the current place, whatever is selected; repeat to restore the previous camera.

No arguments.

canvas.collapse

Collapse the selected terminal cell.

No arguments.

canvas.connect

Start a keyboard connection from the selected cell; move to the other cell and press Enter.

No arguments.

canvas.nudge

Move the selected cell left, right, up or down by one canvas gap, with one undo step.

Argument Required
direction yes

canvas.new

Create a terminal beside the selected cell, in its space. With like: true, start what the selected cell runs (an agent or other startable program), else a plain terminal.

Argument Required
like no

canvas.agents

Open the installed agent list beside the selected cell.

No arguments.

quote.menu

Open the quote popover at point or the pointer: agents wired to the quoted pane first, then other running agents, then installed agents to start with the quote.

Argument Required
path yes
start no
end no
text yes
point no
pane no
kind no
source no

canvas.close_focused

Close the focused Files panel tab, or the one selected canvas pane. A browser closes its active tab; with several or no panes selected, nothing closes. Only the person can run it.

No arguments.

canvas.close

Close every selected pane (else the focused one) behind one dialog listing them, the named terminal, or one file or mod pane by id (pane; a mod pane holding text refuses); terminals and panes are the confirmed lists, closed without asking; working sub-agents refuse. Dialogs pass confirmed as agent or terminal, and dont_ask disables future plain-terminal prompts.

Argument Required
terminal no
terminals no
confirmed no
dont_ask no
pane no
panes no

canvas.note_new

Open a sticky note on the canvas. The optional point is in world coordinates.

Argument Required
point no

canvas.pane_new

Open a file, browser, sim (on a Mac with Xcode), or mod: pane. Files require path. A browser accepts an HTTP(S) address, an absolute local path or a file URL, and opens New tab when url is omitted. A sim opens udid (a simulator or "booted") or lists devices to pick. place is "panel" (a tab in the Files panel, the default for browsers and sims), "canvas" (at point, the middle of the view by default) or "pinned" (the top right of the screen; pinned: true is the same). Pass wire to place it beside a terminal and wire it in that terminal's space. A file path already open moves its pane. The reply includes pane, kind, wired and the pane's path, url or udid when applicable.

Argument Required
kind yes
path no
url no
udid no
wire no
point no
place no
pinned no

canvas.pane_dock

Dock a browser or sim pane as a tab in the Files panel, or with docked false move it back onto the canvas at its saved place. Without docked it toggles. Acts on pane, else the selected pane. Replies with pane and docked.

Argument Required
pane no
docked no

canvas.pane_pin

Pin a pane where it shows on screen, so it stays there while the canvas pans and zooms, or with pinned false move it back onto the canvas. Without pinned it toggles. Acts on pane, else the selected pane. Replies with pane and pinned.

Argument Required
pane no
pinned no

canvas.pane_set

Merge props (an object) into a mod pane's saved props; mods save their state with it, and a string props.text is what canopy pane read returns. Replies with nothing.

Argument Required
pane yes
props yes

canvas.hand

Hand tool: while on, a left drag anywhere on the canvas pans, as with Space held. Without on it toggles.

Argument Required
on no

canvas.pane_read

A pane's text inside a envelope that marks it as untrusted, cut at 256 KiB. Replies with text.

Argument Required
pane yes

canvas.pane_shot

Save a pane as drawn on screen to a PNG (default: /canopy/.png); refuses when it is off screen. Replies with path.

Argument Required
pane yes
path no

canvas.pane_open

Point a browser or simulator pane at a target. A browser loads an HTTP(S) address, an absolute local path or a file URL in its active tab and makes it Home. Pass tab: new to open the URL in a new browser tab. A bare localhost:3000 uses http. Open URL without a target focuses the address field when a browser pane is given or selected. A sim takes a udid or "booted" and refreshes the screenshot when already showing that device.

Argument Required
pane yes
target yes
tab no

canvas.browser_tab_new

Open a new tab in a browser pane. Pass an HTTP(S) address, an absolute local path or a file URL, or omit url for an empty tab. Replies with pane and tab. With no pane and no single browser pane selected, runs canvas.new.

Argument Required
pane no
url no

canvas.browser_tab_close

Close a tab in a browser pane. Without tab, closes the active tab. Closing the last tab leaves an empty tab. With no pane and no single browser pane selected, runs tab.close if bound.

Argument Required
pane no
tab no

canvas.browser_tab_select

Switch to a browser tab by id. Pass pane or use the selected browser pane.

Argument Required
pane no
tab yes

canvas.browser_back

Go back in a browser pane's history (pane, else the selected pane).

Argument Required
pane no

canvas.browser_forward

Go forward in a browser pane's history (pane, else the selected pane).

Argument Required
pane no

canvas.browser_reload

Reload a browser pane's page (pane, else the selected pane).

Argument Required
pane no

canvas.browser_home

Load the URL a browser pane was last opened with (pane, else the selected pane).

Argument Required
pane no

canvas.browser_pick

Start annotating a browser page with the Select tool: click an element to pin a comment on it (pane, else the selected pane).

Argument Required
pane no

canvas.browser_annotate

Start or stop annotating a browser page: select elements, draw, and send comments to an agent. Acts on pane, else the selected browser pane.

Argument Required
pane no

canvas.browser_shot

Save a browser pane's page to /canopy/.png and toast the path (pane, else the selected pane).

Argument Required
pane no

canvas.browser_external

Open a browser pane's page, or the tab named by tab, in the system browser (pane, else the selected pane).

Argument Required
pane no
tab no

canvas.browser_copy

Copy a browser pane's page URL to the clipboard and toast it (pane, else the selected pane).

Argument Required
pane no

canvas.browser_viewport

Set a browser viewport to responsive, 1280x800, 1024x768, mobile (375x812) or tablet (768x1024). The desktop alias selects 1280x800. Fixed CSS sizes scale to fit and center inside the pane. Responsive pages reflow as the pane resizes. Pass pane or use the selected browser pane.

Argument Required
size yes
pane no

canvas.browser_expand

Expand a browser pane's live page into a tab of the top strip that fills the canvas area, or collapse it again (pane, else the selected pane). Escape, any space tab or Home, and closing the pane collapse it.

Argument Required
pane no

canvas.browser_pop

Pop a browser pane out into its own window with the same header, every tab moving with it, or bring it back (pane, else the selected pane). The pane shows "Popped out" meanwhile.

Argument Required
pane no

canvas.browser_cookies

Set how long browser panes keep cookies and site data: until_quit or forever.

Argument Required
keep yes

canvas.browser_links

Set where HTTP and HTTPS links clicked in terminals open: built_in (a browser tab) or default (the system browser).

Argument Required
open yes

canvas.browser_allow_folder

Ask the person at the window to pick a directory containing the open local file. WebKit can then load assets from that folder for this tab.

Argument Required
pane no

canvas.browser_open_file

Pick an .html or .htm file and open it in a new tab of a browser pane (pane, else the selected pane). Opens a native picker for the person at the window.

Argument Required
pane no

canvas.browser_clear

Delete the cookies, storage and cache of every browser pane (asks first unless confirmed).

Argument Required
pane no
confirmed no

canvas.browser_inspect

Open the Web Inspector for a browser pane in its own window, after snapping the pane to a usable size at 100% zoom.

Argument Required
pane no

canvas.sim_refresh

Take a new screenshot for the simulator pane and try live again after a failure. Acts on pane, else the selected simulator pane.

Argument Required
pane no

canvas.sim_device

Pick another simulator for a simulator pane from a menu (Xcode's version on top); picking boots it. Acts on pane, else the selected simulator pane.

Argument Required
pane no

canvas.sim_hub

Open Xcode's Device Hub to use a simulator.

No arguments.

canvas.sim_home

Press Home on a simulator pane's live device. Acts on pane, else the selected simulator pane.

Argument Required
pane no

canvas.sim_screenshot

Save a simulator pane's live screen to the Desktop as a PNG. Replies with path. Acts on pane, else the selected simulator pane.

Argument Required
pane no

canvas.sim_record

Start recording a simulator pane's screen to a movie on the Desktop, or stop and save it. Replies with the path when it starts. Acts on pane, else the selected simulator pane.

Argument Required
pane no

canvas.sim_annotate

Start or stop annotating a still of a simulator screen. Acts on pane, else the selected simulator pane.

Argument Required
pane no

canvas.annotate_send

Submit the annotated screenshot and comments to the sole wired agent, or the one chosen with canvas.annotate_agent. Acts on pane, else the selected annotation.

Argument Required
pane no

canvas.annotate_action

Run a tool, colour, stroke, undo or redo in an active annotation, or choose its target agent with agent:<terminal>. Used by its menus.

Argument Required
pane yes
action yes

canvas.annotate_agent

Open the menu that chooses which agent an annotation is sent to (wired agents first). Acts on pane, else the selected annotation.

Argument Required
pane no

canvas.sim_zoom

Resize a simulator pane: step actual (one device point per canvas unit, requires a live frame), default (340x700 on screen), in or out. Omit step for actual. Acts on pane, else the selected simulator pane.

Argument Required
step no
pane no

canvas.sim_shutdown

Shut down the device in the named or selected simulator pane. On success, show the device picker or close the pane if close is true. The result appears in a toast.

Argument Required
pane no
close no

canvas.sim_pop

Pop a simulator pane's device out into its own window, or bring it back. Acts on pane, else the selected simulator pane.

Argument Required
pane no

canvas.sim_reveal

Show a saved screenshot or recording in Finder.

Argument Required
path yes

canvas.sim_input

An agent's input for a live simulator pane, in device points from the top left: action tap (x, y), swipe (x1, y1, x2, y2, ms, default 300), type (text, US keyboard) or press (button: home, lock, power, siri, volume-up, volume-down, action). Starts the device if the pane is off screen.

Argument Required
pane yes
action yes
x no
y no
x1 no
y1 no
x2 no
y2 no
ms no
text no
button no

canvas.sync

Sync input (like tmux synchronize-panes) for the selected panes, or turn it off: typing in one goes to all. Esc or deselecting ends it.

No arguments.

canvas.equalize

Give the selected panes (else the focused pane) the standard size (settings terminal_size); tile view re-tiles.

No arguments.

canvas.front

Bring the selected panes (else the focused pane, or a named terminal outside the selection) in front of every other pane; the order is saved.

Argument Required
terminal no

canvas.back

Send the selected panes (else the focused pane, or a named terminal outside the selection) behind every other pane; the order is saved.

Argument Required
terminal no

canvas.clear_finished

Clear finished sub-agent cells and their labels, optionally one id.

Argument Required
terminal yes
id no

wire.connect

Draw a Wire edge between two panes of one space (pane ids: a terminal address, sub::, or p for a file pane). Panes in different spaces, and two file panes, are refused.

Argument Required
a yes
b yes

wire.remove

Remove a drawn Wire edge between two cells.

Argument Required
a yes
b yes

quote.send

Paste a quote and optional message, waiting up to 30 seconds for bracketed paste. Annotations also submit the prompt.

Argument Required
path yes
start no
end no
text yes
message no
terminal no
argv no
pane no
kind no
page no
region no
crop no
source no
images no

canvas.expand

Expand the named or last selected terminal cell into a live terminal in place, or collapse it.

Argument Required
terminal no

panel.open

Expand a terminal's cell in the canvas, as canvas.expand does (it no longer opens the side panel).

Argument Required
terminal yes

panel.close

Close the canvas file panel.

No arguments.

view.agents

Show agent cards.

No arguments.

view.all

Show all cards.

No arguments.

view.terminals

Show terminal cards.

No arguments.

canvas.space_style

Set a space color.

Argument Required
id yes
color yes

canvas.pane_color

Set a canvas pane's hue to a named palette color or #RRGGBB. Pass null or omit color to inherit the space's hue.

Argument Required
pane yes
color no

canvas.pane_color_next

Assign the next unused color in the pane's space.

Argument Required
pane yes

panel.close_tab

Close a file tab in the Files panel, asking before discarding unsaved changes. The confirm dialog passes confirmed and the draft's generation, and a stale generation closes nothing. Only the person can run it.

Argument Required
path yes
confirmed no
generation no

panel.editor

Choose a file panel editor, return to the read-only view after saving, or report the current editing file's dirty state.

Argument Required
choice no
done no
path no
dirty no

preview.open

Open a file tab, or choose a file; place canvas or point pins a canvas card.

Argument Required
path no
point no
place no

canvas.create

Create a canvas terminal or space at a world point (default: the middle of the view); a space with a folder (empty: the root) is made directly, without one the Choose space dialog opens.

Argument Required
point no
kind no
space no
argv no
name no
folder no

panel.pop_out

Pop a terminal cell into its own window (default: the last selected cell).

Argument Required
terminal no

panel.bring_back

Bring a popped terminal back.

Argument Required
terminal yes

space.new

Make a space: its name (default: none, so it's called after where its first terminal is), the folder its terminals start in (default: the focused terminal's), its first tab's name (default: none, so it's called by its number), optionally an agent (argv) and its first message (task), and the machine it lives on (hc machine ls; default the focused space's machine for keys and clicks, this computer for scripts; empty string: this computer; its terminals start in that machine's home unless folder).

Argument Required
name no
folder no
tab no
argv no
task no
machine no

space.close

Close a space and end its terminals (asks first unless confirmed).

Argument Required
id no
confirmed no

space.rename

Rename a space (asks the person when no name; an empty name: called after where its first terminal is again).

Argument Required
id no
name no

space.move

Move a space to a position (1 = first).

Argument Required
id yes
index yes

tab.new

Make a tab in a space (default: the selected one; name default: none, so it's called by its number) with a terminal in folder (default: the focused terminal's), optionally an agent (argv) and its first message (task); or with a mod as its only pane (mod, its props: a file, a board). With no space open, a person's new tab starts a space (as space.new).

Argument Required
name no
space no
folder no
argv no
task no
mod no
props no

tab.close

Close a tab and end its terminals. Its space's last terminals need confirmed (a person is asked).

Argument Required
id no
confirmed no

tab.rename

Rename a tab (asks the person when no name; an empty name: called by its number again).

Argument Required
id no
name no

tab.move

Move a tab to a position in its space (1 = first).

Argument Required
id yes
index yes

pane.split

Split a pane (default: the focused one) "right" or "down" with a new terminal, or with a mod (mod, its props) beside it.

Argument Required
direction yes
pane no
argv no
mod no
props no

pane.close

Close a pane and end its terminal.

Argument Required
pane no

terminal.open

Start a terminal: as a new tab (place "tab", default), or "right"/"down" of the focused pane.

Argument Required
argv no
folder no
place no
name no

terminal.keep

Give a running terminal without a pane (a sub-agent) a pane: a new tab, or "right"/"down".

Argument Required
terminal yes
place no

terminal.park

Take a terminal's pane away and disable core keep; it keeps running (a sub-agent shows under its parent again).

Argument Required
terminal yes

terminal.pin

Pin an agent to the top of the agent lists (pinned true) or unpin it (false). Pins are kept with the terminal, so every Canopy client shows them, and end with it.

Argument Required
terminal yes
pinned yes

terminal.kill

End a terminal and its sub-agents.

Argument Required
terminal yes

space.select

Show a space (by position or id).

Argument Required
index no
id no

space.next

Show the next space.

No arguments.

space.prev

Show the previous space.

No arguments.

tab.select

Show a tab (by position in the space, or id).

Argument Required
index no
id no

tab.settle

Put a tab away on this screen (default: the shown one): out of the lists, still running. It comes back when shown or when an agent in it needs you.

Argument Required
id no

tab.unsettle

Bring a settled tab back to the lists.

Argument Required
id no

tab.next

Show the next tab.

No arguments.

tab.prev

Show the previous tab.

No arguments.

pane.zoom

Show only this pane of its tab, or all again.

Argument Required
pane no

pane.focus

Focus a pane (or the pane showing a terminal); a file, browser or other canvas pane is selected and brought into view.

Argument Required
pane no
terminal no

pane.go

Focus the pane or focusable mod to the "left", "right", "up" or "down".

Argument Required
direction yes

pane.swap

Swap a pane (default: the focused one) with its neighbor in a direction, or with another pane of its tab (target). Give exactly one of direction or target.

Argument Required
direction no
pane no
target no

terminal.peek

Peek at a running terminal over the tab, with keep-as-tab and close controls.

Argument Required
terminal yes

terminal.show

Show a terminal in a pane for now, in place of its own (no terminal: back).

Argument Required
terminal no
pane no

terminal.select_all

Select a terminal's whole screen and scrollback (default: the focused one), ready to copy. On the alternate screen, select only that screen.

Argument Required
terminal no

terminal.copy

Copy the focused terminal's selection. With nothing selected, that key goes to the program.

No arguments.

terminal.scroll

Scroll a terminal's view of its history (default: the focused one). Give exactly one of: lines (a whole number; negative goes up, toward history), pages (a number, fractions allowed; one page is the terminal's rows), to: "top" (oldest history) or "bottom" (the live screen). This scrolls Canopy's view, not the program.

Argument Required
lines no
pages no
to no
terminal no

terminal.paste

Paste into the focused terminal (copied files as if dropped; an image alone as terminal.paste_image pastes it).

No arguments.

terminal.paste_image

Ctrl+V: the clipboard's image as a file on the focused terminal's machine, when that's another one; on Windows, paste clipboard text; otherwise Ctrl+V goes to the terminal.

No arguments.

terminal.search

Search the focused terminal's screen and scrollback; the find bar and query stay with that terminal.

No arguments.

agent.focus

Show an agent (sub-agents too). On the canvas it also enters its pane.

Argument Required
terminal yes

agent.next

Show the next agent, in the order the agents list shows them.

No arguments.

agent.prev

Show the previous agent.

No arguments.

layout.switch

Show a layout (layouts/.json), or the next one.

Argument Required
name no

layout.clone

Duplicate a layout as -copy (or as), then show it.

Argument Required
name yes
as no

mod.clone

Duplicate a mod as -copy (or as).

Argument Required
name yes
as no

layout.set

Replace a personal layout tree; shipped layouts accept only click/look fields (not structure).

Argument Required
layout yes

layout.toggle

Hide or show a layout node.

Argument Required
id yes

layout.show

Show a layout node.

Argument Required
id yes

layout.hide

Hide a layout node.

Argument Required
id yes

layout.resize

Size a layout node.

Argument Required
id yes
px no
weight no

layout.select

Show one child of a stack.

Argument Required
stack yes
child yes

layout.reset

Reset a shipped layout and its clicks (the old file is kept aside).

Argument Required
name no

mod.open

Toggle a mod as the overlay its mod.json describes; calling again closes it.

Argument Required
name yes

overlay.close

Close an overlay (default: the top dialog or popup).

Argument Required
id no

app.help

Toggle the keys dialog.

No arguments.

app.welcome

Show the welcome again.

No arguments.

app.palette

Toggle the command palette: every command by name, with its key; calling again closes it.

No arguments.

app.settings

Open the settings (section: look, keyboard, shortcuts, machines, alerts).

Argument Required
section no

app.reset

The escape hatch: set the shown layout and keys aside, back to the default screen.

No arguments.

app.theme

Use a theme (a preset or themes/.json).

Argument Required
name yes

app.zoom_in

Make everything bigger.

No arguments.

app.zoom_out

Make everything smaller.

No arguments.

app.zoom_reset

Back to normal size.

No arguments.

app.menu

Open the shared primary command menu, optionally a named group.

Argument Required
group no

app.quit

Quit Canopy, or hide it if Run in Background is on (macOS).

No arguments.

app.hide

Hide the app (macOS).

No arguments.

app.hide_others

Hide other apps (macOS).

No arguments.

app.show_all

Show all apps (macOS).

No arguments.

window.close

Close the window (on Linux, quits).

No arguments.

window.minimize

Minimize the window.

No arguments.

window.maximize

Maximize the window, or back.

No arguments.

canvas.pane_quote

Open the quote menu for the last selected image pane.

No arguments.

canvas.pdf_find

Toggle text search in the last selected PDF pane.

No arguments.

canvas.pdf_highlight

Toggle text highlight mode in the last selected PDF pane.

No arguments.

canvas.pdf_prev

Go to the previous page in the last selected PDF pane.

No arguments.

canvas.pdf_next

Go to the next page in the last selected PDF pane.

No arguments.

preview.external

Open a local image or PDF in macOS Preview.

Argument Required
path yes

canvas.pdf_zoom_out

Zoom out in the last selected PDF pane.

No arguments.

canvas.pdf_zoom_reset

Reset zoom in the last selected PDF pane.

No arguments.

canvas.pdf_zoom_in

Zoom in in the last selected PDF pane.

No arguments.

canvas.pdf_clear

Clear all highlights in the last selected PDF pane.

No arguments.

Clone this wiki locally