Banquish
v0.2.0Answer with the live web: compose live parts of real pages into a Workspace in the Banquish Mac app.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
create_workspace
Create a Workspace, named plainly after the task. By default use one per answer.
| Parameter | Type | Description |
|---|---|---|
name * | string |
list_workspaces
List the user's Workspaces, most recently viewed first: id, name, Panel count, when the user last viewed it, and whether it is archived. With a query, only Workspaces whose name contains every word.
| Parameter | Type | Description |
|---|---|---|
query | string |
rename_workspace
Rename a Workspace, plainly. The user can undo it with the rest of your Working stretch.
| Parameter | Type | Description |
|---|---|---|
id * | string | |
name * | string |
open_page
Open a URL as a hidden Staging page with the user's profile: a page you may take Panels from, or one your own tools can't read properly. Find which pages to open with your own search; Banquish has no search. It waits for the page to settle (up to about 10 s), and you get the outline of its Candidate tree: the meaningful parts of the page, largest sections opened first, in at most 40 lines. The result holds the page id and the lines, each one string per candidate: `[id] ^parent kinds tag#htmlId.classes[role=…][aria="label"] @x,y wxh | counts | h:"heading" | "text" | +k`. ^parent is the candid…
| Parameter | Type | Description |
|---|---|---|
url * | string |
expand
Show a candidate's children on an open page as it is now, in at most 40 lines like open_page's, opening the largest first. A candidate with more than 40 children is paged: pass pageNo for the next pages. Says how many candidates the page gained since you last looked (+N new), with new ids. If the page can't be read again, it is closed: open it again with open_page.
| Parameter | Type | Description |
|---|---|---|
candidate * | string | |
page * | string | |
pageNo | integer |
find
Find the smallest candidates on an open page, as it is now, whose text, heading, label, id or classes contain every word, in at most 40 lines like open_page's. Says how many candidates the page gained since you last looked (+N new). If the page can't be read again, it is closed: open it again with open_page.
| Parameter | Type | Description |
|---|---|---|
page * | string | |
words * | string |
reveal
Reveal content hidden behind a control on an open page (a tab, an expand toggle, a disclosure, a "more" button): Banquish clicks the candidate for you (or the one button or link inside it, when it holds just one), stopping any request that could write, any navigation and any new window meanwhile, and checks that new content appeared. Returns the updated tree in lines like open_page's: the new candidates, then the outline. Ids you had stay valid; new content gets new ids. A Panel made from the page afterwards comes back in the revealed view after a reload. If the click tries to navigate or open…
| Parameter | Type | Description |
|---|---|---|
candidate * | string | |
page * | string |
add_panel
Propose a Panel from candidate ids of an open page. Banquish confirms it on the page, which the first Panel from it takes over as its own. The page stays open to you for more Panels: its ids stay valid for expand, find, add_panel and update_panel, and each further Panel gets a fresh copy of the page, where Banquish replays your reveals and finds the parts again, which takes a few seconds (refused if they aren't found). reveal and screenshot need the page opened again once a Panel has taken it. Each id is one part; several ids make one Composite Panel, for parts of the page that act on each oth…
| Parameter | Type | Description |
|---|---|---|
candidates * | array | |
page * | string | |
workspace * | string | |
exclude | array | |
mode | string | |
placement | object |
read_workspace
Read a Workspace: every Tile in one list, in reading order (top to bottom, then left to right), and the user's current window size. Each Tile has its kind and placement on the grid: x and w in 12 columns, y and h in rows of 8 px at the user's laptop window (1512 px wide; gaps 16 px, margins 24 px), each y being where the Tile floats up to. No h means the Tile is as tall as its Panel or Note, at most about two-thirds of the user's window height (a taller Panel scrolls inside it). With h, a Panel's Tile is that tall where its Panel is taller, and its Panel scrolls inside it; h beyond its Panel's…
| Parameter | Type | Description |
|---|---|---|
id * | string |
arrange
Place any number of Tiles (Panels and Notes, by id) on a Workspace's grid in one call: x and w in 12 columns, y and h in rows of 8 px at the user's laptop window (1512 px wide; gaps 16 px, margins 24 px). No h means the Tile is as tall as its Panel or Note, at most about two-thirds of the user's window height (a taller Panel scrolls inside it). With h, a Panel's Tile is that tall where its Panel is taller, and its Panel scrolls inside it; h beyond its Panel's own height is capped at that height, and the Fit report says so (capped). With h, a Note's Tile is that tall, even taller than its text.…
| Parameter | Type | Description |
|---|---|---|
tiles * | array | |
workspace * | string |
add_note
Add a Note to a Workspace: a few words of your own beside its Panels. Formatted text only, shown in Banquish's own style: "# Heading" (or "## Smaller heading"), paragraphs, "- " or "1. " list items, and [links](https://…); anything else, HTML included, shows as the text it is. At most 2000 characters. Placement is where its Tile goes on the grid, as in arrange; without one it goes full width below the last Tile. With h, a Note's Tile is that tall, even taller than its text. The user can undo it with the rest of your Working stretch. Returns the Fit report: at the user's window, which Tiles a…
| Parameter | Type | Description |
|---|---|---|
text * | string | |
workspace * | string | |
placement | object |
update_note
Rewrite a Note's text, in the same formatted text as add_note. It keeps its id and placement; place it with arrange. The user can undo it with the rest of your Working stretch. Returns the Fit report: at the user's window, which Tiles are scaled below their Panel's minimum width, have an h taller than their Panel (capped, with the h they got), scroll inside, fell back to crop, are broken or ambiguous, or leave their Tile's width unused, and any gaps between Tiles. A Tile whose page hasn't laid it out at its width yet (one not on screen, say) is settling: a later report says how it fits. While…
| Parameter | Type | Description |
|---|---|---|
note * | string | |
text * | string |
remove_note
Remove a Note from its Workspace. The user can undo it with the rest of your Working stretch. Returns the Fit report: at the user's window, which Tiles are scaled below their Panel's minimum width, have an h taller than their Panel (capped, with the h they got), scroll inside, fell back to crop, are broken or ambiguous, or leave their Tile's width unused, and any gaps between Tiles. A Tile whose page hasn't laid it out at its width yet (one not on screen, say) is settling: a later report says how it fits. While a settling Tile's minimum width isn't known, whether the Workspace shows as one col…
| Parameter | Type | Description |
|---|---|---|
note * | string |
update_panel
Change a Panel: re-propose its content, change what it leaves out, or switch it between Item and Spot mode, in any combination. Re-proposing is how you resolve an ambiguous or broken Panel when the user asks you to. For an ambiguous Panel, give candidates from the ids read_workspace offers for it. Otherwise open its Source page (or another) with open_page and give that page with candidate ids from it. The page is used as add_panel uses it: the first Panel from it takes it over as its own, and it stays open to you for more Panels; from a page a Panel has taken, the Panel gets a fresh copy where…
| Parameter | Type | Description |
|---|---|---|
panel * | string | |
candidates | array | |
exclude | array | |
mode | string | |
page | string |
remove_panel
Remove a Panel from its Workspace (a hidden Tile can't be removed). The user can undo it with the rest of your Working stretch. Returns the Fit report: at the user's window, which Tiles are scaled below their Panel's minimum width, have an h taller than their Panel (capped, with the h they got), scroll inside, fell back to crop, are broken or ambiguous, or leave their Tile's width unused, and any gaps between Tiles. A Tile whose page hasn't laid it out at its width yet (one not on screen, say) is settling: a later report says how it fits. While a settling Tile's minimum width isn't known, whet…
| Parameter | Type | Description |
|---|---|---|
panel * | string |
read_panel
Read a Panel's current identity and values, kept apart (identity: what it is, e.g. heading, label, link; values: prices, counts, times), with its state and how fresh the read is. Banquish reloads an unloaded page if needed. To protect sites, values read under a minute ago are served as they are, and an unloaded page is reloaded at most every 5 minutes: reads in between get the last values, stale since they were read. A not-responding Panel's page isn't reloaded for a read: it waits for the user to reload it.
| Parameter | Type | Description |
|---|---|---|
panel * | string |
screenshot
An image of one candidate of an open page, and nothing else, for content text can't describe (a canvas chart, an image). Use it sparingly: the Candidate tree usually says enough.
| Parameter | Type | Description |
|---|---|---|
candidate * | string | |
page * | string |
workspace_image
A JPEG of a Workspace as the user's window shows it now (the part in view). With width (CSS pixels), a preview of the whole Workspace at that window width instead: the placement adapted to that width, each Tile's last frame rescaled, so it's approximate. A Workspace not on the user's screen is previewed at the user's window width. Tiles you can't see (Private sites') are plain boxes labelled "Private site".
| Parameter | Type | Description |
|---|---|---|
workspace * | string | |
width | integer |
finish_work
Signal that you've finished working: the working mark clears, Staging pages no Panel came from are discarded, your changes become one step the user can undo, and the user is told your answer is ready on the Workspaces you changed. No Fit report is sent after it.