GetFacade
v0.2.1Designs a real house exterior on its own photo, prices it line by line and documents it.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
create_building Create a building
Create a building (a house to design). The name must be unique within the account, max 50 characters — reusing a name is refused, so pick a distinct one instead of retrying the same. `goals` is the free-form brief (max 10000 chars).
| Parameter | Type | Description |
|---|---|---|
name * | string | Unique building name within this account |
construction_region | string | Where the building stands, e.g. "Texas, US" or "Bavaria, Germany". Decides which materials and manufacturer products apply there, the currency and units the estimate is priced in, and the norms the al… |
goals | string | Free-form brief for the design |
upload_photo Upload a photo of the building
Upload an exterior photo of the building and wait for the answer. Three legs: register the file, PUT the bytes to storage, confirm. What the photo turns out to be is decided on the server, and `kept_as` says which: "view" (a photo of the house to design from — `view_id` names it), "document" (a drawing kept with the building), "reference" or "render_style" (kept alongside it), or nothing kept at all. A file kept as anything but a view is not a refusal, and `can_use_as_view` says when it can still be claimed as one with use_photo_as_view. `can_retry` means the read failed on the service side:…
| Parameter | Type | Description |
|---|---|---|
building_id * | string | Building id from create_building |
file_path * | string | Absolute path to a JPEG, PNG or WebP file on this machine |
intent | string | What the file is meant to be. "auto" (the default) lets the service read it and file it wherever it belongs. "view" states that this is a photo of the building to design from, and the file is refused… |
wait_for_validation | boolean |
use_photo_as_view Use the photo as a view after all
Claim a photo the service kept elsewhere — as a drawing, a reference, or a building it read as a different one — as a view of this building to design from. Returns the `view_id` it becomes; the reference it had been is removed. Offered only when upload_photo answered `can_use_as_view: true`; otherwise the call is refused.
| Parameter | Type | Description |
|---|---|---|
building_id * | string | Building id the photo was uploaded to |
upload_id * | string | Upload id from upload_photo |
list_photos List photos of a building
The views of a building: every photo accepted as a view of the house, whether it was uploaded here or added by the person in the app at `photos_page`. `view_id` is what start_design takes; `is_main` marks the main view. Use it after asking the person to add a photo in the app, to pick up what they added.
| Parameter | Type | Description |
|---|---|---|
building_id * | string |
start_design Start a design render
Design the exterior of this house on a chosen view, and show the result as a picture. The design is worked out against the building's country: which materials are applicable there, which manufacturer products are really sold there, and what the build-up behind the surface is — the render shows that decision on the house itself. Creates a new design (concept) and queues the work; returns a job id to poll with get_job. `prompt` is the free-form wish for this design ("a modern facade with a wide porch"). Colors accept the same strings the apps use: "palette:1", "paint:412", "siding:88@double-4-…
| Parameter | Type | Description |
|---|---|---|
building_id * | string | |
view_id * | string | View id from upload_photo |
brand_selections | array | Manufacturer products, e.g. "paint:product:412" |
colors | array | |
prompt | string | Free-form instruction for this design |
render_effort | string | How hard the engine works on this picture: BRAINSTORM is the quickest, STANDARD the middle, HIGH the slowest and most detailed. Some buildings pick the engine themselves and this choice does not reach… |
seed | integer | |
style_ids | array |
refine_design Refine a design
Revise a finished design in words: "put a canopy over the front door", "make the roof darker". The revision is applied to the finished design, so what is not mentioned stays as it is — this is the tool for every step after the first, not start_design. Give it either the `render_id` of the picture to change (the job id start_design returned) or the `design_id` (with `building_id`) of the design whose finished main render should be changed. The parent render must be finished; refining an unfinished one is refused. Queues a render and returns a new job id, plus the `design_id` the result lands…
| Parameter | Type | Description |
|---|---|---|
instruction * | string | What to change, in plain words |
brand_selections | array | |
building_id | string | Required with design_id |
colors | array | |
design_id | string | Alternative to render_id: the design whose finished main render to iterate on. Needs building_id too |
render_effort | string | How hard the engine works on this picture: BRAINSTORM is the quickest, STANDARD the middle, HIGH the slowest and most detailed. Some buildings pick the engine themselves and this choice does not reach… |
render_id | string | Render to iterate on — the job id from start_design or an earlier refine_design |
seed | integer | |
style_ids | array |
get_job Check one job
Poll one queued job. `kind` says what it is: a render, an estimate, or an album (albums are listed per design, so an album lookup needs `design_id`). The finished status differs by kind: a render and an album read `completed`, an estimate reads `ready`. Stop polling on any of those and on `failed`, where `error` says what went wrong and `error_code` names it; repeat that reason as it stands instead of composing one. A render and an album report `expected_seconds`, how long that job usually takes end to end, so the wait between polls can be paced by it; an estimate does not, and reads null. The…
| Parameter | Type | Description |
|---|---|---|
job_id * | string | |
design_id | string | Required when kind is "album" |
kind | string |
list_jobs List recent jobs
Recent jobs across the account — renders, estimates and albums in one list, unfinished ones first. Use it to catch up after a restart: each row carries the `kind` and `design_id` that get_job asks for, and the `building_id` the job belongs to. Use get_job to poll a single known job.
| Parameter | Type | Description |
|---|---|---|
kind | string | |
limit | integer |
list_designs List designs of a building
All designs of a building with their renders. This is where the render ids for order_estimate, order_album and refine_design come from — `main_render_id` is the finished render of a design, null while nothing has finished, and `main_render_url` is its permanent public link (no signature, no expiry, safe to hand to a person, and not recallable once shared). Per-render state is not here: poll get_job for that.
| Parameter | Type | Description |
|---|---|---|
building_id * | string |
order_estimate Order a cost estimate
Price the design, line by line, in materials and labour, for the renders you name. The figures come from the design itself: what the specified materials and build-up cost in this country. Currency and measurement system default to the building's country and the written text to the account language; do not guess any of them, omit them unless the caller asked for a specific one. The money follows the house, the words follow the reader: a building in one country can be priced in its own currency and still be written up in the language the person asking reads.
| Parameter | Type | Description |
|---|---|---|
building_id * | string | |
design_id * | string | |
render_ids * | array | |
currency | string | |
language | string | Language of the written estimate, defaults to the account language |
measurement_system | string | |
special_requirements | string |
order_album Order a PDF album
Document the design as a PDF album (the blueprint document) for the renders you name: the materials, the build-up of the facade, safety notes and the regulatory references behind them. This is the document a crew builds from. Name the `estimate_id` of the estimate whose prices belong in it: without one the album takes the newest finished estimate of the design, which is not necessarily the one that was just ordered. Requires a completed main render on that design, otherwise the API refuses with an explanation. `requirements` is not honoured on every account: when it is not, the album is still…
| Parameter | Type | Description |
|---|---|---|
design_id * | string | |
render_ids * | array | |
estimate_id | string | The finished estimate to price the album from |
include_blueprints | boolean | |
include_estimate | boolean | |
language | string | Album language, defaults to the account language |
requirements | string |
upscale_render Upscale a render
Enlarge a completed render to a higher resolution. Costs tokens like a render and runs asynchronously: poll the returned job with get_job. A render that is already upscaled, or not finished yet, is refused by the API with an explanation.
| Parameter | Type | Description |
|---|---|---|
render_id * | string |
get_estimate Read an estimate
The finished estimate: its totals, the area and duration it assumes, and every line with its quantity, unit and price. This is the only way to see what was estimated — get_job reports the status of an estimate, never its content. The `unit` of a line is the display code to reuse in add_estimate_line.
| Parameter | Type | Description |
|---|---|---|
estimate_id * | string |
add_estimate_line Add a line to an estimate
Add one line to a generated estimate. `unit` must be a display code of the estimate's own measurement system — read an existing line to see which codes it uses rather than guessing. Totals are recomputed by the server.
| Parameter | Type | Description |
|---|---|---|
estimate_id * | string | |
name * | string | |
quantity * | number | |
section * | string | |
unit_price * | number | |
category | string | |
unit | string |
update_estimate_line Edit a line of an estimate
Change one line of a generated estimate — its name, quantity, unit, unit price, category or section. Only the fields passed are changed. Totals are recomputed by the server.
| Parameter | Type | Description |
|---|---|---|
estimate_id * | string | |
line_id * | string | |
category | string | |
name | string | |
quantity | number | |
section | string | |
unit | string | |
unit_price | number |
delete_estimate_line Remove a line from an estimate
Remove one line from a generated estimate. Totals are recomputed by the server.
| Parameter | Type | Description |
|---|---|---|
estimate_id * | string | |
line_id * | string |
delete_render Delete a render
Delete one render. Deleting the main render of a design returns that design to draft, so it can be rendered again without creating a new one. Deletion is soft on the server side and can be undone by a person in the app; this tool cannot undo it.
| Parameter | Type | Description |
|---|---|---|
render_id * | string |
delete_design Delete a design
Delete one design (concept) of a building, with the renders under it. Deletion is soft on the server side and can be undone by a person in the app; this tool cannot undo it.
| Parameter | Type | Description |
|---|---|---|
building_id * | string | |
design_id * | string |
delete_building Delete a building
Delete a building with everything under it: photos, designs, renders, estimates and albums. Deletion is soft on the server side and can be undone by a person in the app; this tool cannot undo it. Tokens already spent are not refunded.
| Parameter | Type | Description |
|---|---|---|
building_id * | string |
list_token_packages List the token packages
The packages this account can buy, with their price and how many tokens each carries. Read this before buy_tokens instead of assuming a ladder — the packages and their prices change.
buy_tokens Buy tokens for this key
Buy one token package for this key's wallet. Only works if the key was issued with purchasing enabled, and only up to what the key may still spend — a purchase cannot lift the key's own spend cap. The answer says `charged` when the payment provider took it from the saved payment method, or `requires_human` with a `checkout_url` a person has to open. Either way the tokens arrive asynchronously: poll get_balance.
| Parameter | Type | Description |
|---|---|---|
package * | string | Package id from list_token_packages, e.g. "600" |
get_balance Check the agent wallet
What this key can still spend: the api-scope balance of the account and the cap of this key. `is_admissible` is the server's own answer to "will the next paid call be accepted" — read it instead of comparing the numbers yourself.
report_problem Report a problem with this API
Report something wrong with this API itself: a field that is documented but never arrives, a refusal whose wording leaves no way forward, a call that only works on the second try, a result that does not match what was asked for. Free, and it works on an empty wallet, so a refusal can be reported the moment it happens. This is not the way to reach a person about an account or a charge, and no reply comes back through it; what comes back is a reference to quote. Say what was attempted, what was expected and what happened instead, and put the tool name and the ids in `context` so the report can b…
| Parameter | Type | Description |
|---|---|---|
message * | string | What went wrong: what was attempted, what was expected, what happened instead |
category | string | |
context | object |