Every command

The full list, as woolshed commands prints it. Arguments can be named flags or one JSON object.

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

Run an action in the open window with woolshed do:

woolshed do pane.split --direction right
woolshed 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.

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), or a mod as that tab's only pane (mod, its props: a chat), 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).

ArgumentRequired
nameno
folderno
tabno
argvno
taskno
machineno
modno
propsno

space.close

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

ArgumentRequired
idno
confirmedno

space.rename

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

ArgumentRequired
idno
nameno

space.move

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

ArgumentRequired
idyes
indexyes

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).

ArgumentRequired
nameno
spaceno
folderno
argvno
taskno
modno
propsno

tab.close

Close a tab and end its terminals.

ArgumentRequired
idno
confirmedno

tab.rename

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

ArgumentRequired
idno
nameno

tab.move

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

ArgumentRequired
idyes
indexyes

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.

ArgumentRequired
directionyes
paneno
argvno
modno
propsno

pane.close

Close a pane and end its terminal.

ArgumentRequired
paneno

terminal.open

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

ArgumentRequired
argvno
folderno
placeno
nameno

terminal.keep

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

ArgumentRequired
terminalyes
placeno

terminal.park

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

ArgumentRequired
terminalyes

terminal.right_click

Where right-clicks in a terminal (default: the focused one) go when its program takes the mouse: "program" or "menu" (Woolshed's, the default). Shift+right-click is always the menu.

ArgumentRequired
toyes
terminalno

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 Woolshed Core client shows them, and end with it.

ArgumentRequired
terminalyes
pinnedyes

terminal.rename

Name a terminal (default: the focused one): its pane header, the agent lists and alerts show the name instead of its title. Asks the person when no name; an empty name goes back to its title. Kept with the terminal, so every Woolshed Core client shows it.

ArgumentRequired
terminalno
nameno

terminal.kill

End a terminal and its sub-agents.

ArgumentRequired
terminalyes

space.select

Show a space (by position or id). When another window shows its selected tab, a tab of it no window shows comes here instead; when every one is shown elsewhere, that window comes to the front. here: true shows it in this window anyway.

ArgumentRequired
indexno
idno
hereno

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). When another window shows it, that window comes to the front instead; here: true shows it in this window.

ArgumentRequired
indexno
idno
hereno

tab.send

Show a tab (default: the shown one) in another window: to a window number, or "next" (default): the window on the next screen, opened there when it has none. This window moves on to a tab no window shows.

ArgumentRequired
idno
tono

tab.drag

A tab bar's press on a tab: the app follows the pointer, and a release past the window's edge sends the tab there, to the window under it or to a new window on that screen (tab.send). Released inside, nothing happens; the tab bar reorders by itself.

ArgumentRequired
idyes

space.send

Show a space (default: the shown one) in another window, as tab.send does with its selected tab.

ArgumentRequired
idno
tono

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.

ArgumentRequired
idno

tab.unsettle

Bring a settled tab back to the lists.

ArgumentRequired
idno

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.

ArgumentRequired
paneno

pane.focus

Focus a pane (or the pane showing a terminal).

ArgumentRequired
paneno
terminalno

pane.go

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

ArgumentRequired
directionyes

pane.swap

Swap the focused pane with its neighbor in a direction.

ArgumentRequired
directionyes

terminal.peek

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

ArgumentRequired
terminalyes

terminal.show

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

ArgumentRequired
terminalno
paneno

terminal.copy

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

No arguments.

terminal.clear

Clear a terminal's screen and scrollback in this window (default: the focused one), then ask its program to draw again (Ctrl+L), so a shell shows a fresh prompt. A full-screen program (an editor, a pager) is left as it is. Other windows keep their copy.

ArgumentRequired
terminalno

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 Woolshed's view, not the program.

ArgumentRequired
linesno
pagesno
tono
terminalno

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.select

Copy mode: a keyboard cursor over a terminal's screen and scrollback (default: the focused one), shown as a one-cell selection; the first call puts it at the program's cursor. move: left, right, up, down, next-word, prev-word, end-word, next-big-word, prev-big-word, end-big-word, line-start, first-char, line-end, page-up, page-down, half-page-up, half-page-down, top, bottom, screen-top, screen-middle, screen-bottom (count repeats it). mark: true starts the selection at the cursor (false drops it); select: "word" or "line" under the cursor; to: {row, col} on the visible screen; block: a rectangle; swap: cursor and mark trade places; copy: copies the marked text and leaves copy mode; exit: leaves it. The view follows the cursor. Answers cursor and mark ({row, col, line}), the selected text, and active. Typing or a mouse selection also ends it.

ArgumentRequired
moveno
countno
markno
selectno
tono
blockno
swapno
copyno
exitno
terminalno

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). When another window shows it, that window comes to the front and focuses it.

ArgumentRequired
terminalyes

agent.answer

Answer an agent that needs you, in its terminal: "allow" (Enter: its dialog's first choice, yes), "deny" (Esc: no), an option's number ("1" to "9"), or "reply" (shows it and opens Reply: says no, then types your text in once it's free). Keys go in only while it's still blocked.

ArgumentRequired
terminalyes
answeryes

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/<name>.json), or the next one.

ArgumentRequired
nameno

layout.clone

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

ArgumentRequired
nameyes
asno

mod.clone

Duplicate a mod as <name>-copy (or as).

ArgumentRequired
nameyes
asno

layout.set

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

ArgumentRequired
layoutyes

layout.toggle

Hide or show a layout node.

ArgumentRequired
idyes

layout.show

Show a layout node.

ArgumentRequired
idyes

layout.hide

Hide a layout node.

ArgumentRequired
idyes

layout.resize

Size a layout node.

ArgumentRequired
idyes
pxno
weightno

layout.select

Show one child of a stack.

ArgumentRequired
stackyes
childyes

layout.reset

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

ArgumentRequired
nameno

mod.open

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

ArgumentRequired
nameyes

overlay.close

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

ArgumentRequired
idno

browser.open

Open a web page in the Browser pane: url (5173 and localhost:5173 mean http://localhost:5173), in the page shown already (default), page id (made with that id when there's none), or a new one (new: true); place "right" (default), "down", "tab" or "none" (no pane: for agents). Waits for it to load; answers with its id, url and title. The pages run in an installed Chrome, Chromium, Edge or Brave, headless.

ArgumentRequired
urlno
idno
placeno
newno
timeoutno

browser.navigate

Go to an address in a page (default: the one last used or shown) and wait for it to load (timeout in ms, default 15000). A page that won't load is an error saying why (net::ERR_CONNECTION_REFUSED).

ArgumentRequired
urlyes
idno
timeoutno

browser.back

Go back in a page's history.

ArgumentRequired
idno

browser.forward

Go forward in a page's history.

ArgumentRequired
idno

browser.reload

Load the page again (hard: true skips the cache).

ArgumentRequired
idno
hardno

browser.click

Click an element, as a person's click: by ref (from browser.tree), CSS selector, or the text it shows (text: a button's or link's words, a field's label), or at x and y (CSS pixels in the page's view). It's scrolled into view first; a page it loads is waited for. button: "left" (default), "right", "middle"; double: true.

ArgumentRequired
refno
selectorno
textno
xno
yno
buttonno
doubleno
idno

browser.type

Type text: into the element named by ref, selector or into (its label or placeholder: clicked first), else where the page's focus is. clear: true empties the field first; submit: true presses Enter after.

ArgumentRequired
textyes
refno
selectorno
intono
xno
yno
clearno
submitno
idno

browser.key

Press keys: Enter, Tab, Escape, Backspace, ArrowDown, a, Shift+Tab, Mod+a (Command on macOS, Control elsewhere); several separated by spaces; times repeats.

ArgumentRequired
keyyes
timesno
idno

browser.scroll

Scroll the page: by dy/dx CSS pixels (default: most of a screen down) at x, y; to "top" or "bottom"; or until an element (ref, selector, text) is in view. Answers with where it is.

ArgumentRequired
dyno
dxno
xno
yno
tono
refno
selectorno
textno
idno

browser.text

The page's text as a person reads it (or one element's, by CSS selector). woolshed do prints it as it is.

ArgumentRequired
selectorno
idno

browser.tree

The page's accessibility tree: one line per heading, link, button, field and text, with its state and a [ref=N] for browser.click, browser.type, browser.shot. woolshed do prints it as it is.

ArgumentRequired
idno

browser.shot

A PNG screenshot of the page's view (full: true: the whole page; or one element, by ref, selector or text) to path (default: data/browser/shots/); answers with its path and size.

ArgumentRequired
pathno
fullno
refno
selectorno
textno
idno

browser.console

What the page logged (console messages, uncaught errors, failed loads, answered dialogs), each with its level, text and source file:line. level: "error" or "warn" for only those and worse; since: the next of an earlier answer, for only what's new; clear: true empties it.

ArgumentRequired
levelno
sinceno
clearno
idno

browser.eval

Run JavaScript in the page and answer with its value (as JSON; a promise is awaited; await works).

ArgumentRequired
jsyes
idno

browser.wait

Wait until the page shows text, has an element matching selector, or its address contains url (gone: true: until they're gone); with none of them, until it has loaded. timeout in ms (default 10000, at most 30000).

ArgumentRequired
textno
selectorno
urlno
goneno
timeoutno
idno

browser.viewport

Size the page's view in CSS pixels (a phone: width 390, height 844, mobile: true; scale: the pixel ratio), whatever pane shows it; fit: true follows the pane again (the default).

ArgumentRequired
widthno
heightno
scaleno
mobileno
fitno
idno

browser.pick

Ask the person to point at an element in the Browser pane and wait (timeout in ms, default 120000) for what they picked: its CSS selector, text, HTML, box, look, the component and source file:line where a dev build of React, Vue or Svelte says, and a screenshot of it (shot). The person can also pick one themselves and send it to you with a message.

ArgumentRequired
timeoutno
idno

browser.ls

The open pages: id, url, title, whether a pane shows it, and which one commands use by default (current).

No arguments.

browser.close

Close a page (its pane says so).

ArgumentRequired
idno

app.help

Toggle the keys dialog.

No arguments.

app.welcome

Show the welcome again (page: start on that step, 1 to 5; 2 is signing in).

ArgumentRequired
pageno

app.whats_new

Show what this release brought (it opens once by itself after an update).

No arguments.

app.feedback

Draft feedback for the person to review and send (from: person or agent).

ArgumentRequired
messageno
fromno

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, voice, machines, account, alerts, updates, privacy).

ArgumentRequired
sectionno

app.check_updates

Look for a newer Woolshed and Woolshed Core now.

No arguments.

app.update_core

Update Woolshed Core to its latest release of this generation; terminals keep running.

No arguments.

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/<name>.json).

ArgumentRequired
nameyes

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.update

Restart into the update Woolshed downloaded (your terminals keep running).

No arguments.

app.quit

Quit (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.

account.sign_in

Sign in to your Woolshed account (Voice, and sync of your setup): the browser opens to approve this computer.

No arguments.

account.sign_out

Sign this computer out of your Woolshed account: sync stops and Voice goes back to Standard. Nothing is deleted.

No arguments.

account.sync

Sync this computer's setup with the account now. On the first sync of a computer that has its own setup, choice answers how: "merge", "account" (use the account's) or "computer" (keep this computer's).

ArgumentRequired
choiceno

account.plans

Show the plans: Free, Woolshed Pro and Pro + Voice, with this computer's plan. reason "computers" says why it opened; any other shows the plans (Free has no limits on a computer).

ArgumentRequired
reasonno

account.checkout

Start Woolshed Pro in the browser (Stripe Checkout): plan "pro_monthly" (the default; a 3-month free trial the first time), "pro_yearly" or "bundle_monthly" (Pro + Voice). Signs in first if needed.

ArgumentRequired
planno

account.billing

Open billing in the browser (Stripe's customer portal): change card, invoices, switch plan or cancel.

No arguments.

account.delete_synced

Delete everything synced to the account (needs confirmed: true) and stop syncing here. This computer keeps its files.

ArgumentRequired
confirmedyes

computers.approve

Approve a computer asking to join Your computers (Woolshed Pro): request is its id in computers/status.json. Check the code it shows matches first.

ArgumentRequired
requestyes

computers.deny

Turn down a computer asking to join Your computers.

ArgumentRequired
requestyes

computers.trust

Take the list of your computers waiting on this computer (computers/status.json confirm): by is the computer that added this one. Only after the person checked that computer shows the same code.

ArgumentRequired
byyes

computers.distrust

Not me: refuse the list of your computers waiting on this computer (confirm), and never ask about it again.

ArgumentRequired
byyes

computers.link_phone

Link your phone (Woolshed Pro): shows a QR code to scan with the Woolshed app on an iPhone or Android phone, then asks before linking the phone that scanned it. Phones reach your agents but never approve computers or get the SSH vault.

No arguments.

computers.remove

Remove one of your computers (a lost one too): it can't reach the others any more, its machine goes, and the vault gets a new key.

ArgumentRequired
idyes

computers.refresh

Fetch the list of your computers now.

No arguments.

vault.put

Add or change an SSH host in your vault, sealed for your computers only: entry {id?, label, host, port?, user?, jump?, key_file?, keep_key?}. keep_key: true also keeps that key file's contents in the vault.

ArgumentRequired
entryyes

vault.delete

Remove a host from your vault.

ArgumentRequired
idyes

vault.import_ssh_config

Add the named hosts in ~/.ssh/config to your vault (keys stay where they are).

No arguments.

vault.open

Open a new space with a terminal running ssh to a vault host.

ArgumentRequired
idyes

vault.add_machine

Add a vault host as a machine (hc machine add with its ssh options): Woolshed Core must be there or is offered.

ArgumentRequired
idyes

voice.sign_in

Sign in to your Woolshed account for Enhanced Voice (as account.sign_in).

No arguments.

voice.sign_out

Sign this computer out of your Woolshed account (as account.sign_out).

No arguments.

voice.start

Start dictating, as pressing the Voice key does: the text goes where the cursor is when it stops (macOS; a chat's mic, held).

No arguments.

voice.stop

Stop dictating, as letting go of the Voice key does (two quick start/stop pairs: hands-free, as with the key).

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.

window.new

Open another window on a display: "next" (default: the next display, left to right, without a Woolshed window) or a number from 1 at the left. It shows tab, or space, or a tab no window shows; layout gives it its own layout. Every window lists the same spaces; each shows its own.

ArgumentRequired
displayno
spaceno
tabno
layoutno

window.spread

Open a window on every display that has none, each showing a tab no window shows.

No arguments.

window.gather

Close the windows on other screens, back to the main window (window 1). Nothing ends.

No arguments.

window.focus

Bring a window (by number: woolshed ls lists them) to the front.

ArgumentRequired
windowyes

Back to Woolshed