KADCAD – instructions for AI agents

KADCAD (kadcad.cz) is a browser-based 3D planner for plots and gardens. It shows a real Czech/Slovak cadastral parcel with its terrain, or a free rectangular plot of your own, and lets you place a house, pool, walls, stairs, paving, garden elements and plants, then export drawings (DXF, IFC, PDF, ...).

This page tells an AI agent (Claude, ChatGPT, a voice bot, ...) how to drive the planner on behalf of a user. The application exposes a JavaScript API on the page: window.k3d.

1. How to connect

If you cannot run JavaScript on the page, tell the user the page must be opened in an agent-capable browser.

2. Conventions

3. Quick start (free plot, 20 x 30 m, house, pool, terrace)

await k3d.createFreePlot({ width: 20, length: 30 });            // flat rectangle
const b = k3d.plot().bbox;                                       // where is the plot?
const house = await k3d.addHouse({ width: 10, depth: 8, roof: 'gable',
  eaveHeight: 3, ridgeHeight: 6.2, frontSetback: 5, sideSetback: 3, frontDir: 'north', sideDir: 'west' });
await k3d.addPool({ y: b.yMin + 5, x: b.xMax - 7, len: 8, wid: 4, depth: 1.5 });
await k3d.addPaving({ preset: 'zamk6', ring: [[b.yMin+3,b.xMin+14],[b.yMin+10,b.xMin+14],[b.yMin+10,b.xMin+19],[b.yMin+3,b.xMin+19]] });
await k3d.view({ mode: '3d', azimuth: 40, elevation: 35 });
const png = await k3d.screenshot();                              // data:image/png;base64,...

4. API reference

Reading

Plot

Buildings

Objects (all return the new object's id: uid, or sd for plants and hedges)

View, output

5. Good practice for a voice assistant

6. Notes and limits

← KADCAD · Markdown · llms.txt