# Let the browser's assistant work the page you have open

> The 199 WebMCP tools this site's pages register for an assistant built into the browser: run a calculator, read a takeoff, draw on the canvas. Opt-in…

Page: https://craftquantities.com/developers/webmcp/ (developer documentation). This is the page's Markdown copy; the HTML page is the canonical version.

WebMCP lets a web page hand its own functions to an assistant that lives in the browser. On this site every page offers a few, from search to My Project, and each kind of page adds its own: a calculator, a takeoff, the planners, the canvas, the quote checks, the field tools and the reading pages. The assistant reads and changes what the reader is looking at instead of guessing from the screen.

- 199 Page tools
- 54 Kinds of page
- `document.modelContext`Browser API
- Undo Every change

**On this page Tools by page**

## Tools by page

Each kind of page registers the tools below, under the names the assistant sees. The seven site-wide tools are on every page; the others exist while their page is open. A tool’s title, description and parameters are printed as the assistant receives them. An asterisk marks a required parameter.

- Reads only reads the page or what the browser keeps.
- Changes what is kept changes a project, plan, drawing, price book or preference, through the page’s own controls.
- Changes the view opens a page, a tab or a file for this visit only.

## On every page

### Every page 7

For example [/](https://craftquantities.com/)

| Tool | What it does | Parameters |
|---|---|---|
| `search_site`Reads | **Search Craft Quantities** Searches the whole site — construction calculators, whole-job takeoffs (bills of materials), how-to guides, glossary terms, worked examples, comparisons, diagnostics, materials, methodology and trade hubs — with the site's own search box index, and returns the best pages with their address. Use it to find the right calculator or takeoff before open_page. Returns The matching pages, best first: kind, title, description, path and full address. | - `query`\* string What to find, in words: "concrete slab", "how many bags of mortar", "drywall takeoff". - `kinds` one of 14 values\[\] Only these kinds of page; every kind when left out. - `limit` integer How many results (10 when left out). `{"query":"concrete slab","limit":5}` |
| `open_page`Changes the view | **Open a page of the site** Opens one of the site's own pages in this tab, as a link click does (a calculator, a takeoff, a planner, My Project, a guide…), waits for it to show and returns its title. The page's own tools register once it is open; list_tools_here names them. Only addresses on this site. Returns The opened page's address, title, heading and description. | - `path`\* string The page's path on this site ("/calculators/materials-quantities/concrete-calculator/") or its full address; search_site gives both. `{"path":"/build/"}` |
| `get_page_summary`Reads | **Summarise the page open now** What the open page is and holds: its title, heading, description, opening paragraph, section headings with anchors, cited sources, breadcrumbs, structured-data types and its Markdown twin's address, plus what the page's own tools add (the calculator or takeoff it runs, its current inputs). Read it before using the page's tools. Returns url, canonical, language, title, heading, description, lead, breadcrumbs, sections \[{heading, anchor}\], sources \[{text, url}\], structuredData types, markdownTwin, and \`page\` (the page's own facts) where its tools provide them. | — |
| `set_preferences`Changes what is kept | **Set units, market, language or light/dark** Sets the reader's preferences as the header's controls do: the unit system (metric or US customary — every calculator answers in it), the market (US, Canada, UK, Australia or international: default materials, codes and currency symbol), the page's language (English, Spanish, French or Portuguese, where the page has that version) and the light or dark scheme. Kept in this browser. Returns What was set, then the unit system, market, language and address now. | - `units` "metric" \| "imperial" "metric" or "imperial" (US customary: feet, inches, pounds). - `market` "US" \| "CA" \| "UK" \| "AU" \| "INTL" US, CA (Canada), UK, AU (Australia) or INTL (international). - `language` "en" \| "es" \| "fr" \| "pt" en, es, fr or pt: opens this page's version in that language. - `theme` "light" \| "dark" The colour scheme. `{"units":"metric","market":"UK"}` |
| `list_tools_here`Reads | **List the tools on this page** Every WebMCP tool registered in this tab now — the site-wide ones and the open page's own — with what each does and whether it only reads or changes something kept (My Project, a plan, a drawing, a preference). The page's tools change when another page opens. Returns path, and tools \[{name, title, description, readOnly, consequential}\]. | — |
| `add_to_my_project`Changes what is kept | **Add to My Project** Adds to the open project in My Project (kept in this browser): with no calculator named, what this page shows now — a calculator's answer, a takeoff's bill of materials, a plan's lines — as the page's own Add to Project adds it; with a calculator slug and inputs, that calculator's answer as one line. The project's Undo takes it back. Quantities only, no prices. Returns added \[{id, label, quantity, unit, area, calculator}\] and the project {id, name}. | - `calculator` string A calculator's slug (as its address ends) to run and add; leave out to add what this page shows. - `inputs` object That calculator's inputs by id, each measured one with its unit ("3.5 m", "12 ft"); one left out takes the page's opening value. - `label` string What the line is called; the page's own name when left out. - `area` string The project area (room) to put it in, by name, where the page offers areas. - `system` "metric" \| "imperial" The unit system for a calculator run; the reader's when left out. `{"calculator":"concrete-calculator","inputs":{"slabLength":"4 m","slabWidth":"3 m","slabThickness":"100 mm"}}` |
| `get_my_project_summary`Reads | **Summarise My Project** The project open in My Project (kept in this browser): its name, how many lines and areas, and every quantity summed by unit — what the project holds, not an order and not a price — with its address. Returns project {id, name}, totals {lines, byUnit \[{unit, quantity, lines}\], note}, areas, linesPricedByThePerson, url. | — |

## Calculators and takeoffs

### Every calculator page 11

For example [/calculators/materials-quantities/concrete-calculator/](https://craftquantities.com/calculators/materials-quantities/concrete-calculator/)

| Tool | What it does | Parameters |
|---|---|---|
| `run_calculator`Reads | **Run the Concrete Calculator** Concrete Calculator: Estimate how much concrete a slab needs — in cubic yards or cubic metres, and as a count of premix bags. Runs this page's calculator on the inputs given, exactly as the page does, without changing the page (a what-if), and returns the answer and every named line in metric and US customary with the inputs used, the sources and the page link. Quantities only: no prices, no design, no certification. Returns The engine's answer: calculator {slug, title, version, lastVerified, url}, inputs used (base unit and both systems' display), result {label, metric, imperial} each with value, unit, printed and breakdown, lines (every named line in both systems), sources \[{label, url}\], citation and links {page, open}. | - `inputs` object The calculator's inputs by id. One left out takes the value the page opens on; the answer lists every input used and where it came from. - `system` "metric" \| "imperial" Which unit system the answer leads with. Both systems' figures come back either way. - `market` "US" \| "CA" \| "UK" \| "AU" \| "INTL" The market: it sets defaults a market changes and the currency symbol beside the user's own prices. `{"inputs":{"slabLength":"3 m"},"system":"metric"}` |
| `read_current_result`Reads | **Read the Concrete Calculator's current answer** The answer the Concrete Calculator page shows now, on the inputs, unit system and market the person has set: the headline and every breakdown line in both metric and US customary, every input used, confidence, allowance and limits, sources and a link that opens the same working. Returns The same answer as run_calculator, on the page's own inputs now: result {label, metric, imperial}, lines (every named line in both systems), inputs, sources, links. | — |
| `read_calculator_inputs`Reads | **Read the Concrete Calculator's inputs** Every input field of the Concrete Calculator page as it stands now: its id, label, the value shown in the reader's unit system and in its base unit, both systems' display, whether it is shown, its accepted units, options, written-for range, help and opening value. Read it before set_calculator_inputs. Returns inputs \[{id, label, type, shown, display (as the field shows it), value (in the reader's display unit), base {value, unit}, metric, imperial, acceptedUnits, options \[{value, label}\], option, range {min, max, unit (base)}, help, opening {metric, imperial}}\], with the system and market. | — |
| `set_calculator_inputs`Changes what is kept | **Set the Concrete Calculator's inputs on the page** Types values into the Concrete Calculator page's own fields, by input id (a measured value with its unit, a choice by its option value), or fills the page's typical example first, as its Fill in a typical example button does. The form shows them, the page keeps them for the person's next visit, and the new answer is returned in both unit systems once the page shows it. Setting a field back is the way to undo it. Returns changed \[{id, label, was, now (as the field shows them), base (base unit)}\], shownOnPage, then the page's new answer as read_current_result gives it (result, lines, inputs, sources, links). | - `inputs` object The fields to set, by input id; a field left out keeps what the page shows. A measured value carries its unit as text ("3.5 m", "12 ft") or as {value, unit}. - `typicalExample` boolean True to fill every field with the page's typical example first (the page's own button); fields given in inputs are then set over it. `{"inputs":{"slabLength":"3 m"}}` |
| `get_calculator_method`Reads | **How the Concrete Calculator works it out** The Concrete Calculator page's method: its formulas (each linked to the site's formula library), the method steps and the same steps with the page's current numbers ("Formula with your numbers"), key facts with their sources, every source with its address, the typical example worked, the limits and allowance on the current answer, methodology papers, worked examples, version and the date its sources were last checked. Returns calculator {slug, title, version, lastVerified, url}, formulas \[{equation, url}\], method \[{name, text}\], withYourNumbers \[{name, text}\] (figures with their units), keyFacts \[{text, source {label, url}}\], sources \[{label, url}\], assumptions {confidence, allowance, limitations, openingValues}, typicalExample {inputs, lines}, methodology and workedExamples \[{name, url}\], changelog, citation; explain (the trace) when asked. | - `explain` boolean True to add the engine's working trace on the current inputs: every figure the calculator's compute reports, with its unit and which inputs move it. `{"explain":false}` |
| `pin_calculator_result`Changes the view | **Pin the answer on the page** Presses the Concrete Calculator page's own Pin this result (or unpins it): the answer is frozen on screen and, as the inputs change, the page shows how far the live answer has moved and which fields moved it. Pinning again re-pins at the answer shown now. Only this visit's view changes. Returns pin {pinned, pinnedFigure (as printed), difference (the page's moved-by line), changed (the fields that moved it)}. | - `pinned`\* boolean True to pin the answer shown now, false to unpin. `{"pinned":true}` |
| `read_calculator_comparison`Reads | **Read the page's A/B comparison and pin** What the Concrete Calculator page is comparing now: the pinned answer and how far the live one has moved, and the open A/B comparison — scenario A (frozen) against B (the form), every line of each in the reader's unit system with the difference, and the inputs that differ. Returns pin {pinned, pinnedFigure, difference, changed} or null, and comparison {aName, bName, rows \[{label, a, b (printed), unit, difference}\], changedInputs \[{id, label, a, b}\], a and b {inputs, lines}} or null. | — |
| `set_calculator_comparison`Changes what is kept | **Work the page's A/B comparison** Works the Concrete Calculator page's own Compare A/B: freezes the form as scenario A (then set_calculator_inputs builds B), exchanges the two (the form takes A's inputs), puts A's inputs back in the form, closes the comparison, or names a scenario — each as the comparison's own button does. Returns the comparison as read_calculator_comparison reads it. Returns The comparison after the press, as read_calculator_comparison returns it: pin and comparison {aName, bName, rows, changedInputs, a, b}. | - `action`\* "start" \| "swap" \| "use_a" \| "clear" \| "rename" Which of the comparison's buttons to press; rename sets aName and/or bName. - `aName` string Scenario A's name, for rename. - `bName` string Scenario B's name, for rename. `{"action":"start"}` |
| `get_calculator_share_link`Reads | **Get the page's share link and copy** The Concrete Calculator page's own share link — it opens the page on these inputs, unit system and market (and the A/B comparison and rooms, where open) — with the answer as text or Markdown exactly as the page's share panel copies it, and the embed code its Embed control copies. Returns url (the page's share link), system, market, comparison (whether the link carries an A/B), text (the answer as the share panel copies it, null without a figure), embed {snippet (iframe HTML), builder (URL)}. | - `format` "text" \| "markdown" How the answer that goes with the link is written: plain text for a message or Markdown. `{"format":"markdown"}` |
| `download_calculation`Changes what is kept | **Download the calculation as a file** Presses the Concrete Calculator page's own download: the PDF calculation sheet (inputs, answer, breakdown, sources, a link and QR code back to this working) or, on the loan pages, the yearly schedule as CSV. The browser saves the file to the person's device. Returns pressed (which of the page's buttons) and format; the file itself is saved by the browser. | - `format`\* "pdf" \| "csv" Which of the page's downloads to press; the CSV is only on the loan pages' schedule. `{"format":"pdf"}` |
| `print_calculation`Changes the view | **Print the calculation sheet** Presses the Concrete Calculator page's own Print calculation: the browser's print dialog opens on the calculation sheet (inputs, answer, breakdown, sources, a link and QR code back to this working), where the person prints or saves it. Returns pressed: the page's button; the dialog is the browser's. | — |

### The stair calculator pages, as well 3

For example [/calculators/materials-quantities/spiral-staircase-calculator/](https://craftquantities.com/calculators/materials-quantities/spiral-staircase-calculator/)

| Tool | What it does | Parameters |
|---|---|---|
| `compute_stair_flight`Reads | **Work out a spiral staircase calculator (spiral, helical and curved stairs: treads, going, headroom and handrail) as the page draws it** Works the stair this page draws and lists — its risers, goings, set-out, parts and the code readout — by the page's own stair code, for the inputs given, without changing the page. Use it to try a stair before setting it on the page. Returns calculator, system, inputs used (base unit and both systems), plan (every figure the panel draws: risers, treads or count, rise, going, set-out and parts; lengths in metres unless named mm, an endless headroom as "none"), readout {within, sentences} against the chosen code, and the note. | - `inputs` object The calculator's inputs by id. One left out takes the value the page opens on; the answer lists every input used and where it came from. - `system` "metric" \| "imperial" Which unit system the answer leads with. Both systems' figures come back either way. - `market` "US" \| "CA" \| "UK" \| "AU" \| "INTL" The market: it sets defaults a market changes and the currency symbol beside the user's own prices. `{"system":"metric"}` |
| `read_stair_cut_list`Reads | **Read the stair's cut list as the page shows it** The stair panel as the person sees it now, on their inputs and unit system: its figures, the list of what to cut, fix or buy, and the code readout. Returns calculator, figures \[\[label, value\]\] and rows \[\[item, to cut or fix, size\]\] as printed on the page in the reader's units, caption, readout (the code sentences), problem (null when the stair draws) and the note. | — |
| `open_stair_in_canvas`Changes the view | **Open this stair in the Construction Canvas** Presses the page's own Open in Canvas: the stair on the page, at the person's figures, is drawn in the Construction Canvas and the page moves there. Nothing is saved to the person's project until they make the drawing theirs. Returns opening: true and the canvas path; the page then moves to the Construction Canvas, whose own tools take over. | — |

### Every takeoff page 17

For example [/build/asphalt-shingle-roof/](https://craftquantities.com/build/asphalt-shingle-roof/)

| Tool | What it does | Parameters |
|---|---|---|
| `run_takeoff`Reads | **Run the Asphalt shingle roof takeoff** Asphalt shingle roof: Shingles, deck, underlayment, ice-dam membrane, drip edge, starter, nails, ridge cap and vents, with gutter, flashing, hip and tear-off add-ons. Works the whole job on the measurements and build-up given, as this page does, and returns every row's quantity, what to order and the calculator behind it. Nothing on the page changes. Quantities only: no prices, no design, no certification. Returns The takeoff envelope: measurements used (with metric and US values), the build-up, every row (quantity and unit, order, chain, tier, material id, labour hours, left out), labour, sources, links. | - `measurements` object The job's measurements by id; one left out opens at the page's own figure. - `selection` object The build-up, by choice id. - `system` "metric" \| "imperial" Which unit system the rows are worked in. - `market` "US" \| "CA" \| "UK" \| "AU" \| "INTL" The market: it sets the openings a market changes. `{"measurements":{"footprintLength":"12 m"},"system":"metric"}` |
| `describe_takeoff`Reads | **What the Asphalt shingle roof takeoff asks for** The Asphalt shingle roof takeoff's measurements with their units and opening figures in both systems, its build-up choices, the calculators it runs and what it does not count. Returns takeoff, measurements (id, label, dimension, accepted units, opening in both systems), choices with their options, steps (row key, calculator, tier, material id) and what is not counted. | — |
| `read_current_takeoff`Reads | **Read the Asphalt shingle roof takeoff on the page's figures** The Asphalt shingle roof takeoff worked by the engine on the measurements, build-up and unit system set on the page, at the takeoff's own allowances and with every row in. The bill with the person's ticks, switches and allowances is read_takeoff_bill. Returns The same envelope as run_takeoff, worked on the page's measurements (base units), build-up, system and market. | — |
| `read_takeoff_bill`Reads | **Read the Asphalt shingle roof bill as the page shows it** The Asphalt shingle roof bill of materials exactly as the page shows it now, with the person's choices: core materials, accessories and consumables by heading, optional add-ons. Each row has its quantity and unit, what to order, its canonical material id and bill key, its calculator, its allowance and whether it goes in (and why not). Returns takeoff, system, measurements (in the person's units), buildUp, choices (rows left out, add-ons on, own fixings, allowances changed), section counts, goingIn, rows \[{row, line, section, group, goesWith, state, quantity, unit, order {quantity, unit, rule}, allowance {percent, name, source, changedHere, changeable}, material, materialName, billKey, calculator {slug, title, url}, goingIn, notGoingInBecause}\], myProject, sources, link. | - `section` "core" \| "accessories" \| "add-ons" Only this part of the bill in the text answer (the structured answer always holds every row). `{}` |
| `read_takeoff_labour`Reads | **Read the Asphalt shingle roof labour and programme** The Asphalt shingle roof takeoff's Labour tab for the rows going in now: person-hours per row as a low, likely and high band, each production rate's basis, source and what moves it, the total, and the programme trade by trade in working days. Hours only: never money. Returns rows \[{key, name, kind, hours {low, likely, high} person-hours, rate {operation, personHoursPerUnit, per, basis, source, whatMovesIt}}\], totalHours, programme \[{trade, crew, rows, hours, days, startDay}\], likelyDays, note; no money. | —`{}` |
| `export_takeoff`Reads | **Export the Asphalt shingle roof takeoff as text** The Asphalt shingle roof takeoff as the page exports it, returned as text: the spreadsheet (CSV) the download key saves, the shopping list the copy key copies, or the link that reopens these exact figures. Read-only; to save a file use download_takeoff_file. Returns format and the text (CSV with its part-of-the-bill column, the shopping list) with its media type, or the share link url. | - `format`\* "csv" \| "shopping-list" \| "link" What to return: the spreadsheet as CSV text, the plain-text shopping list, or the share link. `{"format":"csv"}` |
| `set_takeoff_measurements`Changes what is kept | **Set the Asphalt shingle roof measurements on the page** Types measurements into the Asphalt shingle roof takeoff page's boxes, as the person would: a length, area or volume with its unit ("4.2 m", "14 ft"), a count as a number. The bill redraws; each measurement is one step of the page's Undo. Returns the bill as the page shows it. Returns changed (what was set), shown (whether the page had redrawn) and bill (as read_takeoff_bill returns it). | - `measurements`\* object The measurements to change, by id; the others stay as the page shows them. `{"measurements":{"footprintLength":"12 m"}}` |
| `toggle_takeoff_row`Changes what is kept | **Leave Asphalt shingle roof rows out or put them back** Ticks or unticks rows of the Asphalt shingle roof takeoff's core materials table, as the person does: a row left out stays worked and shown but is not counted, exported or added to My Project, and its accessories leave with it. One step of the page's Undo. Returns changed, shown and bill (as read_takeoff_bill returns it), with each row's goingIn and notGoingInBecause. | - `rows`\* one of 16 values\[\] The core rows, by their row key as read_takeoff_bill names them (a calculator slug, or a step key where one calculator runs twice). - `goingIn`\* boolean True puts the rows back in; false leaves them out. `{"rows":["roofing-shingle-calculator"],"goingIn":false}` |
| `set_takeoff_allowance`Changes what is kept | **Change a Asphalt shingle roof row's allowance** Changes the waste or overlap allowance on one row of the Asphalt shingle roof takeoff, as the table's allowance cell does (a percentage from 0 to 100), or puts it back to the calculator's own figure. The row's adjusted and order figures follow; one step of the page's Undo. Returns changed, shown and bill (as read_takeoff_bill returns it); the row's allowance shows the percent and changedHere. | - `row`\* one of 46 values The row, by its row key as read_takeoff_bill names it; its allowance.changeable says whether the page lets it change. - `percent` number The allowance in percent (0 to 100). - `reset` boolean True puts the calculator's own allowance back instead. `{"row":"roofing-shingle-calculator","percent":12}` |
| `set_takeoff_accessories`Changes what is kept | **Supply your own Asphalt shingle roof fixings** The Asphalt shingle roof takeoff's switch "I supply fixings and consumables myself": on, every accessory and consumable row is left out of the bill (still worked and shown); off, each goes in with the material it belongs to. One step of the page's Undo. Returns changed, shown and bill (as read_takeoff_bill returns it); choices.supplyOwnFixings and each accessory's goingIn. | - `supplyOwn`\* boolean True: the person supplies fixings and consumables (they leave the bill). False: they go in. `{"supplyOwn":true}` |
| `set_takeoff_addons`Changes what is kept | **Switch Asphalt shingle roof add-ons on or off** Switches the Asphalt shingle roof takeoff's optional add-ons on or off, as their switches on the page do: an add-on is off until switched on, and the rows that follow it come in with it. Each switch is one step of the page's Undo. Returns changed, shown and bill (as read_takeoff_bill returns it); choices.addOnsOn and each add-on row's goingIn. | - `on` one of 10 values\[\] Add-ons to switch on, by row key. - `off` one of 10 values\[\] Add-ons to switch off, by row key. `{"on":["valley-metal"]}` |
| `set_takeoff_variant`Changes what is kept | **Choose the Asphalt shingle roof build-up on the page** Chooses the Asphalt shingle roof takeoff's build-up on the page, as its choice buttons do; a choice another one rules out is put right the page's way. The rows follow and the address keeps the choice; each choice is one step of the page's Undo. Returns the bill as shown. Returns changed (each choice made), shown, selection (the build-up now, by choice id) and bill (as read_takeoff_bill returns it). | - `selection`\* object The choices to make, by choice id; the others stay as the page shows them. `{"selection":{"framing":"rafters"}}` |
| `reset_takeoff`Changes what is kept | **Reset the Asphalt shingle roof takeoff to its opening figures** The Asphalt shingle roof page's "back to the opening figures": every measurement at its opening value in the units showing, every allowance at its calculator's own, every row ticked, add-ons off and the accessories in. The build-up stays as chosen. One step of the page's Undo, which takes it back. Returns changed, shown and bill (as read_takeoff_bill returns it) at the opening figures. | —`{}` |
| `undo_takeoff_change`Changes what is kept | **Undo or redo a Asphalt shingle roof change** The Asphalt shingle roof page's Undo (or Redo) key: takes back the last change to the measurements, build-up, rows, allowances, add-ons or own-fixings switch, whoever made it. Does not touch My Project, which has its own Undo. Returns changed, shown and bill (as read_takeoff_bill returns it) after the step. | - `redo` boolean True redoes the change last undone instead of undoing. `{}` |
| `add_takeoff_to_project`Changes what is kept | **Add the Asphalt shingle roof bill to My Project** The Asphalt shingle roof page's "Add … to my project" press: every row going in becomes a line in the open project, labelled with the takeoff's name; a takeoff already there is updated, never added twice. Returns the lines as My Project holds them; no prices. Returns added (the takeoff's lines in My Project: id, label, quantity, unit, area, calculator), replaced (how many lines it had there before) and project {id, name}. | —`{}` |
| `download_takeoff_file`Changes what is kept | **Download the Asphalt shingle roof takeoff as a file** Presses one of the Asphalt shingle roof page's download keys, so the browser saves the file: the spreadsheet as CSV or Excel, the table as a PDF, the job sheet PDF, or the build sheet PDF where the page offers one. The file is the page's own; the answer says which key was pressed. Returns format and pressed (true once the page's key was pressed; the browser saves the file). | - `format`\* "csv" \| "xlsx" \| "pdf" \| "job-sheet" \| "build-sheet" Which file: the table as CSV, Excel or PDF, the job sheet or the build sheet. `{"format":"csv"}` |
| `open_takeoff_in_canvas`Changes the view | **Open the Asphalt shingle roof takeoff in the Construction Canvas** The picture's "Open in Canvas": this Asphalt shingle roof job at the page's measurements and build-up, as a drawing in the Construction Canvas's read-only viewer. Nothing is saved until the person keeps it. Returns the drawing link, and opens it unless asked not to. Returns url (the canvas drawing link, carried in the address's fragment), opened, leftOut (what the drawing could not show) and notes. | - `navigate` boolean False returns the link without leaving the takeoff page. `{"navigate":false}` |

## Planners and studios

### Every planner 11

For example [/plan/deck/](https://craftquantities.com/plan/deck/)

| Tool | What it does | Parameters |
|---|---|---|
| `describe_planner`Reads | **What this planner asks for** The figures this planner needs, its surfaces and their finishes, its scope questions and rows, with the ids add_plan_space and edit_plan_space take. Use it before planning or editing a space. Returns kind, url, figures \[{id, label, dimension length, required}\], openings (room: standard sizes in m), surfaces \[{role, finishes \[{id, label}\]}\], scope \[{name, answers}\], intents, branches \[{id, label, trade}\], decisions. | - `kind` one of 26 values Another kind of space than the one this page makes first. `{}` |
| `list_plan_spaces`Reads | **List the spaces in this planner's plan** Every space in the plan on this planner page — rooms, decks, pools, walls, stairs … — with its id, kind, name and figures (metres, and as text in the person's units), its doors and windows, and which space is open on the page. Returns open (the open space's id), system, spaces \[{id, kind, name, figures {id: {value, unit m, text}}, doors, windows}\]. | — |
| `add_plan_space`Changes what is kept | **Plan a space on this planner** Plans one space of any kind the planner makes, from its figures and the person's choices, adds it to the plan on the page and opens it there, as one undoable step. Returns the space as the planner works it. Returns The new space as read_plan returns it: space {id, kind, name, figures}, choices, spaces, system, outcomes \[{branch, label, trade, status, quantity, unit}\], lines \[{label, quantity, unit, zone}\]. | - `kind` one of 26 values The kind of space; this page's own when left out. - `name` string What the plan calls the space, such as Kitchen. - `figures`\* object The space's figures by id (length, width …), each a length with its unit. - `doors` object The doors in a room or bathroom. - `windows` object The windows in a room or bathroom. - `finishes` object Surface role → finish id, as describe_planner lists them. - `scope` object Scope question name → answer value, as describe_planner lists them. - `intent` string One trade to plan (as describe_planner lists them), or everything. - `leaveOut` string\[\] Row ids to leave out of the plan. - `inputs` object Row id → { calculator input id: value in the calculator's base unit }: a figure the person gives a row. `{"figures":{"length":"4 m","width":"3.5 m"},"name":"Study"}` |
| `edit_plan_space`Changes what is kept | **Change a space on this planner** Changes one space of the plan on the page — its name, figures (lengths with units), a room's doors and windows, surface finishes, scope answers, the trade asked for, rows left out or put back, and figures given to a row — as one step the page's Undo takes back, then returns the space worked again. Returns The space as read_plan returns it after the change: space {id, kind, name, figures (m)}, choices {finishes, scope, intent}, outcomes \[{status, quantity, unit}\], lines. | - `space` string The space, by its id (space-3) or its name as list_plan_spaces gives them; the space open on the page when left out. - `name` string A new name for the space. - `figures` object Figures to change, by id (length, width, height, thickness, totalRise …), each a length with its unit; the rest stay. - `doors` object The doors in a room or bathroom. - `windows` object The windows in a room or bathroom. - `finishes` object Surface role → finish id, as describe_planner lists them. - `scope` object Scope question name → answer value, as describe_planner lists them. - `intent` string One trade to plan (as describe_planner lists them), or everything. - `leaveOut` string\[\] Row ids to leave out of the plan. - `inputs` object Row id → { calculator input id: value in the calculator's base unit }: a figure the person gives a row. - `include` string\[\] Row ids left out before, to put back into the plan. `{"name":"Back bedroom"}` |
| `remove_plan_space`Changes what is kept | **Remove a space from this planner's plan** Takes one space out of the plan on the page, as the space switcher's remove does; the page's Undo (undo_plan_edit) puts it back. My Project is not touched until the plan is saved again. Returns removed {id, kind, name} and the spaces left \[{id, kind, name}\]. | - `space`\* string The space to remove, by its id (space-3) or its name. |
| `undo_plan_edit`Changes what is kept | **Undo the last change to the plan** Takes back the last change to the plan on this planner page — a space added, edited or removed, a figure typed — exactly as the page's Undo button does, and returns the plan's spaces. Returns spaces \[{id, kind, name}\] after the step, canUndo, canRedo. | — |
| `redo_plan_edit`Changes what is kept | **Redo a change to the plan** Puts back the change the planner page's Undo last took back, exactly as its Redo button does, and returns the plan's spaces. Returns spaces \[{id, kind, name}\] after the step, canUndo, canRedo. | — |
| `read_plan`Reads | **Read a space of the plan on this planner** A space of the plan on the page (the open one unless another is named), as the planner works it: every row with its quantity and unit or what it still needs, its choices, the plan's spaces, and the lines a save would put in My Project. Returns space {id, kind, name, figures (m)}, choices {finishes, scope, intent}, spaces, system, outcomes \[{branch, label, trade, status, quantity, unit, measures}\], lines \[{label, quantity, unit, zone}\]. | - `space` string The space, by its id (space-3) or its name as list_plan_spaces gives them; the space open on the page when left out. `{}` |
| `export_plan_drawing`Reads | **Export the planner's drawing as SVG** The plan drawing shown on this planner page as a standalone SVG file's text, written by the page's own exporter (the same as its Download SVG), colours set on every mark and a caption line. Nothing is downloaded. Returns filename, mediaType image/svg+xml, bytes, content (the SVG text). | - `light` boolean Draw it in the light scheme's colours, for paper, whatever the page shows. `{}` |
| `download_plan_drawing`Changes the view | **Download or print the planner's drawing** Presses the planner page's own export item for the drawing on screen: an SVG or a PNG file saved by the browser, or the printed plan sheet (the browser's print dialog, where Save as PDF is offered). Changes nothing in the plan. Returns pressed: the export item pressed (svg, png or print). | - `format`\* "svg" \| "png" \| "print" Which of the page's export items to press. `{"format":"svg"}` |
| `save_plan_to_project`Changes what is kept | **Save the plan to My Project** Saves the whole plan on this planner page to the open project in My Project, as the page's own Save button does: every space's lines replace the plan's earlier lines, in one step the project's Undo takes back. Returns the lines written. Quantities only. Returns added \[{id, label, quantity, unit, area, calculator}\] (the lines written), project {id, name}, lines (the project's line count). | — |

### Room sketch 9

For example [/plan/sketch/](https://craftquantities.com/plan/sketch/)

| Tool | What it does | Parameters |
|---|---|---|
| `sketch_room`Changes what is kept | **Draw a room on the sketch page** Draws one room on this page from its corners in order (x to the right, y up, as a plan is read), with its ceiling height, its doors and windows and how it is finished, and returns its floor area, perimeter, net wall area, every wall's length, a link that opens it and, for a square-cornered room of up to eight corners, its full bill of materials: core materials, accessories and consumables (fixings, tapes, primers, sealants, beads, underlay), the add-ons asked for, each from its own calculator, with labour hours. Quantities only: no prices. Replaces the room on the page as one step the page's Undo takes back. Returns figures {floorArea, perimeter, ceilingHeight, netWallArea, openings, openingArea} as text with units, walls \[{wall, length, lengthMm, measured}\], openings \[{opening, kind, wall, width, height}\], finish, rows (every ready bill row with quantity, unit, tier core/accessory/add-on, group and labour hours), labour {low, likely, high}, waiting (rows that need a figure only the reader knows), link, planner. | - `corners`\* object\[\] The room's corners in order round it; wall 1 runs from the first corner to the second, the last wall back to the first. - `unit` "mm" \| "cm" \| "m" \| "in" \| "ft" The unit of every length given; metres or feet by the page's units when left out. - `height` number The ceiling height (2.5 m or 8 ft when left out), in the unit given. - `measured` boolean Whether the lengths given are measured (the default) or only a rough sketch to be measured on the page. - `openings` object\[\] Its doors and windows. - `finish` object How the room is finished (painted walls and ceiling, a click floor and no new board when left out). `{"corners":[{"x":0,"y":0},{"x":4,"y":0},{"x":4,"y":3},{"x":0,"y":3}],"unit":"m","openings":[{"kind":"door","wall":1}]}` |
| `edit_sketch_room`Changes what is kept | **Change the room on the sketch page** Changes the room drawn on this page as its own controls do: a wall's measured length (the first wall measured scales the rest, as the page's Scale them all), the ceiling height, and doors and windows resized, removed or added. One step the page's Undo takes back; returns the room read again. Returns The room as read_sketch returns it after the change: figures, walls \[{wall, length, measured}\], openings \[{opening, kind, wall, width, height}\], rows, link. | - `unit` "mm" \| "cm" \| "m" \| "in" \| "ft" The unit of every length given; metres or feet by the page's units when left out. - `walls` object\[\] Walls measured, in order. - `height` number The ceiling height, in the unit given. - `openings` object\[\] Doors and windows to resize, by the numbers read_sketch gives them. - `removeOpenings` integer\[\] Numbers of the doors and windows to take out, as read_sketch lists them. - `addOpenings` object\[\] Doors and windows to add. `{"height":2.6,"unit":"m"}` |
| `clear_sketch`Changes what is kept | **Clear the sketch page** Takes the room off the sketch page, as its Clear (the bin) does, to start again; the page's Undo (undo_sketch_edit) brings it back. Nothing in My Project is touched. Returns cleared: true once the page shows no room. | — |
| `undo_sketch_edit`Changes what is kept | **Undo the last change on the sketch page** Takes back the last change to the room on the sketch page — drawn, measured, an opening, cleared — as the page's Undo button does, and reads the room it leaves. Returns The room after the step as read_sketch returns it, or plan null when the page shows none. | — |
| `redo_sketch_edit`Changes what is kept | **Redo a change on the sketch page** Puts back the change the sketch page's Undo last took back, as its Redo button does, and reads the room it leaves. Returns The room after the step as read_sketch returns it, or plan null when the page shows none. | — |
| `read_sketch`Reads | **Read the room on the sketch page** The room drawn on this page: every wall's length and whether it was measured, its doors and windows by number, the floor area, perimeter and net wall area, a link that opens it, and its full bill of materials (core, accessories and consumables, add-ons) with labour hours, where the room is square-cornered. Returns figures {floorArea, perimeter, ceilingHeight, netWallArea, openings, openingArea} as text with units, walls \[{wall, length, lengthMm, measured}\], openings \[{opening, kind, wall, offset, width, height, sill}\], finish, rows \[{label, quantity, unit, calculator, tier, group, hours}\], labour, waiting, link, planner. | — |
| `export_sketch_drawing`Reads | **Export the sketched room as DXF** The room on the sketch page as the page's own DXF for CAD (R12, millimetres, walls, doors, windows and lengths on their own layers), returned as text with the room's share link. Nothing is downloaded. Returns filename, mediaType application/dxf, units mm, bytes, content (the DXF text), link (opens the room on the page). | — |
| `download_sketch_file`Changes the view | **Download the sketched room as a file** Does what the sketch page's Save the plan buttons do: a PNG or SVG picture or a DXF saved by the browser, or the plan sheet in the print dialog (Save as PDF). Changes nothing on the page. Returns format: the file made (png, svg, pdf, dxf). | - `format`\* "png" \| "svg" \| "pdf" \| "dxf" Which of the page's files to make. `{"format":"dxf"}` |
| `save_sketch_to_project`Changes what is kept | **Send the sketched room to My Project** Presses the sketch page's own Add to My Project under its materials: the room joins the plan the open project holds and every room's lines are saved, as the room planner saves them, in one step the project's Undo takes back. Returns the lines written. Quantities only. Returns added \[{id, label, quantity, unit, area, calculator}\] (the lines written), project {id, name}, lines (the project's line count). | — |

### House Estimator 12

For example [/house-estimator/](https://craftquantities.com/house-estimator/)

| Tool | What it does | Parameters |
|---|---|---|
| `set_house_parameters`Changes what is kept | **Change the house on the House Estimator** Changes the house the page estimates — only what is given; the rest stays as the person set it — or starts from one of the worked example houses: figures (lengths with units), storeys, outside walls and roof build-ups, pitch, foundation, basement walls, roof form. One undoable step saved to the person's project; the new estimate comes back. Returns The estimate as read_house_estimate returns it, for the new house: rows \[{section, label, where, quantity, unit}\], counts, house {storeys, family, pitch, roofFamily}, choices. | - `example` "cold-climate-ranch" \| "two-storey-advanced-framing" \| "concrete-block-house" \| "mountain-cabin" \| "uk-timber-frame-house" \| "two-storey-block-townhouse" A worked example house to start from instead of the house on the page. - `values` object The house's figures to change, by id. - `storeys` 1 \| 2 How many storeys. - `family` "wall.framed-exterior" \| "wall.masonry" \| "wall.sip" How the outside walls are built: framed, masonry or structural insulated panels. - `selection` object The outside walls' build-up: choice id → option id; read_house_estimate lists each choice and its options for the house on the page. - `pitch` "4" \| "6" \| "8" \| "10" \| "12" The roof's rise in 12 of run. - `roofFamily` "roof.asphalt-shingle" \| "roof.tile-slate" What the roof is covered with. - `roofSelection` object The roof's build-up: choice id → option id; read_house_estimate lists each choice and its options for the house on the page. - `foundation` "slab" \| "crawl" \| "basement" What the house stands on: a slab on grade, a crawl space or a basement. - `basementWall` "poured" \| "block" A basement's walls: poured concrete or concrete block. - `roofForm` "gable" \| "hip" \| "shed" The roof's form; a one-slope shed roof only over a rectangle. `{"values":{"length":"12 m","width":"9 m"},"storeys":2}` |
| `read_house_parameters`Reads | **Read the House Estimator's form** Every group of the House Estimator's form as the page holds it: the footprint, storeys and opening figures (lengths in metres, counts), what the house stands on, the outside walls' and roof's build-ups, pitch and roof form, and whether its plan is drawn. Returns system, values \[{id, label, value, unit (m or count)}\], storeys, foundation, basementWall, family, selection, pitch, roofFamily, roofSelection, roofForm, drawnPlan, choices {walls, roof}. | — |
| `read_house_estimate`Reads | **Read the House Estimator's estimate** Every material to order for the house on the page — footing, slab, walls, openings and roof, each from the site's whole-job takeoffs — with the figures used, the counted doors and windows, where it was worked out, and the build-up choices the walls and roof offer. Returns source (page or engine), rows \[{section, label, where, quantity, unit, order?, calculator?}\], counts \[{label, quantity}\], house {storeys, family, pitch, roofFamily}, choices {walls, roof}. | — |
| `undo_house_change`Changes what is kept | **Undo the last change to the house** Takes back the last change to the house on the House Estimator — a figure, a choice, a plan edit — as the page's Undo does, and returns the estimate it leaves. Returns The estimate after the step, as read_house_estimate returns it. | — |
| `redo_house_change`Changes what is kept | **Redo a change to the house** Puts back the change the House Estimator's Undo last took back, as its Redo does, and returns the estimate it leaves. Returns The estimate after the step, as read_house_estimate returns it. | — |
| `list_house_variants`Reads | **List the kept variants of the house** The variants of the house the person kept on the House Estimator (in this browser): each one's id, name, storeys, the unit system it was made in and when it was last kept. Returns variants \[{id, name, storeys, system, updatedAt}\]. | — |
| `keep_house_variant`Changes what is kept | **Keep the house as a named variant** Keeps the house on the House Estimator as it stands under a name, as the Variants panel's Keep does (a variant of that name is replaced), in this browser, to open again or compare later. Returns variant {id, name, system}, stored (false where the browser refused to keep it). | - `name`\* string The variant's name, such as Brick, 9 m deep. `{"name":"Two storeys, brick"}` |
| `open_house_variant`Changes what is kept | **Open a kept variant on the House Estimator** Puts a kept variant into the House Estimator's form, as the Variants panel's Open does: one undoable step through the page's own change; returns the estimate for it. Returns The estimate for the opened variant, as read_house_estimate returns it. | - `variant`\* string The variant's id or name, as list_house_variants gives it. |
| `remove_house_variant`Changes what is kept | **Remove a kept variant of the house** Deletes one kept variant from this browser, as the Variants panel's remove does. It cannot be undone; the house on the page is not touched. Returns removed {id, name}. | - `variant`\* string The variant's id or name, as list_house_variants gives it. |
| `compare_houses`Reads | **Compare two houses' bills** Two houses — kept variants, or the house as it stands — compared row by row as the Variants panel's Compare does: each material's quantity in A and B, the change, and the rows only one has. Worked by the site's whole-house takeoffs. Returns a, b (names), system, rows \[{label, where, unit, a, b, change}\], changed, onlyA, onlyB, same. | - `a`\* string House A: a variant's id or name as list_house_variants gives it, or "now" for the house as it stands. - `b`\* string House B: a variant's id or name as list_house_variants gives it, or "now" for the house as it stands. `{"a":"now","b":"now"}` |
| `export_house_drawing`Reads | **Export the House Estimator's drawing** The house on the page as the drawing Open in Canvas carries, written by the canvas's own exporters: each storey's plan as DXF or SVG, the whole house as IFC. The files come back as text; nothing is downloaded. Returns files \[{filename, mediaType, bytes, content (the file's text, or null when too large)}\], levels, and the drawing's link where it fits. | - `formats` "dxf" \| "svg" \| "ifc"\[\] Which files to write; the DXF and SVG plans when left out. - `level` string One storey's plan only, by its name or id; every storey when left out. `{"formats":["svg"]}` |
| `add_house_to_project`Changes what is kept | **Add the house to My Project** Adds the house's materials to the open project in My Project, as the House Estimator's own Add to My Project (Update My Project once added) does: the house's lines written or updated in place, one step the project's Undo takes back. Quantities only. Returns added \[{id, label, quantity, unit, area, calculator}\] (new lines), project {id, name}, lines (the project's line count). | — |

### Construction Canvas 17

For example [/construction-canvas/](https://craftquantities.com/construction-canvas/)

| Tool | What it does | Parameters |
|---|---|---|
| `add_canvas_wall`Changes what is kept | **Draw a wall on the Construction Canvas** Draws one straight wall on the person's drawing, between two points, as the wall tool does: joined to a wall whose end it meets, built as the drawing's exterior or interior wall type. Draw a closed ring of walls before adding a room inside it. Returns added \[{id, kind wall, level, layer, from {x, y}, to {x, y}, length, role}\] with lengths as text in the person's units. | - `from`\* object Where the wall starts: a point on the plan measured from the drawing's origin, x to the east and y to the north. - `to`\* object Where the wall ends: a point on the plan measured from the drawing's origin, x to the east and y to the north. - `role` "exterior" \| "interior" Whether it is an outside wall or a partition: it picks the wall type and how the takeoff counts it. - `level` string The level to draw on, by its name or id; the level on screen when left out. `{"from":{"x":"0 m","y":"0 m"},"to":{"x":"4 m","y":"0 m"},"role":"interior"}` |
| `add_canvas_room`Changes what is kept | **Mark a room on the Construction Canvas** Marks the room enclosed by walls around a point, as the room tool does, so the takeoff counts its floor, ceiling and wall finishes. The point must be inside walls that close round it. Returns added \[{id, kind room, name, level, layer}\]. | - `at`\* object A point inside the room: a point on the plan measured from the drawing's origin, x to the east and y to the north. - `name` string What the dock and My Project call the room, such as Kitchen. - `level` string The level to draw on, by its name or id; the level on screen when left out. `{"at":{"x":"2 m","y":"2 m"},"name":"Kitchen"}` |
| `add_canvas_opening`Changes what is kept | **Put a door or window in a wall on the Construction Canvas** Puts a door or a window in one wall of the person's drawing, as the opening tools do; the takeoff deducts it from the wall. Find the wall's id with list_canvas_objects. Returns added \[{id, kind door or window, level, layer, wall (its host's id)}\]. | - `kind`\* "door" \| "window" What goes in the wall. - `wall`\* string The id of the wall it goes in, as list_canvas_objects names it (w3 …). - `offset`\* string \| {value, unit} How far along the wall from its start the opening's centre sits. - `width` string \| {value, unit} The opening's width; the canvas's own default when left out. - `height` string \| {value, unit} The opening's height; the canvas's own default when left out. - `exterior` boolean For a door: whether it is an outside door. `{"kind":"door","wall":"w1","offset":"1 m"}` |
| `add_canvas_symbol`Changes what is kept | **Place a symbol on the Construction Canvas** Places one point object on the person's drawing — a structural post or footing, or an electrical, plumbing or heating symbol — as the canvas's symbol tools do; the dock counts it. Its size is the person's to give; nothing is sized. Returns added \[{id, kind, level, layer, at {x, y}}\] with lengths as text in the person's units. | - `kind`\* one of 10 values What to place. - `at`\* object Where it goes: a point on the plan measured from the drawing's origin, x to the east and y to the north. - `level` string The level to draw on, by its name or id; the level on screen when left out. `{"kind":"column","at":{"x":"2 m","y":"2 m"}}` |
| `remove_canvas_objects`Changes what is kept | **Erase objects from the Construction Canvas** Erases objects from the person's drawing by their ids, as selecting them and pressing Delete does (a wall takes its doors and windows with it): one step of the canvas's history that undo_canvas_edit or Ctrl+Z takes back. Returns removed: the ids erased (a wall's openings with it). | - `ids`\* string\[\] The objects' ids, as list_canvas_objects gives them (w3, r1, d2 …). `{"ids":["w1"]}` |
| `move_canvas_objects`Changes what is kept | **Move or copy objects on the Construction Canvas** Moves objects of the person's drawing by a distance east and north, or places copies there, as the Move and Copy tools commit them: joined walls follow, one step of the canvas's history. Lengths carry their units; a negative one goes west or south. Returns changed \[{id, kind, level, layer, from, to, length, at}\]: the objects moved or the copies made, lengths as text. | - `ids`\* string\[\] The objects' ids, as list_canvas_objects gives them (w3, r1, d2 …). - `by`\* object How far to move them. - `copy` boolean Place copies there and leave the originals. `{"ids":["w1"],"by":{"x":"1 m","y":"0 m"}}` |
| `rotate_canvas_objects`Changes what is kept | **Rotate objects on the Construction Canvas** Turns objects of the person's drawing about a point by an angle in degrees (anticlockwise as the plan is read), as the Rotate tool commits it: one step of the canvas's history. Returns changed \[{id, kind, level, layer, from, to, at}\]: the objects as turned, lengths as text. | - `ids`\* string\[\] The objects' ids, as list_canvas_objects gives them (w3, r1, d2 …). - `degrees`\* number The angle in degrees, anticlockwise; negative turns clockwise. - `about`\* object The point they turn about: a point on the plan measured from the drawing's origin, x to the east and y to the north. `{"ids":["w1"],"degrees":90,"about":{"x":"0 m","y":"0 m"}}` |
| `undo_canvas_edit`Changes what is kept | **Undo the last edit on the Construction Canvas** Takes back the last edit to the person's drawing — the assistant's or their own — as Ctrl+Z does, and says which step it was. Returns step (its label), canUndo, canRedo, undoLabel, redoLabel, objects (how many on the drawing now). | — |
| `redo_canvas_edit`Changes what is kept | **Redo an edit on the Construction Canvas** Puts back the edit the Construction Canvas's Undo last took back, as Ctrl+Shift+Z does, and says which step it was. Returns step (its label), canUndo, canRedo, undoLabel, redoLabel, objects (how many on the drawing now). | — |
| `switch_canvas_level`Changes the view | **Show another level on the Construction Canvas** Shows another level (storey) of the person's drawing on screen, as the level switcher does; the drawing itself is not changed, and the add tools draw on the level on screen unless told another. Returns level {id, name} now on screen. | - `level`\* string The level by its name or id, as list_canvas_objects gives them. |
| `list_canvas_objects`Reads | **List the objects on the Construction Canvas drawing** The objects on the person's drawing now — walls with their ends and lengths, rooms, doors and windows with their walls, symbols — each with its level and layer, with the ids the edit tools name; the drawing's levels and its layers with their object counts. Returns levels \[{id, name, elevation, height}\], layers \[{id, name, kind, visible, locked, print, objects}\], objects \[{id, kind, level, layer, name?, from?, to?, length?, at?, wall?, role?}\] (lengths as text in the person's units), onScreen. | — |
| `read_canvas_takeoff`Reads | **Read the Construction Canvas takeoff** The takeoff of the person's drawing as the canvas's dock lists it — every material by section with its quantity, where it is and the calculator behind it — and the counted objects, in the person's unit system. Returns system, rows \[{section, label, where, quantity, unit, calculator, note?}\], counts \[{label, quantity}\], warnings, lines (how many My Project lines a send would write). | — |
| `export_canvas_drawing`Reads | **Export the Construction Canvas drawing** The person's drawing written by the canvas's own exporters: each level's plan as DXF or SVG, the whole drawing as IFC. The files come back as text; nothing is downloaded or sent anywhere. Returns files \[{filename, mediaType, bytes, content (the file's text, or null when too large)}\], levels, and the drawing's link where it fits. | - `formats` "dxf" \| "svg" \| "ifc"\[\] Which files to write; the DXF and SVG plans when left out. - `level` string One level's plan only, by its name or id; every level when left out. `{"formats":["svg"]}` |
| `save_canvas_version`Changes what is kept | **Save a named version of the Construction Canvas drawing** Keeps the drawing as it stands now as a named version, as the Versions panel's Save does, in this browser beside the drawing, to compare with or go back to later. Returns version {id, name, kind named, createdAt}. | - `name` string The version's name, such as Before the extension; Version N when left out. `{"name":"Before the extension"}` |
| `list_canvas_versions`Reads | **List the Construction Canvas drawing's versions** The drawing's kept versions, newest first, as the Versions panel lists them: named versions the person saved and the checkpoints the canvas makes on its own, each with its id, name, kind, date and object count. Returns versions \[{id, name, kind (named or checkpoint), createdAt, objects}\]. | — |
| `restore_canvas_version`Changes what is kept | **Restore a version of the Construction Canvas drawing** Puts a kept version back on the canvas, as the Versions panel's Restore does: a checkpoint of the drawing as it stands is saved first, and the restore is one step Ctrl+Z (undo_canvas_edit) takes back. Returns restored {id, name}, changed (false when the drawing already was that version), objects. | - `version`\* string The version's id or name, as list_canvas_versions gives them. |
| `add_canvas_to_project`Changes what is kept | **Send the Construction Canvas drawing to My Project** Sends the drawing's takeoff to the open project in My Project, as the canvas's own Send (Update once linked) does: the drawing's lines written or replaced in place, one step the project's Undo takes back. Quantities only. Returns receipt {added, replaced}, added \[{id, label, quantity, unit, area, calculator}\] (new lines), project {id, name}, lines (the project's line count). | — |

### Roof framing 2

For example [/tools/roof-framing/](https://craftquantities.com/tools/roof-framing/)

| Tool | What it does | Parameters |
|---|---|---|
| `set_roof_framing`Changes what is kept | **Change the roof on the roof framing tool** Changes the roof the page lays out — only the figures given; the rest stay as the person set them — and returns every rafter and the cut list once the page shows it. Returns roof {kind, pitch {risePer12, degrees}, run, rise}, members \[{key, name, count, lineLength, overall, board, cuts}\], cutList \[{size, buy \[{stock, count}\], wastePercent}\], each length as text (and tape) in the person's units; notDesign. | - `kind` "gable" \| "hip" The roof's shape. - `span` string \| {value, unit} The building's width, outside of the wall plates, across the ridge. - `length` string \| {value, unit} The building's length along the ridge. - `pitch` number The rise per 12 of run (6 for 6 in 12). Give this or pitchDegrees. - `pitchDegrees` number The pitch in degrees. Give this or pitch. - `overhang` string \| {value, unit} The eaves overhang, level, past the wall. - `rake` string \| {value, unit} The gable overhang past the end wall. - `rafterDepth` string \| {value, unit} The common rafter's depth (its wide face). - `rafterThickness` string \| {value, unit} The common rafter's thickness. - `hipDepth` string \| {value, unit} The hip and valley rafters' depth. - `hipThickness` string \| {value, unit} The hip and valley rafters' thickness. - `ridgeThickness` string \| {value, unit} The ridge board's thickness, deducted from the rafters. - `plateWidth` string \| {value, unit} The wall plate's width, where the birdsmouth seat bears. - `heightAbovePlate` string \| {value, unit} \| null The rafter's height above the plate (HAP) the person sets; the tool's own when left out. - `hipTop` "drop" \| "back" How a hip's top edge is brought to the roof planes: dropped, or backed (bevelled). - `spacing` string \| {value, unit} The rafter spacing, centre to centre. - `fasciaThickness` string \| {value, unit} The fascia's thickness at the tails. - `wing` null \| object A gable wing of the same pitch, with its valleys, or null for none. - `stock` string \| {value, unit}\[\] The stock lengths the cut list works on. - `kerf` string \| {value, unit} The saw's kerf, taken at every cut. `{"kind":"gable","pitchDegrees":35}` |
| `read_roof_framing`Reads | **Read the roof framing on the page** Every rafter of the roof on the page — common, hip, valley and jack lengths along the line, cuts with their saw settings, birdsmouth and height above the plate, hip backing — and the cut list on the person's stock lengths. Returns roof {kind, pitch, run, rise}, members \[{name, count, lineLength, overall, board, cuts, birdsmouth}\], cutList \[{size, buy, wastePercent}\], lengths as text with units; notDesign. | — |

## My Project

### My Project 40

For example [/project/](https://craftquantities.com/project/)

| Tool | What it does | Parameters |
|---|---|---|
| `list_project_lines`Reads | **List the lines of My Project** The lines of the project open in My Project — each with its id, what it is, its quantity and unit, its zone and the calculator it came from. Money is the person's own and is not read here (read_project_estimate has the totals). Returns project {id, name} and lines \[{id, label, quantity, unit, source, calculator?, area, pricedByYou}\] — quantity in the line's own unit. | — |
| `add_project_line`Changes what is kept | **Add a line of your own to My Project** Adds one free line to the open project — a name, a quantity and its unit, optionally in a zone and with a note — as the estimate sheet's Add a line does. It carries no price (the person prices it, or price_project_lines with their figure). The project's Undo takes it back. Returns added \[{id, label, quantity, unit, source, area, pricedByYou}\] and project {id, name}. | - `label`\* string What the line is: "Skip hire", "Door handles". - `quantity`\* number How many or how much, in the unit given. - `unit`\* string The line's unit as the person writes it: each, m, m², ft², m³, bag, day… - `area` string The zone (room, floor) to put it in, by name or id; one that does not exist is refused (add_project_area makes it). - `note` string A note on the line, kept with it on the sheet. `{"label":"Skip hire","quantity":1,"unit":"each"}` |
| `add_calculator_result`Changes what is kept | **Add a calculator's result to My Project** Runs one of the site's calculators on the inputs given and adds its answer to the open project as one line, the line its page's Add to Project adds, with the inputs kept so the person can reopen it. The project's Undo takes it back. Returns added \[{id, label, quantity, unit, calculator, area}\] — the calculator's answer in its own unit — and project {id, name}. | - `calculator`\* string The calculator's slug, as its page address ends (concrete-calculator …); the engine's search or a calculator page's run_calculator names it. - `inputs` object The calculator's inputs by id, each measured one with its unit ("3.5 m", "12 ft"); one left out takes the page's opening value. A calculator page's run_calculator schema lists them. - `label` string What the line is called in the project; the calculator's title when left out. - `system` "metric" \| "imperial" The unit system the line is worked in; the person's when left out. `{"calculator":"concrete-calculator","inputs":{"slabLength":"4 m","slabWidth":"3 m","slabThickness":"100 mm"},"label":"Shed base"}` |
| `edit_project_line`Changes what is kept | **Edit a line of My Project** Changes one line of the open project as its cells on the estimate sheet do: its name, quantity, unit, zone or note. The line is found by id or by its exact name. One step the project's Undo takes back. Prices go through price_project_lines. Returns line {id, label, quantity, unit, area, …} as it is now, changed (true when anything moved), canUndo, canRedo. | - `line`\* string The line's id, or its exact name where only one line carries it (list_project_lines gives both). - `label` string The line's new name. - `quantity` number The new quantity, in the line's unit (or the new unit when given too). - `unit` string The new unit as the person writes it. Nothing is converted: the quantity stays the figure it is. - `area` string The zone to move it to, by name or id; an empty text takes it out of every zone. - `note` string The line's note, replacing the one it has; an empty text clears it. `{"line":"Skip hire","quantity":2}` |
| `move_project_lines_to_area`Changes what is kept | **Move lines of My Project to a zone** Puts the named lines of the open project in one zone (a room, a floor), as the sheet's bulk Move to zone does; a zone name the project lacks is made, as New zone… makes it. One step the project's Undo takes back. Returns area {id, name, made (true when the zone was new)} and moved \[{id, label, quantity, unit, area}\]. | - `lines`\* string\[\] The lines by id or exact name. - `area`\* string The zone by name or id; a new name makes the zone. `{"lines":["Skip hire"],"area":"Kitchen"}` |
| `remove_project_lines`Changes what is kept | **Remove lines from My Project** Takes the named lines out of the open project, as the sheet's bulk Remove does; a choice of alternate naming one goes with it. One step: the project's Undo (undo_project_change) brings them back as they were. Returns removed \[{id, label, quantity, unit}\], count, linesLeft, canUndo (true: the Undo brings them back). | - `lines`\* string\[\] The lines by id or exact name (list_project_lines). `{"lines":["Skip hire"]}` |
| `list_project_areas`Reads | **List the zones of My Project** The zones (rooms, floors, buildings) of the open project with how many lines each holds, and how many lines are in no zone. Returns project {id, name}, areas \[{id, name, lines (count)}\], linesInNoArea (count). | — |
| `add_project_area`Changes what is kept | **Add a zone to My Project** Adds a zone (a room, a floor, a building) to the open project, as the sheet's Add zone does. Lines go in it with move_project_lines_to_area or edit_project_line. The project's Undo takes it back. Returns area {id, name} and every zone now \[{id, name, lines}\]. | - `name`\* string The zone's name: "Kitchen", "First floor". `{"name":"Kitchen"}` |
| `rename_project_area`Changes what is kept | **Rename a zone of My Project** Gives one zone of the open project a new name, as typing over its heading does; its lines stay in it. One step the project's Undo takes back. Returns area {id, name (new), was (old name)}, canUndo, canRedo. | - `area`\* string The zone by its id or its current name. - `name`\* string The new name. `{"area":"Kitchen","name":"Kitchen and utility"}` |
| `remove_project_area`Changes what is kept | **Remove a zone from My Project** Takes one zone out of the open project, as the page's own remove does: its lines stay in the project, in no zone. One step the project's Undo takes back. Returns removed {id, name}, linesKept (count, now in no zone), areas left \[{id, name, lines}\]. | - `area`\* string The zone by its id or name. `{"area":"Kitchen"}` |
| `read_project_notes`Reads | **Read My Project's notes** The open project's own notes (access, what the client asked, what was agreed — kept with this project, never on the proposal) and the pages of the desk's notebook, which is one per device and shared by every project. Returns project {id, name}, notes (text), notesLimit (characters), deskNotebook \[{id, title, body, pinned, loggedAt}\]. | — |
| `write_project_notes`Changes what is kept | **Write My Project's notes** Writes the open project's own notes, as its Project notes box does: adds a paragraph after what is there, or replaces it all. Kept with the project, never printed on the client's proposal. One step the project's Undo takes back. Returns notes (the text now), characters, notesLimit, canUndo. | - `text`\* string The words to write. - `mode` "append" \| "replace" Add after the notes there (append, kept when left out) or write over them (replace). `{"text":"Access through the side gate; client wants the skip off the drive by Friday."}` |
| `add_desk_note`Changes what is kept | **Add a page to the desk's notebook** Adds a page to the desk's notebook on My Project (Notes on the desk): one notebook per device, for ideas before they are a line in any project. Not part of the project's Undo: the person deletes a page on the notebook itself. Returns page {id, title, body, pinned, loggedAt} and pages (how many the notebook holds now). | - `text`\* string The page's text; its first line is its title. `{"text":"Ask the merchant about a trade account"}` |
| `read_price_book`Reads | **Read the person's price books** The person's own price books kept in this browser (My Company), which one the open project prices against, and that book's items: name, unit, price, currency label, supplier, date. Also how many project lines the book would reprice. The site supplies no prices. Returns books \[{id, name, items, chosen}\], book {id, name, items \[{id, name, unit, price, currency, supplier, sku, pricedOn, materialsBound}\]} (price per the item's unit, in its currency label), projectBook, linesItWouldReprice, currency. | - `book` string A book by id or name to read; the project's own book when left out. `{}` |
| `choose_project_price_book`Changes what is kept | **Choose the price book My Project prices against** Sets which of the person's own price books the open project prices against, as the Price book panel's picker does (an empty text chooses none). Prices on the lines move only when the book is applied. The project's Undo takes it back. Returns projectBook {id, name} or null, canUndo. | - `book`\* string The book by id or name; an empty text chooses none. |
| `apply_price_book_to_project`Changes what is kept | **Apply the price book to My Project's lines** Puts the open project's chosen price book's prices on every line the book prices, as the Price book panel's Apply to the estimate does: one step the project's Undo takes back. Lines the book prices in another currency label are left alone and listed; nothing is converted. Returns book {id, name}, changed (lines repriced), otherCurrency \[{id, label, currency}\] left alone, currency (the project's label). | — |
| `price_project_lines`Changes what is kept | **Put the person's price on lines of My Project** Sets the unit price on the named lines of the open project — a price the PERSON stated, or one item of their own price book — as typing it in the sheet's price cell does. Never use a figure the person did not give: the site supplies no prices. One step the project's Undo takes back. Returns price {perUnit, currency, from}, changed (count), lines \[{id, label, quantity, unit, unitPrice {low, high, currency}}\] — prices per the line's unit. | - `lines`\* string\[\] The lines by id or exact name. - `price` number The person's own price per unit of each line, in the project's currency label. - `bookItem` string Instead of a price: an item of the person's price book by id or name (read_price_book), whose price is used. `{"lines":["Skip hire"],"price":250}` |
| `read_project_totals`Reads | **Read My Project's totals** The open project's quantities summed by unit, with how many lines and zones it holds: a count of what the project holds, not an order and not a price (read_project_estimate has the money). Returns project {id, name}, totals {lines, byUnit \[{unit, quantity, lines}\], note}, areas (names), linesPricedByThePerson, url. | — |
| `read_project_estimate`Reads | **Read My Project's estimate (the person's money)** The open project's money summary as the page's Estimate summary works it, from the person's OWN prices and rates only: material, labour, equipment, contingency, overhead, profit, discount, tax and the client price, each as a low–high band in the project's currency label, with how many lines carry no price. Returns currency (the project's label), every part as {low, high} in it (material, labour, contingency, overhead, profit, discount, tax, clientPrice…), labourHours (hours), equipment, unpricedLines, materialOnly — all from the person's own prices and rates. | — |
| `undo_project_change`Changes what is kept | **Undo the last change to My Project** Takes back the last change to My Project, as the page's Undo (Ctrl+Z) does — a line added or removed, an edit, a zone, a project switched or made. Returns what the project holds now and whether more can be undone or redone. Returns project {id, name, lines (count now)}, linesBefore, canUndo, canRedo. | — |
| `redo_project_change`Changes what is kept | **Redo a change to My Project** Puts back the last change undone on My Project, as the page's Redo (Ctrl+Y) does. Returns what the project holds now and whether more can be undone or redone. Returns project {id, name, lines}, linesBefore, canUndo, canRedo. | — |
| `list_project_versions`Reads | **List My Project's saved versions** The versions of the open project saved on this device (Versions: "Option A", "Sent to client"), newest first, each with its id, name, date, note, how many lines it held and whether it is the baseline. Returns project {id, name}, versions \[{id, label, createdAt (ISO), note, baseline, lines (count)}\]. | — |
| `save_project_version`Changes what is kept | **Save a version of My Project** Keeps the open project as it is now as a named version on this device, as the Versions panel's Save version does, to compare or restore later. The person deletes versions on the page. Returns saved {id, label, createdAt, lines} and versions (how many the project has now). | - `label`\* string The version's name: "Option A: timber roof", "Sent to client 3 May". `{"label":"Option A: timber roof"}` |
| `restore_project_version`Changes what is kept | **Restore a saved version of My Project** Puts a saved version back as the open project, as the Versions panel's Restore does. A version of another project in the list is refused (switch to it first). The restore is one step the project's Undo takes back. Returns restored {id, label, createdAt, lines}, project {id, name, lines (count now)}, canUndo. | - `version`\* string The version's id or exact name (list_project_versions). |
| `list_projects`Reads | **List the projects in My Project** Every project kept in this browser, as the project switcher and My projects list them: id, name, how many lines and zones, which one is open, which are archived, when each last changed. Returns projects \[{id, name, lines, areas (counts), active, archived, updatedAt (ISO)}\] and url of the portfolio. | — |
| `switch_project`Changes what is kept | **Open another project in My Project** Opens another of the projects kept in this browser in My Project, as the project switcher does; every other tool then works on it. The project's Undo goes back to the one open before. Returns project {id, name, lines} now open, canUndo. | - `project`\* string The project's id or exact name (list_projects). |
| `create_project`Changes what is kept | **Start a new project in My Project** Starts a new, empty project in this browser and opens it, as the switcher's New project does; the one open before stays in the list. The project's Undo takes it back. Returns project {id, name} (now open), projects (how many now), canUndo. | - `name` string The project's name: "Smith kitchen"; "Project 2" and so on when left out. `{"name":"Smith kitchen"}` |
| `rename_project`Changes what is kept | **Rename a project in My Project** Gives a project kept in this browser a new name, as the project's name field does; the open project when none is named. One step the project's Undo takes back. Returns project {id, name (new), was}, canUndo. | - `name`\* string The new name. - `project` string The project's id or exact name; the open project when left out. `{"name":"Smith kitchen, phase 1"}` |
| `export_project_bill`Reads | **Export My Project's bill as text** The open project's bill of quantities as the PDF and Excel exports list it — the estimate's rows (zone, item, quantity, unit, the person's own unit price and subtotal), then alternates not chosen and reference figures apart — as a Markdown table and as CSV text the agent can hand on. Returns estimate, alternates, reference \[{id, zone, item, quantity, unit, unitPrice, subtotalLow, subtotalHigh, currency, supplier, note}\] — quantities in each row's unit, money in the person's currency label — and csv (the same rows as CSV text). | — |
| `download_project_file`Changes the view | **Download My Project as PDF, Excel, dossier or project file** Starts the page's own download of the open project: the PDF bill, the Excel workbook (live formulas), the job dossier (the Documents tab's Download dossier, with the person's letterhead and their choice of sections), or the whole project as one .cqproject file (lines, rates, settings, proposal, programme, actual costs) that My Project opens again as a new project on any device. The file goes to the person's downloads; nothing in the project changes. Returns kind, project {id, name}, started (true once the page's download began). | - `kind`\* "pdf" \| "xlsx" \| "dossier" \| "project" Which file: the PDF bill, the Excel workbook, the job dossier, or the project file (.cqproject). `{"kind":"pdf"}` |
| `open_project_tab`Changes the view | **Open a tab of My Project** Opens one of My Project's work tabs for the person to see — Overview, Estimate, Check, Materials, Labour, Schedule, Diary, Punch list, Money, Analyses, Documents, Sources — as pressing it does. Returns tab (id), label, url. | - `tab`\* one of 12 values The tab's id. `{"tab":"materials"}` |
| `make_share_link`Reads | **Make a share link for My Project** Makes the Documents tab's share link for the open project: the whole project (lines, zones, takeoff setups, notes, units) inside one address for WhatsApp or e-mail, opening read-only or as an editable copy. No account and nothing uploaded: the project rides in the link. Prices travel only when include_prices is true; the client's name and the site address never do. Returns link (the address to send), mode (view \| edit), priced, length and max (characters), lines, project {id, name}. | - `mode` "view" \| "edit" view (default): the reader sees a read-only summary; edit: the reader is offered the project as a copy of their own. - `include_prices` boolean True to put the person's own rates, labour, margins and tax settings in the link; left out, a quantities-only link. `{"mode":"view","include_prices":false}` |
| `open_share_link`Changes what is kept | **Open a project link somebody sent** Reads a Craft Quantities project link (/project/shared/#s=…) somebody sent: its name, lines, zones and whether it carries prices, checked as the shared page checks it (a link cut short is refused, never misread). With open_copy true it opens the project as a NEW project in this browser, as the shared page's Open a copy does: one step the project's Undo takes back, and no project the person has is changed. Returns opened (true when a new project was added), project {name, mode, system, market, sharedAt, priced, areas, lines \[{name, quantity, unit, calculator}\]}, newProject {id, name} and canUndo when opened. | - `link`\* string The whole link as it was sent, or just its #s=… part. - `open_copy` boolean True to add the shared project to this browser as a new project and open it; left out, the link is only read. `{"link":"https://craftquantities.com/project/shared/#s=v1z…","open_copy":false}` |
| `write_scope_of_work`Reads | **Write a scope of work from My Project** Writes the open project's scope of work as the Documents tab does: Part 1 General, Part 2 Products with the documents each line's calculator cites in the market, Part 3 Execution in the takeoffs' order. Returns it as Markdown. A template for the parties, not legal advice or a design; nothing on the page changes. Returns The scope of work as Markdown text; structured: project {id, name}, style (csi \| nbs) and document (its parts, sections and the documents each line cites). | - `takeoff` string The name of one takeoff the project's lines came from, for that job's scope alone; left out, the whole project. - `style` "csi" \| "nbs" The headings: North American three-part (csi) or UK and Australian practice (nbs). The person's market decides when left out. `{"style":"csi"}` |
| `read_site_diary`Reads | **Read My Project's site diary** The open project's site diary (the Diary tab), newest day first: each day's weather, crew with person-hours, work done, deliveries, issues and how many photos — the reader's own words. Returns days (count), entries \[{id, date (yyyy-mm-dd), weather, crew \[{name, trade, workers, hours (each, per day)}\], personHours, work, lines (names), deliveries, issues, photos (count)}\]. | - `limit` integer How many days, newest first; 30 when left out. `{"limit":7}` |
| `add_site_diary_entry`Changes what is kept | **Write a day in My Project's site diary** Writes a day in the open project's site diary (the Diary tab) — weather, crew, work done, deliveries, issues, the lines worked on. A day already in the diary gets the words added after its own, as opening that day and typing does. One step the project's Undo takes back. Returns entry {id, date, weather, work, deliveries, issues, crew \[{name, trade, workers, hours}\], personHours, lines (count)}, addedToExisting. | - `date` string The day, yyyy-mm-dd; today on the person's calendar when left out. - `weather` string As the person says it: "Overcast, 12 °C". - `work` string The work done that day. - `deliveries` string What arrived. - `issues` string Problems, delays, instructions. - `crew` object\[\] Who was on site. - `lines` string\[\] Project lines the work was on, by id or exact name. `{"work":"Footings dug and blinded","weather":"Dry, 9 °C","crew":[{"name":"Groundworks","workers":3,"hours":8}]}` |
| `read_punch_list`Reads | **Read My Project's punch list** The open project's punch list (the Punch list tab): each item's number, title, place, trade, status, due day and the days it was finished and checked, with counts of items outstanding and overdue. Returns open, overdue, total (counts), items \[{id, n, title, location, trade, status, due (yyyy-mm-dd), doneAt, verifiedAt (ISO), photos (count)}\]. | - `status` "all" \| "not-verified" \| "open" \| "done" \| "verified" Which items: every item, those not yet verified (kept when left out), or one status. `{"status":"all"}` |
| `add_punch_item`Changes what is kept | **Add an item to My Project's punch list** Adds an open item to the open project's punch list, as the Punch list tab's quick add does: a title, and where, which trade and by when. It gets the next number. One step the project's Undo takes back. Returns item {id, n (its number), title, location, trade, status (open), due}. | - `title`\* string What needs doing: "Touch up paint behind door". - `location` string A room or place: "Bathroom 1". - `trade` string The trade that does it: "Decorator". - `due` string The day it is due, yyyy-mm-dd. `{"title":"Touch up paint behind door","location":"Bathroom 1","trade":"Decorator"}` |
| `set_punch_item_status`Changes what is kept | **Close or reopen a punch item** Closes a punch-list item of the open project (finished, or checked and signed off) or reopens it, as its status button does; closing records when. One step the project's Undo takes back. Returns item {id, n, title, status (now), was, doneAt, verifiedAt (ISO)}. | - `item`\* string The item's id or its number ("3") on the list. - `status`\* "open" \| "done" \| "verified" Its new status. `{"item":"1","status":"done"}` |
| `describe_job`Reads | **Describe the job to the estimating copilot** Reads a job written in plain words, as the copilot's Describe the job box does, and opens its review on the page for the person to check and add. Returns what it read: the takeoffs and calculators it chose, each measurement said or assumed, anything it could not read, and the quantities. Nothing is added to the project by this tool. Returns text, jobs \[{kind, phrase, measurements \[{id, value (base units), origin, phrase}\], missing, parts \[{name, kind, ref, because, rows \[{label, quantity, unit}\]}\]}\], unread, noted, reviewOpen (true when the page's review opened). | - `text`\* string The job the way a person would say it, such as "build a 12x16 deck 3 ft high with railing and stairs". `{"text":"build a 12x16 deck 3 ft high with railing and stairs"}` |

## Quotes

### The quote checks 1

For example [/check/](https://craftquantities.com/check/)

| Tool | What it does | Parameters |
|---|---|---|
| `list_quote_checks`Reads | **List every quote check** Every quote check page on the /check/ hub: the job it reads a builder's or supplier's quote against, its trade group, the takeoff its quantities come from, how many measurements it asks for, the lines it compares and its address. Optionally narrowed by words or by trade group. Quantities only; no page publishes prices. Returns checks: each quote check with its slug, job, trade group and label, kind (written or takeoff), the takeoff it comes from (id, name, url), how many measurements it asks for, its line names and its page url; total: how many checks the hub lists. | - `search` string Words to look for in the job, its takeoff, its description or its lines, such as "tile" or "deck". - `group` "interiors" \| "wet-rooms" \| "envelope" \| "structure-site" \| "mep" \| "outdoor" One trade group of the hub, by its id. `{"search":"tile"}` |

### Every quote check 3

For example [/check/bathroom-quote/](https://craftquantities.com/check/bathroom-quote/)

| Tool | What it does | Parameters |
|---|---|---|
| `describe_quote_check`Reads | **Describe this quote check** What this bathroom quote check compares: the job's measurement boxes with their units and current figures, the lines a quote for the job should contain with the range the page computes for each, the takeoff and calculators the quantities come from, and how many quote lines the page holds now. Quantities only, never prices. Returns job, slug, kind, url, takeoff {id, name, url}; measurements: each box's label, unit and current value; lines: each line the job needs with the range computed for it (with its unit) and, once a quote is read, its state; quoteLinesOnPage: how many quote lines the page holds. | —`{}` |
| `check_quote`Changes what is kept | **Check a quote against the job** Reads a pasted bathroom quote against the job on this check page, through the page's own reader: optional measurements typed into its boxes first, the quote pasted into its box and read with its own button, so the person sees the same reading. Returns the findings by group (quantities outside the computed range, lines missing from the quote, extras, work listed but not measured, lines not comparable as written, scopes not mentioned, lines within range), each with the quoted and computed quantity and the calculator it comes from, plus the questions to ask. The page keeps the read quote in this browser. Returns rows: the quote's lines as the page holds them (text, quantity, unit, what each was read as); coverage: the page's sentence on how much of the job the quote names; groups: each part of the reading (part id, title, items with name, label, onQuote and computed quantities with their units, notes and the source calculator's url); questions: each question to ask and what it is about; keptInThisBrowser: whether the page has kept the quote. | - `text`\* string The quote's lines as written, one item to a line, such as "Tile adhesive 8 bags". Prices may stay in: the page takes money out before reading. - `measurements` object The job's measurements, each by the label describe_quote_check lists ("Room length"), as a number in the unit that box shows (its unit is listed beside it). Boxes left out keep what the page shows. - `replace` boolean True clears the quote lines the page already holds first (the page's own Clear the quote; there is no undo for it); otherwise the lines are added to them. `{"text":"Floor tiles 60 sq ft\nTile adhesive 3 bags\nGrout 1 bag\nLabour 3 days"}` |
| `read_quote_findings`Reads | **Read the quote check's findings** The reading this bathroom quote check shows now: the quote lines the page holds, its coverage sentence, every group of findings with the quoted and computed quantities and their source calculators, and the questions to ask. Quantities only, never prices. Returns rows (the quote's lines on the page), coverage, groups (each part of the reading with items: name, label, onQuote and computed quantities with units, notes, source url), questions, and read/pending flags. | —`{}` |

### Quote to Estimate 3

For example [/quote-to-estimate/](https://craftquantities.com/quote-to-estimate/)

| Tool | What it does | Parameters |
|---|---|---|
| `import_quote_text`Changes what is kept | **Import a quote into Quote to Estimate** Reads a supplier's or builder's quote pasted as text with Quote to Estimate's own reader and puts it on the page's estimate sheet through its own paste box, as Read the quote does. Returns every line read (section, words, quantity, unit, material/labour/service, the quote's own rate and total, the site calculators that re-work its quantity, why a line is unsure), the lines left unread, and the quote's own stated totals and arithmetic notes. The page keeps the sheet in this browser; its Undo takes the paste back. Returns lines: each line read with section, text, quantity and unit, kind, the quote's own quoteUnitPrice and quoteLineTotal (in the quote's currency), matching site calculators (slug, title, url) and unsure reasons; unread: lines not read as items; currency; quoteStatedTotals and arithmeticNotes (the quote's own figures); onSheet: whether the page's sheet took it. | - `text`\* string The quote as it came, one item to a line, prices and all, such as "Thinset mortar 50 lb - 8 bags $22.00 each". `{"text":"Cement backer board 3x5 - 12 sheets @ $14.50\nThinset mortar 50 lb - 8 bags $22.00 each\nTile installation 3 days $1,650.00"}` |
| `read_imported_estimate`Reads | **Read the Quote to Estimate sheet** The estimate Quote to Estimate's sheet holds now, as the page keeps it in this browser: its title, supplier and number, each line with quantity, unit, kind, the quote's own rate and total and the calculators matched to it, and the totals worked from the quote's own prices. Prices are the person's figures from their quote; the site supplies none. Returns title, supplier, number, quoteRef, example flag, currency, taxRatePercent; lines (as import_quote_text returns them); totalsFromTheQuote (subtotal, tax, total, unpriced count, in the quote's currency); arithmeticNotes; url. | —`{}` |
| `add_quote_estimate_to_project`Changes what is kept | **Add the estimate to My Project** Adds every line of the estimate on Quote to Estimate's sheet to the open project in My Project with the page's own Add to My Project button: each line's words, quantity and unit, the quote's rate as the person's own price, the supplier and a note. Optionally logs each rate in the person's price journal, as the page's checkbox does. The page's Undo notice or My Project's Undo takes the lines back; logged prices stay in the journal. Returns added: the project lines made (id, label, quantity, unit, source, area, whether a price the person gave rides on it); project {id, name}; pricesLogged; url of My Project. | - `logPrices` boolean True also logs each line's rate in the person's own price journal (the page's "log the prices" checkbox); false or left out logs none. `{"logPrices":false}` |

## Company, prices and field tools

### My Company 7

For example [/company/](https://craftquantities.com/company/)

| Tool | What it does | Parameters |
|---|---|---|
| `read_company_profile`Reads | **Read My Company's profile** My Company's letterhead and brand kit as this browser keeps them (company name, address, contact, prepared by, logo set or not, accent colour, heading face, layout, payment terms, terms), with the count of clients, suppliers, crew, price books and templates and the next document number of each type. Returns brand (letterhead fields, logo set or not with its size in px, brand kit), status of the browser copy, counts of each register, books and templates, and every document type's numbering with its next number. | —`{}` |
| `update_company_profile`Changes what is kept | **Update My Company's letterhead and brand kit** Changes My Company's letterhead (company name, address, contact, prepared by) and brand kit (accent colour, heading face, letterhead layout, payment terms, terms and conditions) through the page's own store; only the fields given change. Printed on every proposal. An accent that reads under 4.5:1 on white paper is refused with a darker shade that passes. Change back by calling again with the old values. Returns changed (the fields set), brand (the letterhead and kit as now kept) and status of the browser copy. | - `companyName` string The business name printed at the top of every proposal. - `address` string The postal address, several lines allowed (separate them with \\n). - `contact` string Phone, email or website, as one line. - `preparedBy` string The person named as preparing the documents. - `accent` any The documents' accent colour as hex ("#1d4ed8"), or null for greys. - `headingFont` "sans" \| "serif" The face document headings are set in: the embedded sans, or the viewer's Times serif. - `layout` "classic" \| "centred" \| "reversed" Where the logo and company sit on the letterhead. - `paymentTerms` string The company's usual payment terms, as the person writes them. - `terms` string The company's own terms and conditions; the site drafts no legal text. `{"companyName":"Nord Renovations","accent":"#0f766e","layout":"classic"}` |
| `list_company_register`Reads | **List My Company's clients, suppliers or crew** The entries of one My Company register (clients, suppliers or crew) as this browser keeps them, optionally narrowed by words in the name, company, trades or tags: ids, names, contact details and notes. Crew day rates are the person's own figures. Returns register and entries (each with its id, name, contact details, tags, notes; crew with role, trades, skills and the person's own day rate in rateCurrency). | - `register`\* "clients" \| "suppliers" \| "crew" Which register to list. - `query` string Words that must appear in the entry's name, company, category, trades or tags; all entries when left out. `{"register":"clients"}` |
| `add_company_register_entry`Changes what is kept | **Add a client, supplier or crew member to My Company** Adds one client, supplier or crew member to My Company's registers through the register's own store, as the page's Add form does; a name already there is not added twice and the existing entry's id comes back. The entry can be removed on the page (with Undo). Returns register, id of the entry, existing (true when the name was already there and nothing was added) and the entry as kept. | - `register`\* "clients" \| "suppliers" \| "crew" Which register to add to. - `name`\* string The client's, supplier's or person's name. - `phone` string Phone number, as written. - `email` string Email address, as written. - `company` string Clients only: the business the client is or works for. - `billingAddress` string Clients only: where the bills go. - `category` string Suppliers only: the kind of business (builders' merchant, plant hire). - `accountRef` string Suppliers only: the person's account reference with the supplier (never a price). - `role` string Crew only: foreman, apprentice, subcontractor… - `trades` string\[\] Suppliers and crew: the trades, as the person names them. - `tags` string\[\] The person's own labels. - `notes` string Free notes. `{"register":"suppliers","name":"Northside Timber","category":"Timber merchant","trades":["Carpentry"]}` |
| `set_document_numbering`Changes what is kept | **Set a document type's numbering on My Company** Changes how one document type (proposal, estimate, RFQ, variation, invoice) is numbered on My Company's Documents tab: its prefix, the next number, the digits it is padded to, or whether it is printed by itself. A next number below one already issued is raised past it, and the answer says so. Returns kind, scheme (prefix, next, digits, auto and the formatted nextNumber) and clamped (true when the next number was raised past an issued one). | - `kind`\* "proposal" \| "estimate" \| "rfq" \| "variation" \| "invoice" The document type. - `prefix` string Text before the number ("Q-", "INV-"). - `next` integer The number the next document of this type receives. - `digits` integer Zero-padded to this many digits (4 gives 0042). - `auto` boolean Print the number on this type's document by itself. `{"kind":"proposal","prefix":"Q-","digits":4}` |
| `list_price_books`Reads | **List the person's price books** The person's own price books as this browser keeps them: each book's id, name, stale-after days, and its items (name, unit the price is per, price with its currency label, supplier, the day it was priced). The site supplies no prices: every figure here was typed by the person. Returns books, each with id, name, staleAfterDays and items (id, name, unit the price is per, price in the person's currency label, supplier, pricedOn yyyy-mm-dd). | - `query` string Words that must appear in an item's name or supplier; every item when left out. `{}` |
| `add_price_book_item`Changes what is kept | **Add an item to a price book** Adds one item at the person's own price to one of their price books (by id or name; a book of that name is created when none exists), read by the price book editor's own add row: name, unit the price is per, price above zero, supplier. Dated today and logged in the price journal when the person's autolog is on, as the editor logs it. Removable in the book editor. Returns bookId, bookName, createdBook, item (id, name, unit, price in the person's currency label, pricedOn) and journal (whether the price was logged in the price journal). | - `book` string The book's id or name; the first book when left out, or a new book called this when no book has the name. - `name`\* string What the merchant calls it. - `unit`\* string The unit the price is per ("m2", "sheet", "bag", "each"). - `price`\* number The person's own price per unit, in their currency. - `supplier` string Where it was priced. `{"name":"Plasterboard 12.5 mm","unit":"sheet","price":9.5,"supplier":"Northside Timber"}` |

### Price journal 7

For example [/tools/price-index/](https://craftquantities.com/tools/price-index/)

| Tool | What it does | Parameters |
|---|---|---|
| `list_price_journal`Reads | **List the person's price journal** The entries of the person's own price journal (prices they were quoted, invoiced or saw), newest first: item, price per unit with its currency label, the day seen, supplier, quote or invoice, tax, quantity bracket, tags. Narrowed by words in the item or the supplier. No price here comes from the site. Returns total and matched counts and entries (id, item, itemKey, price per unit in the person's currency label, unit, observedOn yyyy-mm-dd, supplier, evidence, tax, bracket, quoteRef, delivery, tags, note). | - `query` string Words that must appear in the item's name; every item when left out. - `supplier` string Words that must appear in the supplier's name. - `limit` integer At most this many entries (50 when left out). `{"limit":20}` |
| `add_price_entry`Changes what is kept | **Log a price in the person's price journal** Logs one price the person was quoted, invoiced or saw, read by the journal's own Log a price form: the item, the price per unit, the currency label, the supplier, the day seen, whether it was a quote, invoice or shelf price, the tax, a quantity bracket, tags. A price more than ten times (or under a tenth of) the person's own average for the item is refused as a likely unit slip. Deletable on the page with Undo. Returns entry: the logged entry as list_price_journal returns one (id, item, itemKey, price per unit in its currency label, unit, observedOn, supplier and the rest). | - `item`\* string What was priced ("Plasterboard 12.5 mm", "Skip hire"). - `price`\* number The price per unit, in the currency label given (the person's market's when left out). - `unit` string The unit the price is per: a measured unit ("m2", "ft2", "m3", "kg", "gal") or a word ("each", "bag", "sheet", "week"); each when left out. - `currency` string The currency label ("£", "$", "A$"); recorded, never converted. - `supplier` string Who gave the price. - `observedOn` string The day the price was given, yyyy-mm-dd; today when left out. - `evidence` "quote" \| "invoice" \| "shelf" What the price came from. - `taxMode` "included" \| "excluded" Whether the price includes the sales tax (VAT, GST). - `taxRate` number The tax rate in percent (20 for 20 %); needs taxMode. - `quantityFrom` number The smallest quantity the price holds for, in the entry's unit. - `quantityTo` number The largest quantity the price holds for, in the entry's unit. - `quoteRef` string The quote's or invoice's own number. - `delivery` "delivered" \| "collected" Whether the price was delivered or collected. - `tags` string\[\] The person's own labels. - `note` string A note kept with the entry. `{"item":"Plasterboard 12.5 mm","price":9.5,"unit":"sheet","supplier":"Northside Timber","evidence":"quote"}` |
| `read_price_insights`Reads | **Read the price journal's insights** What the price journal's Insights tab works out from the person's own entries, per item: lowest, median, highest, their own average, the latest price and how far it sits from that average (percent), the change since the first entry (percent), each supplier's lowest and latest, and whether the latest is older than the months asked. Entries in another unit kind or currency are counted, not mixed in. Returns staleMonths and items, each with key, item, unit, currency label, count, lowest, median, highest and average price per unit, latest (price, on, supplier), driftPercent and changePercent (%), suppliers (lowest, latest per supplier), otherUnit and otherCurrency counts, stale. | - `item` string Words that must appear in the item's name; every item when left out. - `staleMonths` 1 \| 3 \| 6 \| 12 \| 24 A latest price older than this many months is called stale; the page's own choice when left out. `{}` |
| `export_price_journal_csv`Reads | **Export the price journal as CSV** The person's whole price journal as the Import and export tab's CSV (one row per entry with the item, price, unit, currency, day, supplier, tax, bracket, evidence, tags, note and ids), returned as text for the agent to keep or pass on. Nothing is downloaded or changed. Returns entries (the count) and csv: the export as text, header row first, prices per unit in each entry's currency label. | —`{}` |
| `import_price_journal_csv`Changes what is kept | **Import prices into the journal from CSV** Reads a price list given as CSV text the way the journal's Import tab reads a file: the columns are matched from the header row (item, price, unit, currency, date, supplier, tax, quantity, source, tags, note), every row is checked, entries the journal already holds are not added twice, and rows carrying this site's ids update those entries. Applied with the tab's own Undo (a notice on the page puts the journal back). Returns applied, counts (add, update, same, error), errors (row number and reason) and the column mapping read from the header. | - `csv`\* string The CSV text, a header row first (item and price columns at least). - `dayFirst` boolean Read dates such as 03/04/2026 day first (3 April); the person's market decides when left out. - `apply` boolean False only reports what would be added, updated or refused, changing nothing; true (or left out) imports. `{"csv":"item,price,unit,supplier\nPlasterboard 12.5 mm,9.5,sheet,Northside Timber","apply":false}` |
| `list_price_books`Reads | **List the person's price books** The person's own price books as this browser keeps them: each book's id, name, stale-after days, and its items (name, unit the price is per, price with its currency label, supplier, the day it was priced). The site supplies no prices: every figure here was typed by the person. Returns books, each with id, name, staleAfterDays and items (id, name, unit the price is per, price in the person's currency label, supplier, pricedOn yyyy-mm-dd). | - `query` string Words that must appear in an item's name or supplier; every item when left out. `{}` |
| `add_price_book_item`Changes what is kept | **Add an item to a price book** Adds one item at the person's own price to one of their price books (by id or name; a book of that name is created when none exists), read by the price book editor's own add row: name, unit the price is per, price above zero, supplier. Dated today and logged in the price journal when the person's autolog is on, as the editor logs it. Removable in the book editor. Returns bookId, bookName, createdBook, item (id, name, unit, price in the person's currency label, pricedOn) and journal (whether the price was logged in the price journal). | - `book` string The book's id or name; the first book when left out, or a new book called this when no book has the name. - `name`\* string What the merchant calls it. - `unit`\* string The unit the price is per ("m2", "sheet", "bag", "each"). - `price`\* number The person's own price per unit, in their currency. - `supplier` string Where it was priced. `{"name":"Plasterboard 12.5 mm","unit":"sheet","price":9.5,"supplier":"Northside Timber"}` |

### The field tools 1

For example [/tools/](https://craftquantities.com/tools/)

| Tool | What it does | Parameters |
|---|---|---|
| `list_field_tools`Reads | **List the field tools** The site's field tools as the /tools/ hub lists them, grouped by what they use (motion sensors, camera and photos, screen and modelling, microphone, your own data): each tool's page, one-line purpose, the hardware it needs and where it stops being reliable. Returns groups, each with id, title and tools (slug, title, summary, requires, limitation, page link). | - `group` "motion" \| "optical" \| "screen" \| "audio" \| "data" Only the tools of this group. `{}` |

### Every field tool page 1

For example [/tools/bubble-level/](https://craftquantities.com/tools/bubble-level/)

| Tool | What it does | Parameters |
|---|---|---|
| `describe_field_tool`Reads | **Describe this field tool** What the open field tool page does and how to use it: its purpose, what it needs (a phone's motion sensors, the rear camera, the microphone, a screen), where its readings stop being reliable, the steps to take a reading, its questions and answers, and the calculators its result feeds. For sensor tools this is what an agent can do: tell the person how to measure. Returns slug, title, group, summary, description, requires (hardware), limitation, howTo steps, faq, relatedCalculators (slugs) and the page link. | —`{}` |

### Tape calculator 1

For example [/tools/tape-calculator/](https://craftquantities.com/tools/tape-calculator/)

| Tool | What it does | Parameters |
|---|---|---|
| `add_tape_measurements`Reads | **Add and subtract tape measurements** The tape calculator's running total: feet, inches and fractions added and subtracted exactly in sixty-fourths of an inch (no decimal rounding), as the page's strip does, with the running total after each line, the total in decimal inches, decimal feet and millimetres, and optionally the marks that divide the total into equal spaces (rounded to 1/16 in, the last mark exact). Returns lines (each read and its running total), total as a tape reading, totalSixtyFourths (1/64 in), decimalInches (in), decimalFeet (ft), millimetres (mm), and marks (tape readings and exact inches) when spaces is given. | - `measurements`\* object\[\] The lines of the strip, in order. - `spaces` integer Divide the total into this many equal spaces and return the marks from the hook. `{"measurements":[{"value":"5' 3-7/8"},{"value":"11-5/16"},{"value":"2 1/4","subtract":true}],"spaces":4}` |

### Cut list 1

For example [/tools/cut-list/](https://craftquantities.com/tools/cut-list/)

| Tool | What it does | Parameters |
|---|---|---|
| `optimise_cut_list`Reads | **Optimise a cut list into stock lengths** The cut list optimiser's bar-by-bar cutting plan: from one stock length or several, a saw kerf charged on every cut and the pieces needed, the bars to buy of each length, what each bar is cut into, the offcut of each, the waste percent and the least stock any plan could use. Lengths in metres (kerf mm) or feet (kerf inches). A piece longer than the stock is listed, never split. Returns system, lengthUnit (m or ft) and kerf {value, unit}; buy (count of each stock length), bars (stock, cuts, used, offcut), stockCount, requiredLength, totalOffcut, longestOffcut, kerfTotal (all in lengthUnit), wastePercent (%), tooLong pieces, lowerBound, proven, gapPercent. | - `system` "metric" \| "imperial" metric: stock and pieces in m, kerf in mm; imperial: stock and pieces in ft, kerf in in. The person's own system when left out. - `stock`\* number\[\] The stock length or lengths on sale, in m (metric) or ft (imperial). - `kerf` number The saw blade's kerf, in mm (metric) or in (imperial); 3 mm or 1/8 in when left out. - `pieces`\* object\[\] The pieces needed. `{"system":"metric","stock":[6],"kerf":3,"pieces":[{"length":2.4,"quantity":5},{"length":1.8,"quantity":4}]}` |

### Mitre saw angle chart 1

For example [/tools/miter-saw-angle-chart/](https://craftquantities.com/tools/miter-saw-angle-chart/)

| Tool | What it does | Parameters |
|---|---|---|
| `read_miter_chart`Reads | **Read the mitre saw angle chart** The mitre saw angle chart's row for each corner given: the plain mitre each piece takes (degrees off square), the gap a 45° cut would leave on 18 mm and 3/4 in trim and which edge opens, and crown laid flat at 38/52 and 45/45 springs (mitre and bevel, degrees). Optionally the handing table: which way each piece is set at a square corner on a double-bevel saw. Returns rows per corner: angle (°), outsideThroughRoom (°), mitre (° off square), gapMm (mm at 18 mm trim) and gapIn (in at 3/4 in trim) for a 45° cut, insideOpens and outsideOpens, flat38 and flat45 crown {mitre, bevel} (°); handing rows when asked. | - `angles`\* number\[\] Corners by the angle their two faces include, degrees (90 is square; an outside corner by the solid's side). - `handing` boolean Also return the handing table for a square corner. `{"angles":[90,92.5,135]}` |

### Corner angle finder 2

For example [/tools/corner-angle-finder/](https://craftquantities.com/tools/corner-angle-finder/)

| Tool | What it does | Parameters |
|---|---|---|
| `compute_corner_from_bearings`Reads | **Work out a corner from two wall bearings** The corner angle finder's arithmetic on two readings the person took: the compass bearings (degrees) of the phone pressed flat on the left wall and on the right wall, facing the corner. Returns the corner through the room (under 180 inside, over 180 outside), the other side, the plain mitre each trim piece takes, and links that open the mitre and crown calculators filled with it. Returns kind (inside, outside, straight), throughRoom and otherSide (°), turn (° signed), mitreEachPiece (° off square) and links to the mitre and crown calculators filled with the angle. | - `bearingA`\* number The bearing read on the left wall (Wall A), degrees. - `bearingB`\* number The bearing read on the right wall (Wall B), degrees. - `swapped` boolean True when the right-hand wall was read first. `{"bearingA":10,"bearingB":280}` |
| `list_measured_corners`Reads | **List the corners the finder remembers** The corners the corner angle finder has kept on this device (newest first, up to twelve), each with the person's label and its angle through the room in degrees, and the plain mitre each piece takes. Read only: measuring a new corner needs the phone on the wall. Returns corners, each with id, label, throughRoom (°), kind, mitreEachPiece (° off square) and measuredAt (ISO time). | —`{}` |

### Roof pitch clinometer 1

For example [/tools/roof-pitch-clinometer/](https://craftquantities.com/tools/roof-pitch-clinometer/)

| Tool | What it does | Parameters |
|---|---|---|
| `convert_slope`Reads | **State a slope the clinometer's ways** The roof-pitch clinometer's readouts for a slope the person read or measured: degrees, grade in percent, rise per 12 of run (to the nearest half, as roof pitches are quoted) and 1 in N (drainage gradients; none when level or past 45°). Give the angle in degrees, or a rise and a run in the same unit. Returns degrees (°), gradePercent (%), risePerTwelve (rise per 12 of run, nearest half) and oneInN (null when level or past 45°). | - `degrees` number The slope's angle from level, degrees. - `rise` number The rise, in the same unit as the run (instead of degrees). - `run` number The horizontal run, in the same unit as the rise. `{"degrees":26.6}` |

### My tools 2

For example [/tools/my-tools/](https://craftquantities.com/tools/my-tools/)

| Tool | What it does | Parameters |
|---|---|---|
| `list_my_tools`Reads | **List the tools the person owns** The What I own checklist: every generic tool type the site knows (by category: measuring, cutting, fastening…), each with whether the person has marked it owned in this browser, narrowed by category, words or owned. Generic types only, never brands, and no prices. Returns ownedCount and tools, each with id, name, category, description, keySpec and owned. | - `category` one of 11 values Only this category. - `query` string Words that must appear in the tool's name or description. - `owned` boolean True: only the tools marked owned; false: only the ones not marked. `{"category":"measuring"}` |
| `set_tools_owned`Changes what is kept | **Mark tools owned or not owned** Ticks or unticks tools on the What I own checklist, through the checklist's own store, so the tool panels on calculators and My Company show them as owned. Call again with owned false to take a tick back. Returns owned (what was set), tools changed (id, name, category, owned) and ownedCount. | - `toolIds`\* string\[\] Tool ids, as list_my_tools gives them (tape-measure, wet-tile-saw…). - `owned`\* boolean True marks them owned; false unmarks them. `{"toolIds":["tape-measure"],"owned":true}` |

### Tool kit by trade 1

For example [/tools/trades/](https://craftquantities.com/tools/trades/)

| Tool | What it does | Parameters |
|---|---|---|
| `read_trade_kit`Reads | **Read a trade's tool kit** The tool kit page's kit for one trade (or the list of trades): each tool the trade's operations need with how strongly (essential, recommended, optional), the operations that use it and why, the cheaper alternative where one genuinely exists, the consumables (materials, not tools), the protective equipment and the stop-work notes. Generic tool types, no prices. Returns Without a trade: trades (trade, label, tool and operation counts). With one: trade, label, operations, tools (id, name, necessity, usedFor, alternative), consumables and ppe (items, notes with stopWork). | - `trade` one of 23 values The trade; every trade's name and tool count when left out. `{"trade":"carpentry"}` |

### Embed builder 2

For example [/embeds/](https://craftquantities.com/embeds/)

| Tool | What it does | Parameters |
|---|---|---|
| `list_embeddable_calculators`Reads | **Find calculators to embed** Searches the calculators the embed builder can put on another site, the way its search box narrows the list (every word in the title or address): each calculator's slug, title, category and one-line description, with the best match first. Returns total and matched counts and calculators (slug, title, category, description), the best match first. | - `query` string Words in the calculator's title ("tile floor", "drywall"); every calculator when left out. - `limit` integer At most this many (30 when left out). `{"query":"concrete slab","limit":5}` |
| `build_embed_code`Reads | **Build a calculator's embed code** Writes the embed code the /embeds/ builder writes for the choices given: the iframe of one calculator (full, compact or mini format), its theme, width, height in px, pinned units, heading, the credit link (plain or nofollow, never hidden) and optionally the auto-fit script; compact and mini can show chosen inputs. Returns the snippet to paste, the frame's address and the builder link with the calculator chosen. Nothing is changed or sent. Returns calculator (slug, title, category), the choices applied (format, theme, width, height {value, px}, units, heading, credit, autoResize, inputsShown, inputsOffered), snippet (the HTML to paste), frameUrl and builderUrl. | - `calculator`\* string The calculator's slug, or words of its title (the best match is taken). - `format` "full" \| "compact" \| "mini" The whole calculator, a compact card, or a mini sidebar box. - `theme` "auto" \| "light" \| "dark" The frame's colours: the reader's setting, light or dark. - `width` string A CSS width: "100%" or pixels such as "720px"; the format's first width when left out. - `height` integer The frame's starting height, px; the format's own when left out. - `units` "auto" \| "metric" \| "imperial" Pin the unit system, or leave it to the reader's locale (auto). - `heading` boolean False leaves out the frame's own heading. - `autoResize` boolean Append the short auto-fit script that sizes the frame to its content. - `credit` "standard" \| "nofollow" How the visible credit link is written: plain, or with rel=nofollow. - `inputs` string\[\] Compact and mini only: the input ids the card shows (at most 4 compact, 2 mini); the builder's own choice when left out. `{"calculator":"concrete-calculator","format":"full","theme":"light","width":"720px"}` |

### Settings 2

For example [/settings/](https://craftquantities.com/settings/)

| Tool | What it does | Parameters |
|---|---|---|
| `read_site_settings`Reads | **Read this browser's settings** Every setting the Settings page shows for this browser: units, market and currency label, light or dark, the waste allowance tier (percent), the public holiday calendar, the clinometer's slope unit, whether typed prices are logged in the price journal, the estimate sheet's labour columns and row height, single-key shortcuts, and how many recent pages, stars and reading positions are kept. Returns settings: units, market (country, currency label), scheme, wasteTier (id, label, wastePercent %), holidayCalendar, slopeUnit, priceAutolog, sheetLabour, sheetDensity, singleKeys and the counts kept (recent, starred, reading, level calibration date). | —`{}` |
| `update_site_settings`Changes what is kept | **Change this browser's settings** Changes Settings-page preferences through the page's own setters: the waste allowance tier every calculator's waste field starts at, the public holiday calendar, the clinometer's slope unit, logging typed prices in the price journal, the estimate sheet's labour columns and row height, single-key shortcuts; and clears the kept lists the page offers to clear (recent pages, stars, reading positions, the level's calibration), which cannot be undone. Units, market and light or dark are set_preferences. Returns changed (what was set or cleared, in words) and settings as read_site_settings returns them after the change. | - `wasteTier` "diy" \| "professional" \| "contractor" The waste allowance tier (diy 15 %, professional 10 %, contractor 5 %). - `holidayCalendar` "US" \| "CA" \| "UK-EAW" \| "UK-SCT" \| "UK-NIR" \| "AU" The public holiday calendar drawn under the project desk's calendar. - `slopeUnit` "deg" \| "grade" \| "pitch" \| "ratio" The form the roof-pitch clinometer states a slope in first: degrees, grade percent, rise per 12, or 1 in N. - `priceAutolog` boolean Log prices typed anywhere on the site in the price journal. - `sheetLabour` boolean Show the hours and labour columns on My Project's estimate sheet. - `sheetDensity` "comfortable" \| "compact" The estimate sheet's row height. - `singleKeys` boolean Single-key shortcuts (/ opens search, ? lists the keys). - `clear` "recent-pages" \| "starred-pages" \| "reading-positions" \| "level-calibration"\[\] Kept lists to clear from this browser; cannot be undone. `{"wasteTier":"professional","slopeUnit":"pitch"}` |

## Guides, references and examples

### The guides 1

For example [/guides/](https://craftquantities.com/guides/)

| Tool | What it does | Parameters |
|---|---|---|
| `list_guides`Reads | **List the how-to guides** Lists the site's how-to guides (trade practice around the calculators: what happens on site, in what order, what goes wrong), filtered by words and by trade, with each guide's summary, trade, publication date and page address. Returns The matching guides (title, summary and page address of each), how many match and how many there are, a page at a time. | - `query` string Words to match in the guides' titles and summaries; every one of them must appear. All guides when left out. - `limit` integer How many guides to return (25 when left out). - `offset` integer How many matching rows to skip, for the next page (0 when left out). - `trade` one of 89 values Only the guides filed under this trade. `{"limit":5}` |

### Every guide 2

For example [/guides/how-to-build-a-deck/](https://craftquantities.com/guides/how-to-build-a-deck/)

| Tool | What it does | Parameters |
|---|---|---|
| `read_guide`Reads | **Read the guide: Building a Timber Deck** The open how-to guide (Building a Timber Deck) as structured content: every section in order with its paragraphs, numbered steps and tables, the materials checklist, the calculators it uses, the field tools it names, its neighbouring guides and its sources as written. run_guide_chain works its calculation on your measurements. Returns The guide: heading, summary, trade, dates, sections (paragraphs, steps, tables, drawing layers, calculators set in the text), the materials checklist, calculators, field tools, neighbouring guides and sources (text and any address), all with page links. | —`{}` |
| `run_guide_chain`Reads | **Work the guide's calculation: Deck** Works the open guide's "Try the calculation" block (Deck) on your measurements, as the block does: each calculator of the chain in order, every material with its waste and order quantity and every figure the next step uses, in metric and US customary, with the person-hours the operations take and the link that opens the block on these figures. No prices. Returns The chain run: each measurement used (value, unit, whether it is yours or the guide's), each row (material or figure) with its quantity and unit in both systems and order quantity, labour hours by operation, sources per calculator and the page link that reopens the block on these figures. | - `measurements` object The job's measurements by id; each one left out keeps the guide's own figure. - `system` "metric" \| "imperial" Which unit system the answer leads with; both come back either way. `{}` |

### The glossary 1

For example [/glossary/](https://craftquantities.com/glossary/)

| Tool | What it does | Parameters |
|---|---|---|
| `list_glossary_terms`Reads | **List the cross-market glossary** Lists the cross-market construction glossary's concepts (one thing under its US, UK, Canadian and Australian names, such as plasterboard / drywall), filtered by words and by family, with each concept's page address. Returns The matching glossary terms (title, summary and page address of each), how many match and how many there are, a page at a time. | - `query` string Words to match in the glossary terms' titles and summaries; every one of them must appear. All glossary terms when left out. - `limit` integer How many glossary terms to return (25 when left out). - `offset` integer How many matching rows to skip, for the next page (0 when left out). - `family` "materials" \| "structure" \| "envelope" \| "finishes" \| "services" \| "site" \| "measurement" Only the concepts in this family of the glossary. `{"limit":5}` |

### Every glossary term 1

For example [/glossary/plasterboard/](https://craftquantities.com/glossary/plasterboard/)

| Tool | What it does | Parameters |
|---|---|---|
| `read_glossary_term`Reads | **Read the glossary concept: Plasterboard / drywall** The open glossary concept (Plasterboard / drywall): its one definition, what each market calls it with trade slang and how exact the equivalence is (identical, close, false friend, absent), the standards that govern it by market, where markets collide, the calculators that count it and related concepts. Returns The concept: definition, names per market (term, slang, exactness, note), every alias, standards per market with what each governs, market collisions as questions and answers, calculators and related concepts with page links. | —`{}` |

### The worked examples 1

For example [/examples/](https://craftquantities.com/examples/)

| Tool | What it does | Parameters |
|---|---|---|
| `list_worked_examples`Reads | **List the whole-job worked examples** Lists the whole-job worked examples (a real or modelled job — a bathroom retiled, a deck built — worked calculator by calculator), filtered by words and by family, with each job, market, basis, step count and page address. Returns The matching worked examples (title, summary and page address of each), how many match and how many there are, a page at a time. | - `query` string Words to match in the worked examples' titles and summaries; every one of them must appear. All worked examples when left out. - `limit` integer How many worked examples to return (25 when left out). - `offset` integer How many matching rows to skip, for the next page (0 when left out). - `family` "interiors" \| "roofing" \| "groundworks" \| "landscaping" \| "outdoor" \| "electrical" Only the examples on this shelf of the hub. `{"limit":5}` |

### Every worked example 2

For example [/examples/attached-deck-built/](https://craftquantities.com/examples/attached-deck-built/)

| Tool | What it does | Parameters |
|---|---|---|
| `read_worked_example`Reads | **Read the worked example: 12 × 16 Deck Materials List, Worked Step by Step** The open worked example (12 × 16 Deck Materials List, Worked Step by Step): the job, whether it is recorded or modelled, every measurement and how it was taken, the calculators in order with what each needs, produces and the figure the page pins, waste factors with reasons, what happened on site where recorded, where the estimate is most likely wrong, and its FAQ. Returns The example: job, basis (recorded or modelled), market, measurements (value as written and how taken), steps (calculator with page link, needs, produces, the pinned figure), waste factors, actuals, likely variance, FAQ, takeoff and guide links. | —`{}` |
| `run_worked_example`Reads | **Re-run the worked example: 12 × 16 Deck Materials List, Worked Step by Step** Re-runs the open worked example (12 × 16 Deck Materials List, Worked Step by Step) as its "Change the figures" panel does: your job figures (Deck length, along the house, Deck width, out from the house) and any single step input carried down the whole chain, each step beside the published figure with the difference, in both unit systems, with the lines and offered hours it would add to a project. No prices. Returns The re-run: each job figure (yours or published, both unit systems), each step with its answer and the published one and the difference, the project lines with quantities, units and offered person-hours, and the page link that reopens the panel on these figures. | - `figures` object The job's figures by id; one left out keeps the example's own. - `inputs` object Single step inputs, keyed "<step index>.<input id>" as read_worked_example lists the steps (from 0), such as {"3.wastePercent": 10}; a measured one with its unit ("2.4 m"). `{}` |

### The calculator examples 1

For example [/examples/calculators/](https://craftquantities.com/examples/calculators/)

| Tool | What it does | Parameters |
|---|---|---|
| `list_calculator_examples`Reads | **List the calculator examples** Lists the one-calculator worked examples (a real job run through one calculator, such as a 40 sq ft bathroom floor tiled), filtered by words and by market, with each job, its calculator, the printed answer and page address. Returns The matching calculator examples (title, summary and page address of each), how many match and how many there are, a page at a time. | - `query` string Words to match in the calculator examples' titles and summaries; every one of them must appear. All calculator examples when left out. - `limit` integer How many calculator examples to return (25 when left out). - `offset` integer How many matching rows to skip, for the next page (0 when left out). - `market` "US" \| "UK" \| "CA" \| "AU" Only the examples written for this market. `{"limit":5}` |

### Every calculator example 2

For example [/examples/calculators/bathroom-floor-tile-40-sq-ft/](https://craftquantities.com/examples/calculators/bathroom-floor-tile-40-sq-ft/)

| Tool | What it does | Parameters |
|---|---|---|
| `read_calculator_example`Reads | **Read the calculator example: A small bathroom floor, in tiles and boxes** The open calculator example (Floor tile for a {in.area\|p} bathroom in a plank tile laid in an offset bond): the scenario, every input the job sets and why, the headline and each breakdown line in both unit systems, what each step of the calculator does, what to order, the waste, the common mistake, what changes when the job changes, the FAQ and the sources. Returns The example: job, market and unit system, the calculator (page link, version, date checked), each input (value in both systems, why), the headline and breakdown lines as printed in both systems, steps, what to order, waste, the mistake, variants, FAQ, next calculators and sources. | —`{}` |
| `run_calculator_example`Reads | **Run the example's job again: A small bathroom floor, in tiles and boxes** Runs the open calculator example's job (Floor tile for a {in.area\|p} bathroom in a plank tile laid in an offset bond) through Floor & Wall Tile Calculator again with the inputs you change over the example's own, exactly as the calculator page computes it, and returns the answer in metric and US customary with every input used, the breakdown, sources and the page link. Quantities only: no prices. Returns The calculator's answer on the example's inputs with yours over them: inputs used (with where each came from), the headline and breakdown in metric and US customary, confidence, sources and the page link that opens the calculator on them. | - `inputs` object The inputs to change, by the calculator's input id; each one left out keeps the example's own value. `{}` |

### The formula library 1

For example [/formulas/](https://craftquantities.com/formulas/)

| Tool | What it does | Parameters |
|---|---|---|
| `list_formula_families`Reads | **List the formula library's families** Lists the open formula library's families (volume from geometry, coverage and spread rate, spacing and count, stairs, roof pitch, unit conversions…), filtered by words, with each family's formulas, their equations and the family page address. Returns The matching formula families (title, summary and page address of each), how many match and how many there are, a page at a time. | - `query` string Words to match in the formula families' titles and summaries; every one of them must appear. All formula families when left out. - `limit` integer How many formula families to return (25 when left out). - `offset` integer How many matching rows to skip, for the next page (0 when left out). `{"limit":5}` |

### Every formula family 2

For example [/formulas/volume-from-geometry/](https://craftquantities.com/formulas/volume-from-geometry/)

| Tool | What it does | Parameters |
|---|---|---|
| `read_formula_family`Reads | **Read the formula family: Volume from geometry** The open formula family (Volume from geometry): every equation in plain notation, MathML and a portable machine expression, what each variable means with its metric and US customary unit, the calculators that run it, the test vectors that hold it to them, the sources, the limits and the open licence. evaluate_formula works one. Returns The family: each formula (name, what it gives, plain equation, machine expression, MathML, output and inputs with symbol, meaning and metric / US customary units, calculators with page links, vector count, anchor link), its limits, sources with addresses, and the licence. | —`{}` |
| `evaluate_formula`Reads | **Evaluate a formula: Volume from geometry** Evaluates one equation of the open formula family (Volume from geometry) on the values you give, in metric or US customary units, with the same expression the library publishes and its calculators are tested against; returns the result in both unit systems with the equation and the variables used. Arithmetic only: no rounding to stock sizes, no waste. Returns The result in metric and US customary units (value and unit each), the formula (id, name, equation, expression), each input as given and in metric, and the formula's anchor link. | - `formula`\* "rectangular-prism-volume" \| "cylinder-volume" Which equation of this family, by its id (read_formula_family lists them with their variables). - `values`\* object Each input variable's value by its id, in the unit of the system chosen (metric: m, m², m³, L, kg…; US customary: ft, ft², ft³, US gal, lb…). - `system` "metric" \| "imperial" Which unit system the answer leads with; both come back either way. `{"formula":"rectangular-prism-volume","values":{"L":3,"W":3,"D":0.1},"system":"metric"}` |

### Verification history 1

For example [/verification/](https://craftquantities.com/verification/)

| Tool | What it does | Parameters |
|---|---|---|
| `read_verification_history`Reads | **Read the verification history** The site's public verification history: how many calculators, test vectors, cited and sole-source calculators and revisions there are, calculators published and revised month by month, and every correction with when it was found and by whom. Returns The totals (calculators, vectors, cited, sole-source, revisions, corrections, formulas), who found the corrections, each month's published / revised / corrections counts, and every correction (id, date found, by whom, title, link). | —`{}` |

### The methodology papers 2

For example [/methodology/](https://craftquantities.com/methodology/)

| Tool | What it does | Parameters |
|---|---|---|
| `list_methodology_papers`Reads | **List the methodology papers** Lists the methodology papers (why each formula the calculators run is the formula: volume, coverage, spacing, loads, unit rates…), filtered by words and by group, with each paper's summary, equation and section counts and page address. Returns The matching methodology papers (title, summary and page address of each), how many match and how many there are, a page at a time. | - `query` string Words to match in the methodology papers' titles and summaries; every one of them must appear. All methodology papers when left out. - `limit` integer How many methodology papers to return (25 when left out). - `offset` integer How many matching rows to skip, for the next page (0 when left out). - `group` one of 9 values Only the papers on this shelf of the methodology hub. `{"limit":5}` |
| `read_labour_rate_sources`Reads | **Read the labour rate source cards** The labour source cards behind every offered hour on the site: each operation's person-hours per unit as a band (low, likely, high), the unit, the typical crew, the basis and source wording (trade rule of thumb or arithmetic, and how far to trust it) and what moves a job to the slow or fast end. Hours only: never money. Returns The source cards: per operation the person-hours per unit band (low, likely, high), the unit, crew and crew size, the basis and its confidence in words, the source wording, what moves it and how many calculators it is attached to; with the table's link. | - `operation` string Words to match in the operation ("hanging plasterboard", "block", "paint"); every operation when left out. - `limit` integer How many operations to return (60 when left out). `{"operation":"plasterboard"}` |

### Every methodology paper 1

For example [/methodology/volume-from-geometry/](https://craftquantities.com/methodology/volume-from-geometry/)

| Tool | What it does | Parameters |
|---|---|---|
| `read_methodology`Reads | **Read the methodology paper: Volume from Geometry, and the Order That Follows** The open methodology paper (Volume from Geometry, and the Order That Follows): each section's text in order, each equation with its plain-language reading, what every symbol stands for and its MathML, the calculators and field tools that use the method, and the sources it is drawn from. Returns The paper: title, group, summary, sections (paragraphs; each equation's reading, symbols and MathML), the calculators and field tools that use it and its sources (text and any address), with page links. | —`{}` |

### The comparisons 1

For example [/compare/](https://craftquantities.com/compare/)

| Tool | What it does | Parameters |
|---|---|---|
| `list_comparisons`Reads | **List the material and method comparisons** Lists the site's comparisons (one decision between two ways of building, such as bagged concrete vs ready-mix or LVP vs tile), filtered by words and by family, with the two calculators weighed and each page address. Returns The matching comparisons (title, summary and page address of each), how many match and how many there are, a page at a time. | - `query` string Words to match in the comparisons' titles and summaries; every one of them must appear. All comparisons when left out. - `limit` integer How many comparisons to return (25 when left out). - `offset` integer How many matching rows to skip, for the next page (0 when left out). - `family` "foundations" \| "structure" \| "roofing" \| "envelope" \| "insulation" \| "mechanical" \| "flooring" \| "site" Only the comparisons in this family of decisions. `{"limit":5}` |

### Every comparison 2

For example [/compare/lvp-vs-tile/](https://craftquantities.com/compare/lvp-vs-tile/)

| Tool | What it does | Parameters |
|---|---|---|
| `read_comparison`Reads | **Read the comparison: LVP vs Tile Flooring** The open comparison (LVP vs Tile Flooring): the question it answers, the factors side by side for Luxury vinyl plank and Ceramic / porcelain tile, when to choose each, its FAQ and the two calculators that count each side. Returns The comparison: question, summary, intro, both sides (label, calculator with page link), the factors side by side, when to choose each, and its FAQ. | —`{}` |
| `run_comparison_on_job`Reads | **Work both sides on one job: LVP vs Tile Flooring** Works both sides of the open comparison (Luxury vinyl plank and Ceramic / porcelain tile) on one job, as the page's "both on one job" workspace does: each calculator on the job's figures, each side's answer, allowance, weight and person-hours in both unit systems, the difference in the measure both share, and where the choice flips as one job figure sweeps. No prices. Returns Both sides on the job: the job's fields (yours or the page's), each side's answer in both unit systems, allowance, weight in kg and person-hours, the shared measure and the difference, the sweep with the crossings, and calculator links. | - `job` object The job's figures by field key, each measured one with its unit ("6 m", {"value": 20, "unit": "ft"}); fields left out keep the page's opening job. A wrong key is refused with the keys this comparison takes. - `sweep` string The numeric job field to sweep to find where the choice flips; the page's own when left out. - `system` "metric" \| "imperial" Which unit system the answer leads with; both come back either way. `{}` |

### The diagnostics 2

For example [/diagnostics/](https://craftquantities.com/diagnostics/)

| Tool | What it does | Parameters |
|---|---|---|
| `list_diagnostics`Reads | **List the fault diagnoses** Lists the fault diagnoses (a symptom on site — paint peeling off new plaster, a breaker that trips — with its candidate causes and checks in order), filtered by words and by family, with cause and check counts and each page address. Returns The matching diagnoses (title, summary and page address of each), how many match and how many there are, a page at a time. | - `query` string Words to match in the diagnoses' titles and summaries; every one of them must appear. All diagnoses when left out. - `limit` integer How many diagnoses to return (25 when left out). - `offset` integer How many matching rows to skip, for the next page (0 when left out). - `family` "finishes" \| "services" \| "envelope" Only the diagnoses in this family. `{"limit":5}` |
| `find_diagnosis_for_symptom`Reads | **Find the diagnosis for a symptom** Matches a symptom described in your own words (what you see, hear or smell, and where) to the site's fault diagnoses and the structural warning signs, and returns the best match's candidate causes, what tells each apart, the checks in order and when to call a professional. Never a verdict. Returns Whether the match is clear, ambiguous or none, each matched diagnosis (symptom, causes with likelihood and how to tell them apart, checks in order, when to call a professional, page link) and other candidates. | - `symptom`\* string The symptom in your own words, 3 to 300 characters. - `limit` integer How many diagnoses (more when the words fit several) to return (1 when left out). `{"symptom":"paint peeling off new plaster"}` |

### Every diagnosis 1

For example [/diagnostics/paint-peeling-off-new-plaster/](https://craftquantities.com/diagnostics/paint-peeling-off-new-plaster/)

| Tool | What it does | Parameters |
|---|---|---|
| `read_diagnostic`Reads | **Read the diagnosis: The paint is peeling off my new plaster** The open fault diagnosis (The paint is peeling off my new plaster): its candidate causes with likelihood, the observation that tells each apart and the one check for each, the checks in the order to make them and why, the calculators involved, and when to call a professional. Candidates to check, never a verdict. Returns The diagnosis: symptom, verdict line, intro, causes (likelihood, distinguishing observation, check), the checks in order with why, when to call a professional, calculators and related diagnoses with page links. | —`{}` |

### When to call an engineer 1

For example [/diagnostics/when-to-call-an-engineer/](https://craftquantities.com/diagnostics/when-to-call-an-engineer/)

| Tool | What it does | Parameters |
|---|---|---|
| `read_structural_warning_signs`Reads | **Read the structural warning signs** The open page of structural warning signs (when to call an engineer): each sign, what it looks like, why it is a load-path question rather than a finish one, and how urgent it is. It never says a sign is safe and never replaces an assessment. Returns Every structural warning sign: its id, symptom, what it looks like, why it is structural, its urgency and its anchor link on the page. | —`{}` |

### The materials 1

For example [/materials/](https://craftquantities.com/materials/)

| Tool | What it does | Parameters |
|---|---|---|
| `list_material_hubs`Reads | **List the material hubs** Lists the material hubs (one page per material — concrete, drywall, lumber, roofing, paint… — gathering its calculators, takeoffs, examples, guides and how each market sells it), filtered by words, with each hub's page address. Returns The matching material hubs (title, summary and page address of each), how many match and how many there are, a page at a time. | - `query` string Words to match in the material hubs' titles and summaries; every one of them must appear. All material hubs when left out. - `limit` integer How many material hubs to return (25 when left out). - `offset` integer How many matching rows to skip, for the next page (0 when left out). `{"limit":5}` |

### Every material 1

For example [/materials/concrete/](https://craftquantities.com/materials/concrete/)

| Tool | What it does | Parameters |
|---|---|---|
| `read_material_hub`Reads | **Read the material hub: Concrete** The open material hub (Concrete): the overview, how each market orders and measures it, the calculators grouped by job with why each, the takeoffs, Solve Backwards pages, worked examples, reference tables, guides, glossary terms, methods and standards for it, and its FAQ. Returns The hub: overview sections, how each market orders and measures the material, start-here calculator, calculators grouped by job with reasons, takeoffs, Solve Backwards pages, examples, reference tables, guides, glossary, methods, standards and FAQ, every row with its page link. | —`{}` |

### Solve Backwards 1

For example [/solve-backwards/](https://craftquantities.com/solve-backwards/)

| Tool | What it does | Parameters |
|---|---|---|
| `list_solve_backwards_pages`Reads | **List the Solve Backwards pages** Lists the Solve Backwards pages (I have this much material: how big a room, deck or slab does it cover?), filtered by words and by family, with each page's question, material, calculator and page address. Returns The matching Solve Backwards pages (title, summary and page address of each), how many match and how many there are, a page at a time. | - `query` string Words to match in the Solve Backwards pages' titles and summaries; every one of them must appear. All Solve Backwards pages when left out. - `limit` integer How many Solve Backwards pages to return (25 when left out). - `offset` integer How many matching rows to skip, for the next page (0 when left out). - `family` "coatings" \| "sheets" \| "rolls" \| "bulk" \| "pieces" \| "water" Only the pages in this family. `{"limit":5}` |

### Every Solve Backwards page 2

For example [/solve-backwards/wall-paint/](https://craftquantities.com/solve-backwards/wall-paint/)

| Tool | What it does | Parameters |
|---|---|---|
| `read_solve_backwards_page`Reads | **Read the Solve Backwards page: How much wall will my paint cover?** The open Solve Backwards page (How much wall will my paint cover?): what it solves for, the calculator it runs backwards, the amounts it works through in each unit system, its three readings and its FAQ. run_solve_backwards answers it for the amount you have. Returns The page: question, material, what it sizes, the calculator (page link), what you give it (kind, unit, opening amount and the amounts it tabulates, both systems), its readings and FAQ. | —`{}` |
| `run_solve_backwards`Reads | **Solve backwards: How much wall will my paint cover?** Answers the open Solve Backwards page for the amount you have (how much wall paint you have, with its unit (a volume)): the area it covers and the room size in metric and US customary, with the calculator's waste taken off, the assumptions it used and links that open the page and the calculator on the answer. Returns The answer: what you have as read, whether the calculator reached it, the area in m² and sq ft, the size in metres and feet, the typical case, the chain of reasoning, the forwards check, assumptions and page links. | - `have`\* string \| number \| {value, unit} How much you have, with its unit ("20 l"); a bare number is in the page's own unit for the system. - `system` "metric" \| "imperial" Which unit system the answer leads with; both come back either way. - `settings` object The calculator's other inputs by id, each with its unit, where they differ from its own settings. `{"have":20,"system":"metric"}` |

### The academy 1

For example [/academy/](https://craftquantities.com/academy/)

| Tool | What it does | Parameters |
|---|---|---|
| `list_academy_paths`Reads | **List the academy learning paths** Lists the academy's learning paths (an ordered run of guides, calculators and field tools for one role, such as concrete basics), filtered by words and by shelf, with each path's audience, summary, length in minutes and page address. Returns The matching learning paths (title, summary and page address of each), how many match and how many there are, a page at a time. | - `query` string Words to match in the learning paths' titles and summaries; every one of them must appear. All learning paths when left out. - `limit` integer How many learning paths to return (25 when left out). - `offset` integer How many matching rows to skip, for the next page (0 when left out). - `shelf` "Groundwork and structure" \| "Interiors and finishing" \| "Envelope and roofing" \| "Estimating and running a job" Only the paths on this shelf of the academy. `{"limit":5}` |

### Every academy path 1

For example [/academy/concrete-basics/](https://craftquantities.com/academy/concrete-basics/)

| Tool | What it does | Parameters |
|---|---|---|
| `read_academy_path`Reads | **Read the learning path: Concrete basics** The open academy learning path (Concrete basics): who it is for, what you will be able to do, and every step in order (a guide to read, a calculator to run or a field tool to try) with why it comes there, its minutes and its page address. Returns The path: title, audience, shelf, summary, intro, outcomes and its steps in order (kind, title, page address, minutes, whether a demo is drawn, why), with total minutes. | —`{}` |

### The standards 1

For example [/standards/](https://craftquantities.com/standards/)

| Tool | What it does | Parameters |
|---|---|---|
| `list_standards`Reads | **List the standards and codes** Lists the standards and model codes the calculators cite (IRC, ACI 318, BS EN…), filtered by words and by publishing body, with each document's scope, how many calculators cite it and its page address. Returns The matching standards (title, summary and page address of each), how many match and how many there are, a page at a time. | - `query` string Words to match in the standards' titles and summaries; every one of them must appear. All standards when left out. - `limit` integer How many standards to return (25 when left out). - `offset` integer How many matching rows to skip, for the next page (0 when left out). - `body` one of 10 values Only the documents of this publishing body. `{"limit":5}` |

### Every standards page 1

For example [/standards/icc/irc/](https://craftquantities.com/standards/icc/irc/)

| Tool | What it does | Parameters |
|---|---|---|
| `read_standard`Reads | **Read the standard: International Residential Code** The open standards page (International Residential Code): its scope, editions and revision cycle, where it applies, the publisher and where to get it, every calculator on the site that cites it with the sections each cites, and the editions the site's citations name. Adoption is local: never a statement that it applies to your job. Returns The document: title, publishing body (name, abbreviation, role), scope, editions, cycle, region, the publisher's address, editions the site cites, each citing calculator with the sections it cites and page link, and calculators per section. | —`{}` |

### The reference tables 1

For example [/reference/](https://craftquantities.com/reference/)

| Tool | What it does | Parameters |
|---|---|---|
| `list_reference_tables`Reads | **List the reference tables** Lists the site's reference tables (copper conductor ampacity, bulk densities of materials, production rates by operation…), filtered by words and by family, with each table's summary, row count and page address. Returns The matching reference tables (title, summary and page address of each), how many match and how many there are, a page at a time. | - `query` string Words to match in the reference tables' titles and summaries; every one of them must appear. All reference tables when left out. - `limit` integer How many reference tables to return (25 when left out). - `offset` integer How many matching rows to skip, for the next page (0 when left out). - `family` one of 18 values Only the tables in this family. `{"limit":5}` |

### Every reference table 2

For example [/reference/labour/production-rates/](https://craftquantities.com/reference/labour/production-rates/)

| Tool | What it does | Parameters |
|---|---|---|
| `read_reference_table`Reads | **Read the reference table: Production rates by operation** The open reference table (Production rates by operation): its columns with their units, its rows (filtered by words if you like) with each value, band or text, the source kind and wording of each row and its note, what the table leaves out, and the calculators whose data it is. Returns The table: columns (key, label, unit), matching rows (raw cells as point / band / text, the printed value per column, source kind and wording, note), counts, what it leaves out and the calculators that use it with page links. | - `rows` string Words to match in a row (its id, cells or note); every row when left out. - `limit` integer How many rows to return (200 when left out). `{"limit":20}` |
| `read_labour_rate_sources`Reads | **Read the labour rate source cards** The labour source cards behind every offered hour on the site: each operation's person-hours per unit as a band (low, likely, high), the unit, the typical crew, the basis and source wording (trade rule of thumb or arithmetic, and how far to trust it) and what moves a job to the slow or fast end. Hours only: never money. Returns The source cards: per operation the person-hours per unit band (low, likely, high), the unit, crew and crew size, the basis and its confidence in words, the source wording, what moves it and how many calculators it is attached to; with the table's link. | - `operation` string Words to match in the operation ("hanging plasterboard", "block", "paint"); every operation when left out. - `limit` integer How many operations to return (60 when left out). `{"operation":"plasterboard"}` |

## When tools appear

1. The page loads and hydrates as it always does; nothing about WebMCP is in its first download.
2. It checks once for `document.modelContext`. Without it, the check is the whole cost and nothing more is loaded.
3. Where it exists, the page loads its tool module and calls `registerTool` for each tool, with an abort signal.
4. Leaving the page, or switching it to another calculator or plan, aborts that signal, and the browser drops the tools.

## What a tool may change

Reading tools are marked read-only. A tool that changes what is kept, such as adding a wall on the canvas or a line to a project, is marked consequential, works on the reader’s own copy in that tab through the page’s own controls and, where the page has Undo, lands as one step it takes back. No tool does anything the page itself cannot, and none sends anything off the device: the calculations run in the page, as they do when the reader types.

An assistant outside the browser cannot reach these tools. For that, connect it to the [remote MCP server](https://craftquantities.com/developers/mcp/), which offers the same calculators without a page.

## Checking for it

WebMCP is a draft of the W3C Web Machine Learning Community Group, available in Chrome as a preview. A quick check in the browser console says whether the current browser offers it:

_In the console_

```
"modelContext" in document
```

Older previews placed the API on `navigator`; the pages follow the draft and read it from the document only.

On this page

At a glance

**Page tools**

199

**Kinds of page**

54

**Browser API**

`document.modelContext`

**Every change**

Undo

Addresses

- MCP`api.craftquantities.com/mcp`
- REST`api.craftquantities.com/v1`
- Files`craftquantities.com/api/v1`
- OpenAPI [api.craftquantities.com/openapi.json](https://api.craftquantities.com/openapi.json)

Check before you build

- [How the maths is checked](https://craftquantities.com/validation/)
- [The vectors as a benchmark](https://craftquantities.com/benchmark/)
- [Service status](https://craftquantities.com/status/)
- [Embed a calculator instead](https://craftquantities.com/embeds/)

[Home](https://craftquantities.com/)

Developers

Developers & integrations

- [Overview and live call](https://craftquantities.com/developers/)
- [API reference](https://craftquantities.com/developers/api-reference/)
- [Static JSON API](https://craftquantities.com/api/)
- [Remote MCP server](https://craftquantities.com/developers/mcp/)
- [npm package](https://craftquantities.com/developers/npm/)
- [Command line](https://craftquantities.com/developers/cli/)
- [WebMCP in the browser](https://craftquantities.com/developers/webmcp/)
- [Claude and ChatGPT](https://craftquantities.com/ai/)
- [Embeds and WordPress](https://craftquantities.com/embeds/)
- [Browser extension](https://craftquantities.com/tools/browser-extension/)
- [Changelog](https://craftquantities.com/developers/changelog/)
- [Service status](https://craftquantities.com/status/)

On this page

- Tools by page
- On every page
- Calculators and takeoffs
- Planners and studios
- My Project
- Quotes
- Company, prices and field tools
- Guides, references and examples
- When tools appear
- What a tool may change
- Checking for it

---
Source: https://craftquantities.com/developers/webmcp/
Craft Quantities: free to read, cite and link to; the pages are not licensed for republication. Quantities only: no prices, no design and no certification.
