OpenTakeoff

v1.0.0
io.github.Kentucky-ai/opentakeoff Checked 19 hours ago Published 16 hours ago

Construction takeoff for AI agents: load plans, set scale, measure, count, export with provenance.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

assistant_open

Open the OpenTakeoff Assistant window: the person can then talk to YOU from inside the OpenTakeoff canvas (opentakeoff.kentucky-ai.com) instead of only here. Starts a private link on 127.0.0.1 and returns a one-time pairing `code` and a `link`. Give the person the link (or the 6-letter code to type into the canvas's Assistant window), then call assistant_listen and keep calling it: each message they type arrives as its result; do the work with the other tools, answer with assistant_say, then listen again. Call it when the person asks for the OpenTakeoff assistant/window, or says "listen" after…

assistant_listen

Wait for the person's next message in the OpenTakeoff Assistant window (after assistant_open). Returns status "message" with their text — do what they ask (with the other tools), reply with assistant_say, then call assistant_listen again. Status "timeout" = nothing typed yet: call assistant_listen again right away, saying nothing to the person. Status "sleep" = 10 quiet minutes: stop listening and tell the person in one line to say "listen" when they want you back (then call assistant_open, which reconnects without a new code).

ParameterTypeDescription
wait_sintegerSeconds to wait (default 45, max 240). Keep it under your client's tool timeout.

assistant_say

Show your reply in the OpenTakeoff Assistant window (Markdown). Use it for every answer to a message that came through assistant_listen — the person is reading the window, not this chat. Then call assistant_listen again.

ParameterTypeDescription
text *stringYour reply, Markdown

load_plan

Open a plan PDF from disk. Default: replace the whole session (previous documents, scales, conditions, and shapes are cleared). merge: true ADDS the document to the working set instead (#152) — a bid set is plans + schedule + addenda, not one PDF — keeping every scale, condition, and shape; sheet keys carry file names so documents never collide, the sheet graph spans the whole set (resolve_tag can chain a plan tag on one file to a schedule row in another), and the marked set covers every worked sheet. Re-loading an already-merged file is refused — reload = replace, deliberately. Returns…

ParameterTypeDescription
path *stringPath to a plan PDF on disk
mergebooleantrue = ADD this document to the working set, keeping all existing work (merge into an empty session is just a load)

sheet_info

Sheet detail: dims (px and pt), vector segment count, whether the sheet has vector linework (measure_polygon runs on it; get_sheet_vectors returns the strokes), scale status, the detected scale suggestion, and this sheet's committed shape count. Coordinates are image px at render scale 2.0: PDF pt × 2, origin top-left, y down (the browser canvas's native space). Sheet payloads carry dims in both px and pt.

ParameterTypeDescription
sheet *stringSheet key ("plan.pdf", "plan.pdf#2") or title-block number ("A-101")

set_scale

Set a sheet's scale — exactly ONE of: label (a standard scale, e.g. '1/4" = 1'-0"'), upp (real feet per image px), calibrate (two points along a known dimension plus its real feet), or use_detected (adopt the drawn scale note read off the sheet). The detected scale is never applied automatically — setting it is always this explicit call. Changing an existing scale recomputes measurements and cutout restore quantities from geometry and records one undo_last step. Counts are unchanged. Human-reviewed dimensional work must be recalibrated in the canvas; scales must be finite and positive. Coo…

ParameterTypeDescription
sheet *string
calibrateobjectTwo points (image px) a known real distance apart, and that distance in feet
labelstringA standard scale label, exactly as listed in the error on a miss
uppnumberReal feet per image px at render scale 2.0
use_detectedbooleantrue = adopt the sheet's detected scale

propose_takeoff

Open a PROPOSAL — a named batch of the shapes you are about to commit, with one identity (#365). Every shape you commit from here on (measure_polygon, measure_line, measure_surface, place_count, the sweeps, the derives, cut_out) attaches to it until you open another proposal or withdraw this one; the estimator then sees ONE Accept pill for the whole batch instead of one per shape — a forty-room pass becomes one decision, not forty. Use it BEFORE the work, the way an estimator titles a takeoff before tracing: "Level 2 rooms per finish schedule A-601", "Base derived from CPT-1 rooms". label…

ParameterTypeDescription
label *stringThe batch's title, as the estimator will read it on the Accept pill
rationale *stringWhat decided the batch — cite the schedule row, sheet, or rule

measure_polygon

Measure a closed polygon you supply (min 3 vertices, image px): area_sf and perimeter_lf at the sheet's scale. Requires the scale to be set. Pass condition to commit it; role "deduct" subtracts. A room ring belongs on the innermost wall-face strokes from get_sheet_vectors, crossing each door opening on the wall centerline and wrapping columns and stubs; never on a hatch edge, casework or a door leaf. Check it with view_sheet overlay:true on a tight crop and fix it with edit_shape. A CURVED wall is a circle: do not chord it and do not hand-tessellate it — give the bow one point on the wall an…

ParameterTypeDescription
sheet *string
verts *array
arc_througharrayIndices of points that are the MIDDLE of an arc: the trace runs the point before → this point → the point after as the unique circle through the three (the canvas's Curve mode). For a curved wall…
conditionstring
rolestring

cut_out

Cut a REAL hole in a committed floor_area shape (#206) — the way the canvas cuts one (#137): the same lib/cutout.js boolean subtract, so the two surfaces can never disagree about what a hole holds. The parent keeps its outer ring plus the reconciled hole(s) (verts_norm_holes), its computed nets for real — N cuts compose, overlap between cuts never double-deducts (set subtraction), a hole ADDS perimeter — and the deduct commits carrying cuts_shape_id so the report and legend read the reconciled number, never a second arithmetic pass. This is the verb for a column, a floor drain, an island…

ParameterTypeDescription
parent_shape_id *stringA committed floor_area shape id, or an open run (surface_area / linear) to clip (list_shapes)
verts *arrayThe ring, image px — fully inside the parent for an area; over the stretch to remove for a run

measure_line

Measure an open polyline (min 2 points, image px): length_lf at the sheet's scale. Requires the scale to be set. Pass condition to commit it as a linear shape (base, transitions, feature strips, conduit and home runs). A curved run (base along a radius wall, a curved feature strip) takes arc_through: one point on the bow, marked. DROP AND RISE (#441): a plan trace is the flat X–Y path; the material also travels VERTICALLY — a home run drops from the ceiling to a panel, rises to a box. length_lf is the TOTAL: plan + rise + drop. The condition's rise_ft / drop_ft (edit_condition) are the def…

ParameterTypeDescription
pts *array
sheet *string
arc_througharrayIndices of points that are the MIDDLE of an arc: the trace runs the point before → this point → the point after as the unique circle through the three (the canvas's Curve mode). For a curved wall…
conditionstring
drop_ftnumberThis run's vertical leg DOWN, in feet, added to its plan length — overrides the condition's drop_ft default for this run (0 = no drop here, whatever the default)
rise_ftnumberThis run's vertical leg UP, in feet, added to its plan length — overrides the condition's rise_ft default for this run (0 = no rise here, whatever the default)

measure_surface

Surface Area — wall SF (#146): trace an OPEN run along the wall in plan view (min 2 points, image px) and the quantity is traced LF × height. This is how wall tile, wainscot, and wall systems are taken off — the quantity family measure_polygon cannot produce. Height lives on the CONDITION (the canvas's H knob): pass height_ft to set it on this call (journals as its own undo step, like typing H before tracing), or set it once with edit_condition; with neither, this refuses and mints nothing. The shape snapshots the height it was quantified at. Requires the sheet's scale. Coordinates are im…

ParameterTypeDescription
condition *stringFinish tag to commit under (minted on first use), e.g. 'CT-W1'
pts *arrayThe wall run, an open polyline (image px)
sheet *string
arc_througharrayIndices of points that are the MIDDLE of an arc: the trace runs the point before → this point → the point after as the unique circle through the three (the canvas's Curve mode). For a curved wall…
height_ftnumberWall height in feet — written to the condition's H knob first, then used

place_count

Count markers — EA (#146): one point, one each. Thresholds, stair nosings, floor boxes, entrance mats — the scale-free quantity family. Commits one count shape per point (computed {count: 1}, exactly the canvas's Count tool), NO scale required, and the whole call is ONE undo step. takeoff_summary reports them as ea; the marked set draws each marker. Coordinates are image px at render scale 2.0: PDF pt × 2, origin top-left, y down (the browser canvas's native space). Sheet payloads carry dims in both px and pt.

ParameterTypeDescription
condition *stringFinish tag to commit under (minted on first use), e.g. 'TR-1'
points *arrayMarker positions (image px), one committed count shape each
sheet *string

symbol_sweep

Find EVERY instance of a repeated plan symbol from ONE example — drains, thresholds, fixtures, transition markers: marquee a tight seed_rect around a single instance and the vector linework is searched for every other placement of that same segment cluster. Deterministic geometry, not vision: each placement scores as the length-weighted fraction of the seed's segments reproduced within tolerance_px, under translation plus 0/90/180/270 rotation and mirroring (symbols rotate on plans — both ON by default; turn them off to pin orientation). Score ≥ 0.92 is a match; the 0.75–0.92 band come…

ParameterTypeDescription
seed_rect *arrayMarquee around ONE example instance, [[x0,y0],[x1,y1]] in image px — tight: segments fully inside define the symbol
sheet *stringThe sheet the seed rect sits on — in scope 'set' it may be ANY sheet (a detail/legend seed sheet is fingerprint source only, never counted)
commitbooleanCommit every MATCH center as one EA count marker (withheld placements never commit)
commit_seedbooleanSheet scope + commit only (#296): also commit the SEED instance — in sheet scope the seed is almost always installed work, and a count that excludes it bids one short. Joins the same one-undo-step b…
conditionstringFinish tag to commit match markers under (minted on first use), e.g. 'FD-1'. Required when commit is true
excludearrayCounter-examples: rects around instances you do NOT mean, same gesture as seed_rect — 'count the triangles, not the keynote ones'. Marquee the LOOKALIKE ITSELF (the flush-floor variant with its box,…
luminance_toleranceintegerStroke-luminance gate, 0–254 (#260): a sheet segment only answers for a seed segment when their stroke luminances (Rec. 709, 0 black – 255 white) are within this. For flattened exports where a bla…
mirrorbooleanAlso match mirrored placements
rotationsbooleanAlso match 90/180/270-rotated placements
scopestring"sheet" = this sheet only; "set" = every PLAN-role sheet in the working set (needs a text layer for the sheet graph; non-plan sheets are excluded and disclosed)
tolerance_pxnumberEndpoint match tolerance in image px (default 2 — CAD jitter, not drift)
variant_guardbooleanWhole-symbol mode: demote richer-variant placements (>30% extra linework inside the footprint) to withheld instead of counting them with an `extra` disclosure. Use when the seed is a COMPLETE symbol (…

sweep_schedule_row

Take off a schedule row's mark from the row itself — the estimator's own gesture: a transition type sometimes exists only as a schedule row plus tag markers scattered across the plan sheets, and this tool mints the condition FROM the row and finds every occurrence. Pass the row's key (e.g. 'T1') and the tool (1) reads the row from the set's schedule tables (the sheet_graph/find_schedule machinery — the row is the condition's cited source), (2) anchors a geometric fingerprint on the marker the tag is DRAWN as on a plan sheet (a deterministic pad ladder around the tag text; where the tag occ…

ParameterTypeDescription
tag *stringThe schedule row's key exactly as drawn, e.g. 'T1', 'TR-2' — it becomes the condition tag on commit
commitbooleanCommit every counted match as one EA count marker (excluded/withheld/text_only never commit)
mirrorbooleanAlso match mirrored markers
rotationsbooleanAlso match 90/180/270-rotated markers
tolerance_pxnumberEndpoint match tolerance in image px (default 2 — CAD jitter, not drift)

count_marks

The COUNT TAKEOFF in one deterministic call — no seeds, no model, seconds: census every VALUE-ANNOTATED mark tag on the plan-role sheets, counted per schedule mark, committed as EA markers when asked. The identity rule is the annotated-device drafting pattern: a device is drawn as its mark tag with a value under it ("S1" over "200" — CFM on air devices, GPM on fixtures, a rating on equipment), so a tag WITH a paired value counts, a tag inside a schedule table's own region is a row label (excluded, tallied), and every other occurrence is WITHHELD with a reason and coordinates — a tag amid…

ParameterTypeDescription
commitbooleanCommit every counted occurrence as one EA count marker under its mark (withheld/excluded never commit)
marksarrayThe marks to census, e.g. ["S1", "R1"] — omit to take them from the schedule tables' row keys

derive_base

Mint the wall base from committed rooms (#148) — the estimator's most mechanical derivation: base LF = room perimeter − stated door openings. For every floor_area shape of source_condition, commits ONE linear shape under condition (e.g. 'RB-1') tracing that room's boundary, quantified NET of the openings you state per room. The openings are YOUR claim to make — look at the doors with view_sheet, state {shape_id, lf} per room (repeat a shape_id to stack openings); the tool never guesses, and your claim is recorded on origin.derived (from_shape_id, gross_lf, openings_lf). The output geomet…

ParameterTypeDescription
condition *stringFinish tag the base commits under (minted on first use), e.g. 'RB-1'
source_condition *stringFinish tag whose floor_area rooms the base derives from, e.g. 'CPT-1'
openingsarrayStated openings per room — omit for gross perimeters

derive_transitions

Mint the transition where two finishes MEET (#202) — the derivation that follows derive_base, and the line an estimator draws by hand on every job. Pass the two finish tags and the tag the transition commits under (e.g. condition_a 'CPT-1', condition_b 'PT-1', condition 'T-1'), and every committed room of each is compared against every committed room of the other. WHAT THE GEOMETRY ACTUALLY IS, because it decides what you get back: flood-traced rooms DO NOT SHARE EDGES. A trace fills to the wall linework, so two rooms across a partition are separated by four to eight inches of nothing — t…

ParameterTypeDescription
condition *stringFinish tag the transitions commit under (minted on first use), e.g. 'T-1'. Must differ from both sources
condition_a *stringFirst finish tag, e.g. 'CPT-1' — its committed rooms are walked, and runs are traced along their boundaries
condition_b *stringSecond finish tag, e.g. 'PT-1'
max_gap_innumberHow far apart two rings can be and still count as adjacent, in inches (default 12 — a thick partition). Wider only produces more wall_separated QUESTIONS, never more committed LF
min_run_innumberShortest run worth reporting, in inches (default 12) — below this is a corner where two rooms clip, not a transition

takeoff_summary

Per-condition totals (floor/wall/border SF, LF, EA, SY, with and without waste) plus grand totals — the Report's numbers, computed by the same rules. Numbers only: the deliverable that SHOWS the work on the drawings is export_marked_pdf. Coordinates are image px at render scale 2.0: PDF pt × 2, origin top-left, y down (the browser canvas's native space). Sheet payloads carry dims in both px and pt.

export_takeoff

The full "opentakeoff.takeoff_canvas.v1" annotations payload — exactly what the app autosaves, importable by it. Returned inline; pass path to also write it to disk as JSON. Coordinates are image px at render scale 2.0: PDF pt × 2, origin top-left, y down (the browser canvas's native space). Sheet payloads carry dims in both px and pt.

ParameterTypeDescription
overwritebooleanReplace the file at path even when it is not an OpenTakeoff export. Off by default: re-exporting over a previous export of your own already overwrites without this, so you only need it to deliberately…
pathstringFile path to write the payload to

export_dxf

The takeoff as a CAD drawing — a DXF (R2000) AutoCAD, BricsCAD, LibreCAD and Revit import as native geometry, not a picture. ONE sheet per file, like a DWG: every committed shape on that sheet becomes an LWPOLYLINE (floor rings CLOSED, walls and linear runs open, count marks a 1-ft circle), on a layer named for its finish — OT-<TAG>, with -DEDUCT / -HOLE / -WALL / -LINEAR / -COUNT suffix layers so a CAD user isolates any bucket with one layer filter, and room labels as TEXT on OT-LABELS. Coordinates are real units in the sheet's own frame: origin at the sheet's BOTTOM-left, Y up (CAD conve…

ParameterTypeDescription
path *stringFile path to write the .dxf to
overwritebooleanReplace the file at path even when it is not an OpenTakeoff export. Off by default: re-exporting over a previous export of your own already overwrites without this, so you only need it to deliberately…
sheetstringSheet key ("plan.pdf", "plan.pdf#2") or title-block number ("A-101"). Optional only when exactly one calibrated sheet carries shapes
unitsstringOutput units — "ft" (default) or "m"

export_report

The computed Report document — "opentakeoff.report.v1", the same schema the canvas Report's JSON export writes. Everything a pricing consumer needs without re-implementing the app's math: per-condition quantities with waste and multiplier applied (gross and *_net), the computed materials BUY LIST per condition (order quantity = basis ÷ coverage rate, rounded up to whole purchase units) plus the project-wide roll-up summed by (name, unit), per-sheet BASE subtotals, scale provenance per sheet, and annotations. Contrast: export_takeoff is the raw canvas payload (materials as CONFIG rows, no co…

ParameterTypeDescription
overwritebooleanReplace the file at path even when it is not an OpenTakeoff export. Off by default: re-exporting over a previous export of your own already overwrites without this, so you only need it to deliberately…
pathstringFile path to write the document to
project_namestringLabel for the document's project_name field (a headless session has no project of its own; omitted → null)

set_pricing

Price one condition for the estimate — the canvas Estimate panel's rows. A condition has one estimate line per quantity kind it carries (its area, LF and EA — see estimate_summary); the first is its MAIN line. unit is what the main line is bought in (SF, SY, LF, EA). line picks WHICH line material and labor price: leave it out (or pass the main line's unit) for the main line; pass "LF", "EA" or "SF" (a second area line prices in SF) to price that other line — one call per line. material and labor are $ per that line's unit: material is priced on the ORDER quantity (waste applied — SY i…

ParameterTypeDescription
condition *stringFinish tag of an existing condition, e.g. 'CPT-1'
laborLabor $ per unit, on the measured quantity; null clears
linestringWhich line material / labor price: omitted or the main line's unit = the main line; LF / EA / SF = the condition's other line of that kind (stored in pricing.by_unit)
materialMaterial $ per unit, on the order quantity; null clears
materialsarrayPrices for the condition's supporting-material rows
unitstringThe MAIN line's pricing unit (default: what was measured — area, then length, then count)

set_estimate_settings

The project's markups, proposal text and client — the canvas's estimate_settings, bid_proposal and client_info. Markups: tax_pct (sales tax on material), overhead_pct (on material + labor + tax), profit_pct with profit_mode markup (× (1 + p)) or margin (÷ (1 − p); 33.33% margin is ×1.5). proposal: itemized (a sell price on each scope line, the base bid allocated to the cent) or lump sum, scope_note, inclusions / exclusions (one per line), terms, valid_days. client: who the proposal is for. Only what you pass changes; an empty client string clears that field. Until markups are set the es…

ParameterTypeDescription
clientobject
overhead_pctnumber
profit_modestring
profit_pctnumber
proposalobject
tax_pctnumber

compare_sheets

Visual revision comparison of two sheets (or revisions of a sheet): discovers what moved between them. Automatically aligns vector linework, computes segment differences, groups modified/added/removed ink into changed region bounding hulls, and returns existing takeoff shape IDs on sheet_a that intersect changed ink so an agent can re-check only what moved. Coordinates are image px at render scale 2.0: PDF pt × 2, origin top-left, y down (the browser canvas's native space). Sheet payloads carry dims in both px and pt.

ParameterTypeDescription
sheet_a *stringBase sheet key or filename (e.g. 'plans.pdf#1')
sheet_b *stringIncoming/revised sheet key or filename
alignmentobjectOptional manual translation offset; defaults to auto-alignment by title-block/drawing frame

estimate_summary

The priced estimate — the canvas Estimate panel as data: one line per quantity kind each measured condition carries — its area, LF and EA are separate lines (unit, order and measured quantities, rates, material / labor / supply cost, main marks each condition's first line; status priced | partial | unpriced with what is missing, or optional — a bordered linear run's derived line nobody priced, carried in its main line and never missing; set_pricing prices any line: the main one by default, the others with line "LF" / "EA" / "SF"), then material, labor, sales tax, cost, overhead, profit a…

export_estimate

Write the priced estimate as an Excel workbook — the canvas Estimate panel's Excel button: an Estimate tab (every line, then material, labor, tax, overhead, profit, base bid), a Materials tab (each supply's packages, price, cost) and, when anything is unentered, an Unpriced tab. Values only; an unentered rate is an empty cell, never 0. Every tab ends with "Prepared with OpenTakeoff". Default path: next to the loaded plan as "<project or plan> - estimate.xlsx". The reply repeats complete and unpriced — tell the user when the total is only priced so far.

ParameterTypeDescription
company_namestringPrepared-by line
overwritebooleanReplace the file at path even when it is not an OpenTakeoff export. Off by default: re-exporting over a previous export of your own already overwrites without this, so you only need it to deliberately…
pathstringWhere to write the .xlsx (default: "<plan dir>/<project or plan> - estimate.xlsx")
project_namestringProject name on each tab (default: the plan file's name)

export_proposal

Write the bid proposal PDF — the canvas Proposal dialog's download: letterhead from company, prepared-for (set_estimate_settings client), the scope (each condition, its spec description, measured quantity), the base bid (lump sum, or itemized when the project's proposal says so), inclusions / exclusions / terms and signature blocks. Every page carries a light diagonal "OpenTakeoff" and the line "Prepared with OpenTakeoff · opentakeoff.kentucky-ai.com". Pass company exactly as the estimator gave it — this server has no Company setup of its own. It never refuses an incomplete estimate; the…

ParameterTypeDescription
companyobjectThe contractor's letterhead, from the estimator
overwritebooleanReplace the file at path even when it is not an OpenTakeoff export. Off by default: re-exporting over a previous export of your own already overwrites without this, so you only need it to deliberately…
pathstringWhere to write the PDF (default: "<plan dir>/<project or plan> - proposal.pdf")
project_namestringProject name on the proposal (default: the plan file's name)

import_takeoff

The way BACK IN (#151): load an "opentakeoff.takeoff_canvas.v1" file — a prior export_takeoff, or the app's own save — into this session, through the SAME tested merge rules as the app's Sheet-menu import: finish-tag identity joins imported conditions onto this session's own (their knobs win), new ids append, duplicate ids skip (re-import is idempotent), and THIS session's calibration wins per sheet. An uncalibrated empty session adopts the file wholesale. New dimensional shapes refuse atomically if their source scale differs from the session calibration or is missing; align scales and re-…

ParameterTypeDescription
path *stringPath to a takeoff_canvas.v1 JSON file on disk

apply_rules

Re-run the correction rules the takeoff arrived with (#207) — the lessons an estimator TAUGHT the canvas (#88): "every room like this loses the mechanical chase." A rule is a deterministic predicate (enclosed linework islands under a size cap, inside the rule's condition's rooms), never a re-prompt. Evaluation is the same pure rules.ts engine the canvas Preview runs; the commit is the one batch the canvas's Apply makes — ONE journal entry, undo_last takes the whole batch back. Everything lands reviewed: false (this server has no review gate), and the reply's per-rule disclosure — what ea…

ParameterTypeDescription
sheetstringScan only this sheet (default: every sheet holding the rules' conditions' rooms)

export_marked_pdf

The MARKED-UP PLANSET — the deliverable of every takeoff. Writes a distribution-ready PDF to disk: a legend cover (per-condition totals, swatches, a by-sheet breakdown) followed by every sheet that carries takeoff shapes or annotations, vector-copied from the source plan with the work burned in as drawn — condition colors and hatches, a quantity chip on every shape, annotation clouds/callouts/highlights, and approval marks (the estimator's APPROVED rings, the agent's AGENT diamonds — the cover tallies the split). Built by the same module as the canvas's MARKED SET button, so agent output…

ParameterTypeDescription
overwritebooleanReplace the file at path even when it is not an OpenTakeoff export. Off by default: re-exporting over a previous export of your own already overwrites without this, so you only need it to deliberately…
pathstringWhere to write the PDF (default: "<plan dir>/<plan> - marked set.pdf")
project_namestringCover-page project name (default: the plan file's name)

list_shapes

The mid-session shape inventory (#149): every committed shape's id, sheet, condition tag, role, quantities, room label, vertex count, and review state in one compact read — the ids edit_shape and delete_shape assume you have, without pulling the whole export_takeoff payload to find one shape. Filter by sheet, by condition, or both; filters narrow, an empty list is a result, not an error.

ParameterTypeDescription
conditionstringOnly shapes under this finish tag (must exist)
sheetstringOnly shapes on this sheet

delete_shape

Remove a committed shape by the id returned when it was committed. Coordinates are image px at render scale 2.0: PDF pt × 2, origin top-left, y down (the browser canvas's native space). Sheet payloads carry dims in both px and pt.

ParameterTypeDescription
shape_id *string

scope_duplicates

Two conditions claiming the same floor, as a list (#366). Every pair of committed floor_area shapes on one sheet whose EXACT polygon intersection exceeds min_fraction of the smaller shape — with the shared SF, which condition each belongs to, whether the estimator already affirmed either, and a look region to pass to view_sheet {overlay: true}. Pairs on DIFFERENT conditions are collisions: every total downstream counts that floor twice. Pairs on the SAME condition are a double trace (a different bug) and come back in duplicates. shared_floor_sf is the whole compared set's Σ areas − union,…

ParameterTypeDescription
min_fractionnumberList a pair only when shared ÷ smaller ≥ this (default 0.05 — rings that merely kiss along a wall are not claims; 0 lists every positive overlap above machine-precision noise)
sheetstringRestrict to one sheet; default every sheet with floor shapes

scope_merge

Resolve ONE collision (#366): given a pair of floor shapes and the winner, the loser gives up the shared floor — TRIMMED to its remainder by an exact boolean difference (the cut_out module's own arithmetic; its quantities re-measured from the result), or DELETED outright when the overlap is near-total (≥ 98% of the loser: the same space claimed twice, not a room with a sliver left). One journal step either way; undo_last restores the loser verbatim. Who wins: state winner; with it omitted the reviewed shape wins over a pending one, and the verb refuses when neither is reviewed (it does not…

ParameterTypeDescription
shape_a *stringOne shape of the pair (from scope_duplicates)
shape_b *stringThe other
winnerstringWhich of the two keeps the shared floor; omit to let the reviewed one win

revise_proposal

Replace EVERY still-pending shape in a proposal with a new set, as ONE journal step (#365) — the move for "I re-measured and got a better batch". The old pending shapes go, the replacements commit under the same proposal, and undo_last puts the previous batch back exactly. All-or-nothing: the whole replacement is validated (sheet, scale, vertex count, a height for surface_area) before the first pending shape is removed, so a malformed last shape leaves the batch untouched and the error says which entry and why. Shapes the estimator already accepted are ink — they stay, and they are not par…

ParameterTypeDescription
proposal_id *stringThe batch, from propose_takeoff
shapes *array

withdraw_proposal

Take a proposal back (#365): every still-pending shape in the batch is removed in ONE journal step, the record stays marked withdrawn (its label is history the estimator may still read), and new commits stop attaching to it. Shapes the estimator already accepted are ink and stay — the reply counts them. This is the honest exit for "that batch was wrong" — one call instead of N delete_shape calls, and undo_last restores the whole batch.

ParameterTypeDescription
proposal_id *stringThe batch, from propose_takeoff

sheet_context

The sheet's STRUCTURE in one call and one frame: the classified vector segments, the positioned text spans, and the hatch-family instances of a region — everything the engine itself floods against, exposed as data instead of pixels. Use it when you need to REASON about a region rather than look at it: which lines bound this space and at what pen weight, what the region says, and which periodic fill pattern covers it. The join is the point — all three arrive in image px with no reconciliation left to do, and the reply echoes the post-clamp region so passing that same rect to view_sheet give…

ParameterTypeDescription
sheet *string
max_segmentsintegerSegment cap, applied longest-first (default 4000). The reply's dropped.cap says exactly what a smaller region would recover
min_len_pxnumberDrop segments shorter than this (default 2 — one PDF point at render scale 2.0, below any pen width). 0 keeps everything
regionobjectRect in image px (origin top-left, y down); omit for the full sheet

get_sheet_vectors

The STROKES — the sheet's vector layer exactly as the engine is fed it, so you can run your own geometry against what the app sees (#367). view_sheet lets you look, read_sheet_text lets you read, sheet_context classifies a region; this returns the raw extractor output that all of them and every shape verb (the wall network's pen weights, symbol_sweep's matching) work from: flat points [x1, y1, x2, y2, …] in image px, one meta byte per segment (low nibble flags: 1 curve chord, 2 clip-only, 4 fill-only, 8 polyline arc; pen width = meta >> 4), per-segment stroke luminance, the drawn figure ea…

ParameterTypeDescription
sheet *stringSheet key ("plan.pdf", "plan.pdf#2") or title-block number ("A-101")
cursorintegerA previous reply's next_cursor — resume paging there. Omit for the first page
limitintegerPage size in segments (default 20000, max 100000) — about 1 MB of JSON per 20000
regionobjectRect in image px (origin top-left, y down); omit for the full sheet. A segment is kept when it intersects the rect

edit_shape

REVISE a shape you already committed, instead of deleting it and starting over: pass new verts to move the geometry, condition to reassign it to a different finish tag, role to switch between floor_area / deduct / linear, label to name the room it belongs to, or any combination. Quantities are recomputed from the result — a role flip alone re-measures (closed area vs open length). The loop this is for: measure_polygon to commit, view_sheet with overlay:true to LOOK at what landed, then edit_shape to fix the two vertices that overshot into the corridor. label is the per-room reporting seam: t…

ParameterTypeDescription
shape_id *stringId returned when the shape was committed
conditionstringReassign to this finish tag (minted on first use)
drop_ftLinear runs only (#441): this run's vertical leg DOWN in feet, overriding the condition's drop_ft default (0 = none). null clears the override so the condition's default applies again
labelstringThe room (or phase/area) this shape belongs to, e.g. "134" or "OFFICE 101" — what per-room reporting groups by. Pass "" to clear it
rise_ftLinear runs only (#441): this run's vertical leg UP in feet, overriding the condition's rise_ft default (0 = none). null clears the override so the condition's default applies again. perimeter_lf is r…
rolestringSwitch what the shape measures — flipping INTO surface_area needs a height on the shape or its condition
vertsarrayReplacement geometry (image px): ≥3 vertices for an area shape, ≥2 points for a linear/surface run, ≥1 for a count marker

edit_materials

Add, remove, or patch supporting-materials rows on a condition — the coverage-rate lines that turn a measured area/length/count into an order quantity (adhesive at N sf/gal, grout at N lf/bag, …), matching the canvas's per-condition Supporting Materials panel. Each row is {name, per, basis, unit, round, note}: quantity = the condition's basis total (area/linear/count/seam_lf) ÷ per, rounded up to whole purchase units unless round:false. basis "seam_lf" is the one basis that is FIGURED rather than measured: it is the length where two cuts meet on the floor, read off the condition's roll la…

ParameterTypeDescription
condition *stringFinish tag, e.g. 'CPT-1'
addarrayNew rows to add
patcharrayField changes on existing rows
removearrayExisting row ids to remove

edit_condition

Set a condition's quantity knobs — waste %, multiplier, height_ft (the H knob measure_surface quantifies against), and/or roll_setup (the roll-goods opt-in: seams and order footage figured from the committed rooms, #147). takeoff_summary emits waste-adjusted *_net order quantities and a per-condition multiplier, and every export carries both, but conditions minted through the measure tools start at waste 0 / multiplier 1 — without this tool an agent's takeoff always ships net === gross (#131). waste_pct is the estimator's cut-waste percentage (carpet commonly 5–10); multiplier scales eve…

ParameterTypeDescription
condition *stringFinish tag of an existing condition, e.g. 'CPT-1'
drop_ftnumberDrop and Rise (#441): the vertical leg DOWN, in feet, every linear run of this condition adds to its plan length. Re-flows existing runs that do not carry their own drop_ft. 0 turns it off
height_ftnumberWall height in feet — the canvas's H knob; measure_surface quantifies traced LF × this
multipliernumberQuantity multiplier (×N identical areas). Note: the canvas treats 0 as 1, so 0 is rejected here rather than silently meaning 'off'
rise_ftnumberDrop and Rise (#441): the vertical leg UP, in feet, every linear run of this condition adds to its plan length (LF = plan + rise + drop). Re-flows existing runs that do not carry their own rise_ft; de…
roll_setupRoll-goods opt-in (#147): presence of a setup is what makes the condition roll goods — seams figured, cuts packed, order footage beside the measured quantities. Same-material partial edits patch the…
waste_pctnumberWaste percentage applied to net order quantities, e.g. 10 for 10%

propose_condition_edit

PROPOSE a change to a condition instead of making it (#365): a diff — a new finish tag (rename), waste %, ×N multiplier, height_ft, roll_setup — held PENDING until the estimator accepts it from the panel. edit_condition is the wrong power for "I think this condition is wrong": a tag rename or a knob change should be a decision the estimator makes, not one they discover. Until acceptance NOTHING changes — takeoff_summary and export_report keep computing from the current values and carry the diff beside them (proposed_condition_edits), and once accepted the report is byte-for-byte what a…

ParameterTypeDescription
condition *stringFinish tag of an EXISTING condition, e.g. 'CPT-1'
rationale *stringWhy — the schedule row, the spec section, the sheet note that decided it
drop_ftnumberProposed default vertical leg DOWN for the condition's linear runs (#441)
finish_tagstringProposed new tag (a rename)
height_ftnumber
multipliernumber
rise_ftnumberProposed default vertical leg UP for the condition's linear runs (#441)
roll_setupProposed roll-goods setup, or null to propose opting out
waste_pctnumber

withdraw_condition_edit

Drop a pending condition-edit proposal (#365) without touching the condition. undo_last re-seats it.

ParameterTypeDescription
proposal_id *stringFrom propose_condition_edit, or takeoff_summary's proposed_condition_edits

duplicate_condition

Twin a condition — the same finish measured somewhere else, with its own supporting materials. One finish in two areas is not two conditions and it is not one either: the same sheet goods over a slab and over a raised deck take the same field material and different preparation underneath (one wants a moisture barrier, the other a primer and a different adhesive). The twin arrives carrying the original's whole materials list and keeps FOLLOWING it — change a coverage rate on the original and every twin that has not touched that row gets it; edit a row on the twin and only THAT row stops fol…

ParameterTypeDescription
condition *stringFinish tag of the condition to twin, e.g. 'CPT-1'
label *stringWhat makes this one different, usually the area: 'Level 2', 'Building B', 'Phase 2'

split_condition

Cut a twin loose from its family: every following material row freezes at its current values and edits to the original stop reaching it. It keeps its finish tag and still groups with its siblings — only the inheritance ends. Use when two variants have diverged far enough that following one another is wrong. A condition that already owns its materials returns split:false rather than erroring. Reversible with undo_last.

ParameterTypeDescription
condition *stringFinish tag of the twin to split, e.g. 'CPT-1 – Level 2'

undo_last

Step back over your OWN last n mutations, newest first — a committed measure_polygon, an edit_shape, a delete_shape, an edit_materials call, an edit_condition call, or an RFI verb (create_rfi / resolve_rfi / delete_rfi). Each step is reversed exactly (a commit is removed, an edit is restored verbatim, a delete is re-inserted where it was, a materials edit's whole array is restored, a condition edit's waste/multiplier pair is restored), so this restores state rather than approximating it. Reads are never journaled, so n counts gestures that changed something, not tool calls you made. Use it w…

ParameterTypeDescription
nintegerHow many steps to reverse (1–100)

sheet_graph

The plan-set INDEX (#87): every sheet's role (plan / schedule / legend / …, with confidence and the title evidence), the schedule tables found (kind, row count, region — a schedule CONTINUED across sheets ("… SCHEDULE — CONT'D") reads as ONE table, the continuation fragment naming its base in "continues"; rotated column headers are read at their quarter-turn and flagged), every number CORROBORATED as a room (with the stacked room NAME when one exists, the room's BUILDING on multi-building sets, and "corroboration" saying why it counts as a room) plus "unmatched_tags" — the numbers th…

resolve_tag

Resolve ONE room tag across the set (#87): the plan tag → its room-finish schedule row → each finish code's definition in the finish/material schedule, EVERY edge carrying an evidence pointer (sheet + literal text + bbox — pass a bbox to view_sheet to look at the source). Rows carried by a continuation sheet ("… SCHEDULE — CONT'D") resolve exactly like base-sheet rows, citing the sheet the ink is on. The doctrine is refusal over guessing: a room that appears on the plan with no schedule row returns status "unresolved" with the reason (and still cites the plan tag); reused room number…

ParameterTypeDescription
tag *stringThe room tag as drawn, e.g. "134" or "139A" — or building-qualified on a multi-building set, e.g. "A-134" (building A, room 134)

find_schedule

Locate a schedule table in the set (#87): pass a kind ("room finish", "material"/"finish") and get every matching table's sheet, title, headers, TOTAL row count, and REGION — sized for a view_sheet look or a read_sheet_text pull of exactly the table. A schedule continued across sheets is ONE match whose "parts" list every fragment (base first) with its own viewable region; tables read through rotated headers say so; a table answering for one building carries "building"; a table with delta/REV-marked rows says how many in "revised_rows". Errors with what WAS found when the asked-for kind isn'…

ParameterTypeDescription
kind *string"room finish" (rooms → surface finishes), "finish"/"material" (codes → products), or "equipment" (MEP device schedules — fans, pumps, heaters, AHUs, VAVs, diffusers/grilles/registers — keyed b…

read_sheet_text

The sheet's text with positions — items [{str, x, y}] in image px plus the joined text. Optionally restrict to a region {x0, y0, x1, y1}. Use it to read title blocks, room labels, finish schedules, and scale notes. Coordinates are image px at render scale 2.0: PDF pt × 2, origin top-left, y down (the browser canvas's native space). Sheet payloads carry dims in both px and pt.

ParameterTypeDescription
sheet *string
regionobject

find_text

LOCATE a known string on a sheet — the complement to read_sheet_text (which returns what a region SAYS; this finds WHERE a string you already know sits). Case-insensitive substring match against each pdf.js text run, so a room label split across runs ("OFFICE" then "134" as separate items) needs a find_text call per fragment, or read_sheet_text over a region to see the whole thing joined. Every hit tells you which room a polygon belongs to — the locate-then-trace workflow: find_text the room number, then measure_polygon (One-Click is temporarily gated on this server) on that room's wall fa…

ParameterTypeDescription
q *stringText to find — a room number ('134'), a label fragment ('RECEPTION'), a schedule tag ('CPT-1')
sheet *string
limitintegerMax hits returned
regionobjectRect in image px (origin top-left, y down); omit for the full sheet

rotate_page

Rotate a sheet's page in the PDF (90, 180, or 270 degrees clockwise) before measuring. Transforms all existing takeoff shapes, markups, and calibrations on that sheet to remain locked to the drawing. Output file path is optional (default: "<file>_rotated.pdf"); pass overwrite:true to allow replacing an existing file. Coordinates are image px at render scale 2.0: PDF pt × 2, origin top-left, y down (the browser canvas's native space). Sheet payloads carry dims in both px and pt.

ParameterTypeDescription
angle *Clockwise rotation angle in degrees: 90, 180, or 270
sheet *stringSheet key ("plan.pdf", "plan.pdf#2") or sheet number ("A-101")
output_pathstringDestination file path (default: "<file>_rotated.pdf")
overwritebooleanReplace the file at path even when it is not an OpenTakeoff export. Off by default: re-exporting over a previous export of your own already overwrites without this, so you only need it to deliberately…

reorder_pages

Reorder pages in a loaded PDF document. Remaps all takeoff sheet keys so measurements and annotations follow their pages. Output file path is optional (default: "<file>_reordered.pdf"); pass overwrite:true to allow replacing an existing file. Coordinates are image px at render scale 2.0: PDF pt × 2, origin top-left, y down (the browser canvas's native space). Sheet payloads carry dims in both px and pt.

ParameterTypeDescription
file *stringThe loaded PDF file name (e.g. "plan.pdf")
order *array1-based new page order, e.g. [2, 1, 3] to swap pages 1 and 2
output_pathstringDestination file path (default: "<file>_reordered.pdf")
overwritebooleanReplace the file at path even when it is not an OpenTakeoff export. Off by default: re-exporting over a previous export of your own already overwrites without this, so you only need it to deliberately…

extract_pages

Extract a subset of pages from a loaded PDF into a new PDF file on disk. Carries all takeoff shapes and annotations on those pages into the new document (mapped to pages 1..N). Coordinates are image px at render scale 2.0: PDF pt × 2, origin top-left, y down (the browser canvas's native space). Sheet payloads carry dims in both px and pt.

ParameterTypeDescription
file *stringThe loaded PDF file name
pages *array1-based page numbers to extract, e.g. [2, 3]
output_pathstringDestination file path (default: "<file>_extracted.pdf")
overwritebooleanReplace the file at path even when it is not an OpenTakeoff export. Off by default: re-exporting over a previous export of your own already overwrites without this, so you only need it to deliberately…

merge_documents

Merge multiple PDF files into one combined PDF document on disk. Combines the pages and remaps takeoff keys from all source documents. Coordinates are image px at render scale 2.0: PDF pt × 2, origin top-left, y down (the browser canvas's native space). Sheet payloads carry dims in both px and pt.

ParameterTypeDescription
files *arrayList of PDF files to merge in order (can be loaded file names or file paths on disk)
output_path *stringDestination path for the merged PDF
overwritebooleanReplace the file at path even when it is not an OpenTakeoff export. Off by default: re-exporting over a previous export of your own already overwrites without this, so you only need it to deliberately…

view_sheet

SEE the sheet — render the page (or a crop of it) to a PNG image. This is your eyes on the plan, so CROP, DON'T SQUINT: the render downsamples to the px budget (≤2000 long side), which on an E-size sheet is ~4 sheet pixels per returned pixel — a full-sheet render finds WHERE things are, and only a tight region crop can tell you what the linework and labels actually say. Never audit a trace or read a dimension off a full-sheet render. region is in image px — the same space as every other tool — so a feature at pixel (ix, iy) of the returned image sits at x = region_x0 + ix × (region_…

ParameterTypeDescription
sheet *string
gridstringBurn in a calibrated 1-ft/5-ft measuring grid: "auto" = the sheet's set scale; otherwise the drawing scale as inches-per-foot, e.g. "1/4", "3/16", "0.25"
marksobjectDisclosure marks to burn into the render (#297): what the reply names, the picture shows. Coordinates in image px
overlaybooleanBurn committed shapes into the render (solid = human-affirmed, dashed = unreviewed)
pxintegerLong-side pixel budget of the returned image (default 1400) — small region + high px = readable dimension strings
regionobjectCrop rect in image px (origin top-left, y down); omit for the full sheet

stitch_sheets

Stitch 2–4 plan sheets together into a composite working surface across match-lines (#161) — the browser canvas's Stitched Sheets feature. Shapes traced on the returned stitch reference bind to the composite key ("stitch:<uid>") and measure continuously across seam boundaries once aligned. By default sheets create in auto-butt layout (aligned: false). Use align_stitch with two matching reference points to align sheets across their match line and run the automated linework seam check; measuring across a seam on an unaligned or withheld stitch is refused. Member sheets must have calibrated,…

ParameterTypeDescription
sheets *array2–4 sheet keys or sheet numbers to stitch together
alignobjectTwo-point match line alignment
membersarrayExplicit member sheet placements in image px (alternative to auto-butt or align)
namestringOptional human-readable label for the composite sheet (defaults to "Stitched sheets")

align_stitch

Align a composite stitched sheet surface across its match line using two matching reference points (image px) — one on each member sheet — or omit both anchor and moving to verify existing persisted member placements in place. Performs a seam check across the match line: analyzes vector wall linework crossing the seam, reports true maximum, 95th percentile, and median linework displacement (px and inches at scale), leftover rotation, and withholding status. Refuses if true maximum linework mismatch exceeds tolerance (default 0.50 in / 1/2", calibrated from real split plans). Coordinates ar…

ParameterTypeDescription
stitch *stringThe stitch key (starts with stitch:) to align or verify
anchorarrayFirst alignment point in image px (omit with moving to verify existing placement)
movingarraySecond alignment point in image px — sheet under moving translates to anchor (omit with anchor to verify existing placement)
rot_tolerance_degnumberLeftover rotation tolerance in degrees (default: 0.25)
tolerance_innumberLinework displacement tolerance in inches (default: 0.50)

list_stitches

List all existing composite stitched sheet surfaces in the current session, including dimensions, member sheet placements, inherited scale, and shape counts.

annotate

Place an annotation on a sheet — a note ABOUT the work, never a measurement of it. Types: cloud and highlight take rect:[[x0,y0],[x1,y1]] (a revision cloud around an area, a highlight box over it), text takes at:[x,y], callout takes at:[x,y] plus target:[x,y] (the point its leader aims at), arrow takes from:[x,y] and to:[x,y] (tail and head — plank/seam direction, the markup flooring drawings use most; #150), bubble takes at:[x,y] plus optional r (a keynote/detail circle carrying centered text), dimension takes from:[x,y] and to:[x,y] (its two measured endpoints) and labels itself with the…

ParameterTypeDescription
sheet *stringSheet name or number, as sheet_info reports it
type *stringcloud/highlight need rect; text/callout/bubble need at; callout also needs target; arrow and dimension need from + to
atarrayAnchor point (image px) — text, callout, and bubble (the circle's center)
conditionstringFinish tag to attach this note to, e.g. 'CPT-1' (minted on first use). Omit for an unattached sheet note
fromarrayArrow tail / dimension start (image px)
rnumberBubble radius (image px); omitted → the canvas default (2% of sheet width)
rectarrayCorners (image px) — cloud and highlight
targetarrayWhat a callout's leader line points at (image px)
textstringThe note. A cloud with no text still reads as 'look here'; a bubble's text draws centered in the circle; a dimension appends it after the measured length
toarrayArrow head / dimension end (image px)

list_annotations

Every annotation on the takeoff, with condition_id RESOLVED to its finish tag so you can act on the reply without joining against conditions[]. Filter by sheet, by condition, or both. Coordinates come back in image px (the same frame you passed in), not the normalized form they're stored as. `unattached` counts the notes carrying no condition — the candidates for link_annotation. `verdicts` is the approval family's inventory (mark_verdict/delete_verdict): every mark with its actor stated — the estimator's APPROVED ring or the agent's AGENT diamond — under the same filters, a condition fi…

ParameterTypeDescription
conditionstringOnly annotations attached to this finish tag
sheetstringOnly annotations on this sheet

edit_annotation

Shorten, replace or clear the text of an existing annotation. Get annotation_id from list_annotations (annotations, not verdicts). Changes only text: position, shape, dimension length, condition links, quantities and review records stay unchanged. Empty text clears the note; a dimension still prints its measured length. Refuses an RFI-linked note: review that question's context in the browser RFI register. One undo_last step restores the previous text. Does not create a verdict or human approval.

ParameterTypeDescription
annotation_id *stringAn annotation id from list_annotations
text *stringReplacement text; empty string clears it

mark_verdict

Mark the agent's VERDICT on work — the pencil half of the approval family, and the only half an agent can mint. Two actors exist on the record: the estimator's APPROVED ring is ink, minted solely by a human's click at the canvas's Approve tool; this tool mints the AGENT diamond and structurally nothing else — it takes no actor input to misuse. Target the work either way: shape_id anchors the mark ON a committed shape (a room at its area centroid, a run at its on-path midpoint, a count marker at its point) and records WHAT was marked — the shape_id stays on the record as provenance, and t…

ParameterTypeDescription
atarraySheet-point mode: where the AGENT diamond renders (image px)
shape_idstringMark a committed shape (list_shapes has the ids) — anchored on the shape, recorded as provenance. Exactly one target: this OR sheet + at
sheetstringSheet-point mode: the sheet, together with at
textstringOptional short note riding the record and every export — the glyph always reads AGENT

delete_verdict

Lift an agent verdict mark by id (mark_verdict's reply, or list_annotations verdicts[]). Agent marks only: the estimator's APPROVED seal is human ink and is refused — the same line edit_shape holds on reviewed shapes. Journaled like every mutation, so undo_last re-seats a lifted mark exactly where it was.

ParameterTypeDescription
verdict_id *stringRecord id from mark_verdict or list_annotations verdicts[]

create_rfi

Raise an RFI — a Request For Information — when the drawing set contradicts itself or cannot answer a question you need answered to take the work off: a room-finish schedule row that names a tag the plan never draws, a room label the schedule has no row for, a finish called out two ways, a scale that disagrees with a stated dimension. It lands in the estimator's RFI register (the canvas's RFI panel) with the next number in that register's own sequence (RFI-001, RFI-002, …), status open, dated today, on the sheet you name. You raise it as the agent: the record carries origin {actor: "agen…

ParameterTypeDescription
question *stringWhat you are asking the architect to answer, stated so a reply can settle it
sheet *stringSheet name or number the question is about, as sheet_info reports it
title *stringThe one-line subject the register and the RFI schedule print — what the question is about
markup_idsarrayAnnotation ids (annotate / list_annotations) to link — they carry this RFI's number on the sheet

list_rfis

Every RFI in the register with its status, sheet, who raised it (actor) and whether an agent-raised one is still pending the estimator's acceptance, its linked markup ids, and the finish tags those markups are attached to — the scopes the question touches. withdrawn[] lists the numbers delete_rfi tombstoned, so a gap in the sequence is explained rather than silent. Read this before raising a question the register already holds.

resolve_rfi

Answer an OPEN RFI: the answer lands as its response, status becomes answered (the register's own state for "response in"), and the response date stamps exactly as the panel's would, plus an ISO timestamp of the resolve. Only an open RFI resolves — an answered, closed, or void one is refused rather than re-answered or quietly revived (undo_last reverses your own resolve if the answer was wrong). Record the answer the drawings or the architect actually gave; an RFI is not resolved by guessing.

ParameterTypeDescription
answer *stringThe response — what settles the question
rfi_id *stringRecord id from create_rfi or list_rfis

delete_rfi

Withdraw an RFI. A TOMBSTONE, never a renumber: the record stays with its number reserved, so the register and the marked set keep printing a gap where it was and the next RFI takes the next number — an RFI number that went out and then meant something else would be a lie. Every markup linked to it keeps its note and loses the link (the canvas's own delete rule). Withdraw a question you raised in error; a question the architect answered is closed in the register, not deleted. Journaled; undo_last puts the record and its links back.

ParameterTypeDescription
rfi_id *stringRecord id from create_rfi or list_rfis

open_suite

Open a trade suite: enables that trade's tools (they are hidden until opened) and returns its method and condition names. Open only the trade you are taking off; opening is idempotent and never closes anything. No arguments = the catalog. Suites: - finishes (Div 09): flooring, base, transitions, wall finishes: core tools, no extra tools - acoustical_ceilings (Div 09): lay-in tiles, main runners, cross tees, hanger wires and wall angle from areas on the reflected ceiling plan - roofing (Div 07): sloped roof area and squares, true rake/hip/valley LF, drip edge, starter, ridge cap, underlayment -…

ParameterTypeDescription
divisionstringCSI division, e.g. "07", "08", "22", "26"
suitestringSuite id