# design_drawing

URL: https://docs.ajusteur.com/tools/design_drawing

Draw a design

A front elevation of a design as SVG, with overall and bay or unit dimensions in millimetres: one drawing for a storage run or a piece, one per wall for a kitchen. It is drawn from the same geometry the engine computed. Save the svg to a file or show it inline so the customer sees what they are getting. It is a picture for the conversation, not a workshop drawing.

<Callout type="info">Read only. Nothing is stored. Every answer carries `say`, the sentence an agent may pass to the customer.</Callout>

## Parameters [#parameters]

<TypeTable type={{"design":{"type":"object","description":"","required":true},"design.kind":{"type":"\"kitchen\"","description":"","required":true},"design.design":{"type":"object","description":"The design returned by a design_storage tool","required":true},"design.spec":{"type":"object","description":"A piece spec accepted by design_piece_check","required":true},"design.kitchen":{"type":"object","description":"The same input as design_kitchen_check","required":true},"design.kitchen.shape":{"type":"\"straight\" | \"l\" | \"u\" | \"galley\"","description":"","required":true},"design.kitchen.walls":{"type":"object[]","description":"One wall for straight, two for l and galley, three for u. 1 to 3 items","required":true},"design.kitchen.walls[].length":{"type":"integer","description":"Wall length, whole millimetres, 1200 to 8000","required":true},"design.kitchen.walls[].units":{"type":"object[]","description":"Base and tall units from the left. Leave out to fill the wall with 600 mm cupboards. 0 to 20 items","required":false},"design.kitchen.walls[].units[].kind":{"type":"\"doors\" | \"drawers\" | \"sink\" | \"hob\" | \"dishwasher\" | \"corner\" | \"tall-pantry\" | \"tall-oven\" | \"tall-fridge\" | \"hood\"","description":"doors: Cupboard; drawers: Drawers; sink: Sink cupboard; hob: Hob, drawers under; dishwasher: Dishwasher; corner: Corner cupboard; tall-pantry: Tall cupboard; tall-oven: Tall oven housing; tall-fridge: Tall fridge housing; hood: Hood cabinet","required":true},"design.kitchen.walls[].units[].w":{"type":"300 | 400 | 450 | 500 | 600 | 800 | 900 | 1000 | 1200","description":"Unit width in mm, one of 300, 400, 450, 500, 600, 800, 900, 1000, 1200","required":true},"design.kitchen.walls[].wallUnits":{"type":"boolean","description":"Wall cabinets above this run","required":false,"default":"true"},"design.kitchen.walls[].openStart":{"type":"boolean","description":"The run starts away from a wall: an end panel closes it","required":false},"design.kitchen.walls[].openEnd":{"type":"boolean","description":"The run ends away from a wall","required":false},"design.kitchen.ceiling":{"type":"integer","description":"Ceiling height, whole millimetres, 2200 to 4000","required":false,"default":"2700"},"design.kitchen.worktop":{"type":"\"quartz\" | \"marble\" | \"compact\"","description":"","required":true},"design.kitchen.splashback":{"type":"\"none\" | \"upstand\" | \"full\"","description":"Stone between worktop and wall cabinets: a 100 mm upstand or the full height","required":false,"default":"\"upstand\""},"design.kitchen.handles":{"type":"\"bar\" | \"push\"","description":"","required":false,"default":"\"bar\""},"design.kitchen.corner":{"type":"\"blind\" | \"dead\"","description":"Blind corner with a pull out, or a closed dead corner","required":false},"design.kitchen.hood":{"type":"\"chimney\" | \"integrated\"","description":"","required":false},"design.kitchen.sinkCut":{"type":"object","description":"","required":false},"design.kitchen.sinkCut.w":{"type":"integer","description":"Sink cut out width, whole millimetres, 200 to 1200","required":true},"design.kitchen.sinkCut.h":{"type":"integer","description":"Sink cut out depth, whole millimetres, 200 to 700","required":true},"design.kitchen.hobCut":{"type":"object","description":"","required":false},"design.kitchen.hobCut.w":{"type":"integer","description":"Hob cut out width, whole millimetres, 200 to 1200","required":true},"design.kitchen.hobCut.h":{"type":"integer","description":"Hob cut out depth, whole millimetres, 200 to 700","required":true}}} />

## Example [#example]

<Tabs items={["Request", "Response"]}>
<Tab value="Request">

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "design_drawing",
    "arguments": {
      "design": {
        "kind": "storage",
        "design": {
          "schemaVersion": 1,
          "family": "straight-storage",
          "id": "storage-design",
          "name": "Wardrobe",
          "room": {
            "widthMm": 2400,
            "depthMm": 4000,
            "heightMm": 2500,
            "obstacles": []
          },
          "assembly": {
            "id": "wardrobe",
            "behavior": {
              "id": "hinged-storage",
              "version": 1
            },
            "context": "fitted",
            "anchor": "start",
            "position": {
              "x": 0,
              "y": 0,
              "z": 0
            },
            "rotationDeg": 0,
            "widthMm": 2400,
            "heightMm": 2300,
            "depthMm": 600,
            "bays": [
              {
                "id": "bay-1",
                "widthMm": 800,
                "locked": false,
                "minWidthMm": 400,
                "maxWidthMm": 1200,
                "doors": 2,
                "shelves": 1,
                "rail": true
              },
              {
                "id": "bay-2",
                "widthMm": 800,
                "locked": false,
                "minWidthMm": 400,
                "maxWidthMm": 1200,
                "doors": 2,
                "shelves": 4,
                "rail": false
              },
              {
                "id": "bay-3",
                "widthMm": 800,
                "locked": false,
                "minWidthMm": 400,
                "maxWidthMm": 1200,
                "doors": 2,
                "shelves": 1,
                "rail": true
              }
            ],
            "construction": {
              "panelThicknessMm": 18,
              "backThicknessMm": 9,
              "plinthHeightMm": 100,
              "sharedTop": true,
              "notes": []
            },
            "materials": {
              "body": {
                "id": "concept-body",
                "revision": "1"
              },
              "hardware": {
                "id": "concept-hinge",
                "revision": "1"
              },
              "back": {
                "id": "concept-back",
                "revision": "1"
              },
              "handle": {
                "id": "concept-handle",
                "revision": "1"
              }
            }
          }
        }
      }
    }
  }
}
```

</Tab>
<Tab value="Response">

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "content": [
      {
        "type": "text",
        "text": "…the structuredContent as JSON text…"
      }
    ],
    "structuredContent": {
      "ok": true,
      "format": "image/svg+xml",
      "drawings": [
        {
          "title": "Wardrobe",
          "widthMm": 2400,
          "heightMm": 2300,
          "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 2880 2804\" width=\"1080\" height=\"1052\" role=\"img\" aria-label=\"Wardrobe, 2400 wide, 2300 high, 600 deep\"><title>Wardrobe, 2400 wide, 2300 high, 600 deep</title><rect width=\"2880\" height=\"2804\" fill=\"#fffdf9\"/><text x=\"96\" y=\"86.4\" font-size=\"57.6\" font-weight=\"600\" fill=\"#2b2622\" font-family=\"ui-sans-serif, system-ui, sans-serif\">Wardrobe, 2400 wide, 2300 high, 600 deep</text><text x=\"96\" y=\"158.4\" font-size=\"40.8\" fill=\"#8a8178\" font-family=\"ui-sans-serif, system-ui, sans-serif\">Front elevation, millimetres. A picture for the conversation, not a workshop drawing.</text><line x1=\"48\" y1=\"2516\" x2=\"2544\" y2=\"2516\" stroke=\"#2b2622\" stroke-width=\"7.2\"/><rect x=\"116\" y=\"2416\" width=\"760\" height=\"100\" fill=\"#f6f1ea\" stroke=\"#2b2622\" stroke-width=\"4.3\"/><rect x=\"96\" y=\"234\" width=\"800\" height=\"2182\" fill=\"#f6f1ea\" stroke=\"#2b2622\" stroke-width=\"5.8\"/><rect x=\"97.5\" y=\"235.5\" width=\"397\" height=\"2179\" fill=\"#ffffff\" stroke=\"#2b2622\" stroke-width=\"3.8\"/><line x1=\"494.5\" y1=\"2414.5\" x2=\"97.5\" y2=\"1325\" stroke=\"#8a8178\" stroke-width=\"2.4\" stroke-dasharray=\"19.2 14.4\"/><line x1=\"494.5\" y1=\"235.5\" x2=\"97.5\" y2=\"1325\" stroke=\"#8a8178\" stroke-width=\"2.4\" stroke-dasharray=\"19.2 14.4\"/><rect x=\"497.5\" y=\"235.5\" width=\"397\" height=\"2179\" fill=\"#ffffff\" stroke=\"#2b2622\" stroke-width=\"3.8\"/><line x1=\"497.5\" y1=\"2414.5\" x2=\"894.5\" y2=\"1325\" stroke=\"#8a8178\" stroke-width=\"2.4\" stroke-dasharray=\"19.2 14.4\"/><line x1=\"497.5\" y1=\"235.5\" x2=\"894.5\" y2=\"1325\" stroke=\"#8a8178\" stroke-width=\"2.4\" stroke-dasharray=\"19.2 14.4\"/><line x1=\"114\" y1=\"554\" x2=\"878\" y2=\"554\" stroke=\"#8a8178\" stroke-width=\"2.9\" stroke-dasharray=\"19.2 14.4\"/><line x1=\"114\" y1=\"632\" x2=\"878\" y2=\"632\" stroke=\"#8a8178\" stroke-width=\"5.3\" stroke-dasharray=\"19.2 14.4\"/><text x=\"496\" y=\"684.8\" font-size=\"36\" text-anchor=\"middle\" fill=\"#8a8178\" font-family=\"ui-sans-serif, system-ui, sans-serif\">rail</text><line x1=\"96\" y1=\"2588\" x2=\"896\" y2=\"2588\" stroke=\"#8a8178\" stroke-width=\"3.4\"/><line x1=\"96\" y1=\"2564\" x2=\"96\" y2=\"2612\" stroke=\"#8a8178\" stroke-width=\"3.4\"/><line x1=\"896\" y1=\"2564\" x2=\"896\" y2=\"2612\" stroke=\"#8a8178\" stroke-width=\"3.4\"/><text x=\"496\" y=\"2645.6\" font-size=\"43.2\" text-anchor=\"middle\" fill=\"#8a8178\" font-family=\"ui-sans-serif, system-ui, sans-serif\">800</text><rect x=\"916\" y=\"2416\" width=\"760\" height=\"100\" fill=\"#f6f1ea\" stroke=\"#2b2622\" stroke-width=\"4.3\"/><rect x=\"896\" y=\"234\" width=\"800\" height=\"2182\" fill=\"#f6f1ea\" stroke=\"#2b2622\" stroke-width=\"5.8\"/><rect x=\"897.5\" y=\"235.5\" width=\"397\" height=\"2179\" fill=\"#ffffff\" stroke=\"#2b2622\" stroke-width=\"3.8\"/><line x1=\"1294.5\" y1=\"2414.5\" x2=\"897.5\" y2=\"1325\" stroke=\"#8a8178\" stroke-width=\"2.4\" stroke-dasharray=\"19.2 14.4\"/><line x1=\"1294.5\" y1=\"235.5\" x2=\"897.5\" y2=\"1325\" stroke=\"#8a8178\" stroke-width=\"2.4\" stroke-dasharray=\"19.2 14.4\"/><rect x=\"1297.5\" y=\"235.5\" width=\"397\" height=\"2179\" fill=\"#ffffff\" stroke=\"#2b2622\" stroke-width=\"3.8\"/><line x1=\"1297.5\" y1=\"2414.5\" x2=\"1694.5\" y2=\"1325\" stroke=\"#8a8178\" stroke-width=\"2.4\" stroke-dasharray=\"19.2 14.4\"/><line x1=\"1297.5\" y1=\"235.5\" x2=\"1694.5\" y2=\"1325\" stroke=\"#8a8178\" stroke-width=\"2.4\" stroke-dasharray=\"19.2 14.4\"/><line x1=\"914\" y1=\"1965\" x2=\"1678\" y2=\"1965\" stroke=\"#8a8178\" stroke-width=\"2.9\" stroke-dasharray=\"19.2 14.4\"/><line x1=\"914\" y1=\"1532\" x2=\"1678\" y2=\"1532\" stroke=\"#8a8178\" stroke-width=\"2.9\" stroke-dasharray=\"19.2 14.4\"/><line x1=\"914\" y1=\"1100\" x2=\"1678\" y2=\"1100\" stroke=\"#8a8178\" stroke-width=\"2.9\" stroke-dasharray=\"19.2 14.4\"/><line x1=\"914\" y1=\"667\" x2=\"1678\" y2=\"667\" stroke=\"#8a8178\" stroke-width=\"2.9\" stroke-dasharray=\"19.2 14.4\"/><line x1=\"896\" y1=\"2588\" x2=\"1696\" y2=\"2588\" stroke=\"#8a8178\" stroke-width=\"3.4\"/><line x1=\"896\" y1=\"2564\" x2=\"896\" y2=\"2612\" stroke=\"#8a8178\" stroke-width=\"3.4\"/><line x1=\"1696\" y1=\"2564\" x2=\"1696\" y2=\"2612\" stroke=\"#8a8178\" stroke-width=\"3.4\"/><text x=\"1296\" y=\"2645.6\" font-size=\"43.2\" text-anchor=\"middle\" fill=\"#8a8178\" font-family=\"ui-sans-serif, system-ui, sans-serif\">800</text><rect x=\"1716\" y=\"2416\" width=\"760\" height=\"100\" fill=\"#f6f1ea\" stroke=\"#2b2622\" stroke-width=\"4.3\"/><rect x=\"1696\" y=\"234\" width=\"800\" height=\"2182\" fill=\"#f6f1ea\" stroke=\"#2b2622\" stroke-width=\"5.8\"/><rect x=\"1697.5\" y=\"235.5\" width=\"397\" height=\"2179\" fill=\"#ffffff\" stroke=\"#2b2622\" stroke-width=\"3.8\"/><line x1=\"2094.5\" y1=\"2414.5\" x2=\"1697.5\" y2=\"1325\" stroke=\"#8a8178\" stroke-width=\"2.4\" stroke-dasharray=\"19.2 14.4\"/><line x1=\"2094.5\" y1=\"235.5\" x2=\"1697.5\" y2=\"1325\" stroke=\"#8a8178\" stroke-width=\"2.4\" stroke-dasharray=\"19.2 14.4\"/><rect x=\"2097.5\" y=\"235.5\" width=\"397\" height=\"2179\" fill=\"#ffffff\" stroke=\"#2b2622\" stroke-width=\"3.8\"/><line x1=\"2097.5\" y1=\"2414.5\" x2=\"2494.5\" y2=\"1325\" stroke=\"#8a8178\" stroke-width=\"2.4\" stroke-dasharray=\"19.2 14.4\"/><line x1=\"2097.5\" y1=\"235.5\" x2=\"2494.5\" y2=\"1325\" stroke=\"#8a8178\" stroke-width=\"2.4\" stroke-dasharray=\"19.2 14.4\"/><line x1=\"1714\" y1=\"554\" x2=\"2478\" y2=\"554\" stroke=\"#8a8178\" stroke-width=\"2.9\" stroke-dasharray=\"19.2 14.4\"/><line x1=\"1714\" y1=\"632\" x2=\"2478\" y2=\"632\" stroke=\"#8a8178\" stroke-width=\"5.3\" stroke-dasharray=\"19.2 14.4\"/><text x=\"2096\" y=\"684.8\" font-size=\"36\" text-anchor=\"middle\" fill=\"#8a8178\" font-family=\"ui-sans-serif, system-ui, sans-serif\">rail</text><line x1=\"1696\" y1=\"2588\" x2=\"2496\" y2=\"2588\" stroke=\"#8a8178\" stroke-width=\"3.4\"/><line x1=\"1696\" y1=\"2564\" x2=\"1696\" y2=\"2612\" stroke=\"#8a8178\" stroke-width=\"3.4\"/><line x1=\"2496\" y1=\"2564\" x2=\"2496\" y2=\"2612\" stroke=\"#8a8178\" stroke-width=\"3.4\"/><text x=\"2096\" y=\"2645.6\" font-size=\"43.2\" text-anchor=\"middle\" fill=\"#8a8178\" font-family=\"ui-sans-serif, system-ui, sans-serif\">800</text><rect x=\"96\" y=\"216\" width=\"2400\" height=\"18\" fill=\"#f6f1ea\" stroke=\"#2b2622\" stroke-width=\"5.8\"/><line x1=\"96\" y1=\"2684\" x2=\"2496\" y2=\"2684\" stroke=\"#8a8178\" stroke-width=\"3.4\"/><line x1=\"96\" y1=\"2660\" x2=\"96\" y2=\"2708\" stroke=\"#8a8178\" stroke-width=\"3.4\"/><line x1=\"2496\" y1=\"2660\" x2=\"2496\" y2=\"2708\" stroke=\"#8a8178\" stroke-width=\"3.4\"/><text x=\"1296\" y=\"2741.6\" font-size=\"43.2\" text-anchor=\"middle\" fill=\"#8a8178\" font-family=\"ui-sans-serif, system-ui, sans-serif\">2400</text><line x1=\"2688\" y1=\"2516\" x2=\"2688\" y2=\"216\" stroke=\"#8a8178\" stroke-width=\"3.4\"/><line x1=\"2664\" y1=\"2516\" x2=\"2712\" y2=\"2516\" stroke=\"#8a8178\" stroke-width=\"3.4\"/><line x1=\"2664\" y1=\"216\" x2=\"2712\" y2=\"216\" stroke=\"#8a8178\" stroke-width=\"3.4\"/><text x=\"2750.4\" y=\"1366\" font-size=\"43.2\" text-anchor=\"middle\" fill=\"#8a8178\" font-family=\"ui-sans-serif, system-ui, sans-serif\" transform=\"rotate(-90 2750.4 1366)\">2300</text><line x1=\"2568\" y1=\"2516\" x2=\"2568\" y2=\"2416\" stroke=\"#8a8178\" stroke-width=\"3.4\"/><line x1=\"2544\" y1=\"2516\" x2=\"2592\" y2=\"2516\" stroke=\"#8a8178\" stroke-width=\"3.4\"/><line x1=\"2544\" y1=\"2416\" x2=\"2592\" y2=\"2416\" stroke=\"#8a8178\" stroke-width=\"3.4\"/><line x1=\"2568\" y1=\"2416\" x2=\"2568\" y2=\"216\" stroke=\"#8a8178\" stroke-width=\"3.4\"/><line x1=\"2544\" y1=\"2416\" x2=\"2592\" y2=\"2416\" stroke=\"#8a8178\" stroke-width=\"3.4\"/><line x1=\"2544\" y1=\"216\" x2=\"2592\" y2=\"216\" stroke=\"#8a8178\" stroke-width=\"3.4\"/><text x=\"2630.4\" y=\"1316\" font-size=\"43.2\" text-anchor=\"middle\" fill=\"#8a8178\" font-family=\"ui-sans-serif, system-ui, sans-serif\" transform=\"rotate(-90 2630.4 1316)\">2200</text></svg>"
        }
      ],
      "say": "Here is a front view of the design, with the main sizes in millimetres. Ajusteur measures on site before making anything."
    }
  }
}
```

</Tab>
</Tabs>

<small>Tool 12 of the `ajusteur/v1` surface. This page is generated from the tool definition. Do not edit it by hand.</small>

