{
  "schema": "open-furniture.browser-tools/1",
  "version": 1,
  "where": "../../index.html",
  "call": "await window.openfurniture.call(name, args)",
  "numbering": "Bays and cells count from 1: bays left to right, cells bottom to top.",
  "tools": [
    {
      "name": "openfurniture_catalog",
      "description": "Read System 40 Open Joint: the joint, grid, sizes, finishes, part codes, rules, the licence and how to credit it, and the ten proposals with their sizes, joint counts and links. Start here.",
      "inputSchema": {
        "type": "object",
        "properties": {},
        "additionalProperties": false
      },
      "annotations": {
        "readOnlyHint": true
      }
    },
    {
      "name": "openfurniture_get_design",
      "description": "Read the design open in the builder: name, link, shareable URL, outside size, finishes, every bay and cell (front, back, clear height), checks, parts, joints, sheets, mass, material estimate and the credit line. Does not change anything.",
      "inputSchema": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "detail": {
            "type": "string",
            "enum": [
              "summary",
              "full"
            ],
            "description": "full adds the parts, hardware and assembly steps. Default summary."
          }
        }
      },
      "annotations": {
        "readOnlyHint": true
      }
    },
    {
      "name": "openfurniture_set_design",
      "description": "Open a design in the builder: a proposal, a design link or a whole configuration. One undo step. Returns the design as openfurniture_get_design does.",
      "inputSchema": {
        "type": "object",
        "additionalProperties": false,
        "description": "Pass exactly one of preset, link or config.",
        "properties": {
          "preset": {
            "type": "string",
            "enum": [
              "bookcase",
              "stepped",
              "sideboard",
              "media",
              "desk",
              "bench",
              "wardrobe",
              "bedside",
              "low-table",
              "display",
              "hot-desk",
              "twin-desk",
              "work-desk",
              "meeting",
              "standing",
              "team-storage",
              "divider",
              "lockers"
            ],
            "description": "One of the ten proposals, or one of the eight work pieces (desks, tables, storage and lockers at the 800 work depth)."
          },
          "link": {
            "type": "string",
            "pattern": "^v1~",
            "description": "A design link, the part after #build/ in a builder URL."
          },
          "config": {
            "type": "object",
            "description": "A configuration object: {name, depth, carcass, fronts, top:{ends, front, back}, sheet, bays:[{w, h, shelves, cells, knee, spine, centre, beams, grommet}]}."
          }
        }
      },
      "annotations": {}
    },
    {
      "name": "openfurniture_update_piece",
      "description": "Change the whole piece: name, depth, height of every bay, finishes, the top and its overhang, the floor gap or the sheet size. Values the system cannot take are refused with the allowed values. One undo step.",
      "inputSchema": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string",
            "description": "Up to 60 characters."
          },
          "depth": {
            "type": "integer",
            "enum": [
              400,
              600,
              800
            ],
            "description": "Carcass depth in mm. 800 is the work depth for desks and tables: its uprights carry a third line of holes down the middle."
          },
          "height": {
            "type": "integer",
            "minimum": 360,
            "maximum": 2400,
            "multipleOf": 40,
            "description": "Height of every bay in mm, on the 40 mm grid."
          },
          "carcass": {
            "type": "string",
            "enum": [
              "birch",
              "chalk",
              "graphite"
            ],
            "description": "Upright, shelf and back finish."
          },
          "fronts": {
            "type": "string",
            "enum": [
              "birch",
              "chalk",
              "graphite",
              "oxide",
              "olive",
              "cobalt",
              "signal"
            ],
            "description": "Door and drawer finish. Orange (signal) is reserved for the joint in the proposals, but allowed."
          },
          "top": {
            "type": "boolean",
            "description": "One continuous top over the whole run. Needed by open bays."
          },
          "overhang": {
            "type": "integer",
            "minimum": 0,
            "maximum": 300,
            "multipleOf": 10,
            "description": "How far the top runs past each end, mm. Needs a top."
          },
          "overhangFront": {
            "type": "integer",
            "minimum": 0,
            "maximum": 100,
            "multipleOf": 10,
            "description": "How far the top runs past the front, mm. Needs a top."
          },
          "overhangBack": {
            "type": "integer",
            "minimum": 0,
            "maximum": 100,
            "multipleOf": 10,
            "description": "How far the top runs past the back, mm, for a table used from both sides. Needs a top."
          },
          "floorGap": {
            "type": "integer",
            "enum": [
              32,
              112
            ],
            "description": "Clearance under the lowest shelf, mm."
          },
          "sheet": {
            "type": "string",
            "enum": [
              "2500x1250",
              "2440x1220"
            ],
            "description": "Plywood sheet size for nesting."
          }
        }
      },
      "annotations": {}
    },
    {
      "name": "openfurniture_edit_bay",
      "description": "Add, remove or change one bay: width, height, number of cells, even spacing, open below (knees or legs), spine height and, for an open bay, the spine on the centre line, edge beams under the top and a cable grommet. action runs first, so add_right with width 400 adds a 400 bay to the right of the given bay. One undo step.",
      "inputSchema": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "bay"
        ],
        "properties": {
          "bay": {
            "type": "integer",
            "minimum": 1,
            "maximum": 8,
            "description": "Bay number, 1 = leftmost."
          },
          "action": {
            "type": "string",
            "enum": [
              "select",
              "add_left",
              "add_right",
              "remove"
            ],
            "description": "add_left and add_right add a bay beside this one and apply the other fields to the new bay."
          },
          "width": {
            "type": "integer",
            "enum": [
              400,
              600,
              800,
              1200
            ],
            "description": "Bay width in mm. 1200 bays are always open below, under a top."
          },
          "height": {
            "type": "integer",
            "minimum": 360,
            "maximum": 2400,
            "multipleOf": 40,
            "description": "Bay height in mm. With a top, all bays share one height: use openfurniture_update_piece."
          },
          "cells": {
            "type": "integer",
            "minimum": 1,
            "maximum": 20,
            "description": "Number of cells, adding or removing shelves. Cells stay at least 120 mm."
          },
          "evenly": {
            "type": "boolean",
            "description": "Space the shelves evenly."
          },
          "open": {
            "type": "boolean",
            "description": "Open below for knees or legs: no shelves, a spine back under the top."
          },
          "spine": {
            "type": "integer",
            "minimum": 240,
            "maximum": 480,
            "multipleOf": 40,
            "description": "Spine back height in mm, for an open bay."
          },
          "centre": {
            "type": "boolean",
            "description": "Open bay at the 800 work depth: the spine stands on the centre line, so a table works from both sides."
          },
          "beams": {
            "type": "integer",
            "enum": [
              0,
              1,
              2
            ],
            "description": "Open bay: edge beams under the top, 1 at the front, 2 at front and back (needs centre). A bare 1200 edge springs about 9 mm under a 500 N lean; a beam brings it to about 2.4 mm."
          },
          "grommet": {
            "type": "boolean",
            "description": "Open bay: a Ø80 cable grommet in the top, in front of the spine."
          }
        }
      },
      "annotations": {}
    },
    {
      "name": "openfurniture_edit_cell",
      "description": "Change one cell: its front (open, door, doors, drawers), door hinge, drawer count, back, back on the centre line, lock, clothes rail, or the shelf above it (move up or down 40 mm, split the cell in two, merge with the cell above). Selects the cell. One undo step.",
      "inputSchema": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "bay",
          "cell"
        ],
        "properties": {
          "bay": {
            "type": "integer",
            "minimum": 1,
            "maximum": 8,
            "description": "Bay number, 1 = leftmost."
          },
          "cell": {
            "type": "integer",
            "minimum": 1,
            "maximum": 60,
            "description": "Cell number in the bay, 1 = lowest."
          },
          "front": {
            "type": "string",
            "enum": [
              "open",
              "door",
              "doors",
              "drawers"
            ],
            "description": "door and doors are the same choice: 800 bays get a pair, narrower bays one door."
          },
          "hinge": {
            "type": "string",
            "enum": [
              "left",
              "right"
            ],
            "description": "For a single door."
          },
          "drawers": {
            "type": "integer",
            "minimum": 1,
            "maximum": 4,
            "description": "Drawer count, as many as fit at 100 mm fronts or more."
          },
          "back": {
            "type": "boolean",
            "description": "A back panel, the brace. Every bay needs at least one."
          },
          "rail": {
            "type": "boolean",
            "description": "A clothes rail. Needs 600 depth and 500 mm clear."
          },
          "centreBack": {
            "type": "boolean",
            "description": "Put the back on the centre line, so the cell opens from both sides; adds the back if the cell has none. Needs the 800 work depth and no drawers."
          },
          "lock": {
            "type": "boolean",
            "description": "A cam lock in the door. Needs a door or doors."
          },
          "shelfAbove": {
            "type": "string",
            "enum": [
              "up",
              "down",
              "split",
              "merge"
            ],
            "description": "Move the shelf above 40 mm, split this cell in two, or merge it with the cell above."
          }
        }
      },
      "annotations": {}
    },
    {
      "name": "openfurniture_history",
      "description": "Undo or redo the last change, as Cmd/Ctrl+Z does.",
      "inputSchema": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "action"
        ],
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "undo",
              "redo"
            ]
          }
        }
      },
      "annotations": {}
    },
    {
      "name": "openfurniture_view",
      "description": "Show the design to the person watching: 3D or the dimensioned front view, joints as X-ray, fronts open, parts apart, room objects, or reset the camera. Changes no part of the design.",
      "inputSchema": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "view": {
            "type": "string",
            "enum": [
              "3d",
              "front"
            ]
          },
          "joints": {
            "type": "boolean"
          },
          "openFronts": {
            "type": "boolean"
          },
          "partsApart": {
            "type": "boolean"
          },
          "objects": {
            "type": "boolean"
          },
          "reset": {
            "type": "boolean"
          }
        }
      },
      "annotations": {
        "readOnlyHint": true
      }
    },
    {
      "name": "openfurniture_compare",
      "description": "Rebuild one design into another: which parts carry over by code, which uprights are cut down, what is new and what is spare, and the share reused. from defaults to the design in the builder.",
      "inputSchema": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "to"
        ],
        "properties": {
          "from": {
            "type": "object",
            "additionalProperties": false,
            "description": "A design: exactly one of preset (a proposal id), link (a v1~ design link) or config (a configuration object, see api/v1/schema/design.schema.json).",
            "properties": {
              "preset": {
                "type": "string",
                "enum": [
                  "bookcase",
                  "stepped",
                  "sideboard",
                  "media",
                  "desk",
                  "bench",
                  "wardrobe",
                  "bedside",
                  "low-table",
                  "display",
                  "hot-desk",
                  "twin-desk",
                  "work-desk",
                  "meeting",
                  "standing",
                  "team-storage",
                  "divider",
                  "lockers"
                ],
                "description": "One of the ten proposals, or one of the eight work pieces (desks, tables, storage and lockers at the 800 work depth)."
              },
              "link": {
                "type": "string",
                "pattern": "^v1~",
                "description": "A design link, the part after #build/ in a builder URL."
              },
              "config": {
                "type": "object",
                "description": "A configuration object: {name, depth, carcass, fronts, top:{ends, front, back}, sheet, bays:[{w, h, shelves, cells, knee, spine, centre, beams, grommet}]}."
              }
            }
          },
          "to": {
            "type": "object",
            "additionalProperties": false,
            "description": "A design: exactly one of preset (a proposal id), link (a v1~ design link) or config (a configuration object, see api/v1/schema/design.schema.json).",
            "properties": {
              "preset": {
                "type": "string",
                "enum": [
                  "bookcase",
                  "stepped",
                  "sideboard",
                  "media",
                  "desk",
                  "bench",
                  "wardrobe",
                  "bedside",
                  "low-table",
                  "display",
                  "hot-desk",
                  "twin-desk",
                  "work-desk",
                  "meeting",
                  "standing",
                  "team-storage",
                  "divider",
                  "lockers"
                ],
                "description": "One of the ten proposals, or one of the eight work pieces (desks, tables, storage and lockers at the 800 work depth)."
              },
              "link": {
                "type": "string",
                "pattern": "^v1~",
                "description": "A design link, the part after #build/ in a builder URL."
              },
              "config": {
                "type": "object",
                "description": "A configuration object: {name, depth, carcass, fronts, top:{ends, front, back}, sheet, bays:[{w, h, shelves, cells, knee, spine, centre, beams, grommet}]}."
              }
            }
          }
        }
      },
      "annotations": {
        "readOnlyHint": true
      }
    },
    {
      "name": "openfurniture_export",
      "description": "Make one of the builder's files for the design in the builder. deliver: return gives the file text to you (the spec sheet as HTML); download saves it like the button does (the spec sheet opens the print dialog, which blocks scripted pages until closed). Every file carries the design ID and the credit.",
      "inputSchema": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "file"
        ],
        "properties": {
          "file": {
            "type": "string",
            "enum": [
              "sheet",
              "dxf",
              "cut",
              "parts",
              "obj",
              "json"
            ],
            "description": "sheet: A4 spec sheet · dxf: nested cutting file with drilling layers · cut: cut list CSV · parts: parts and hardware CSV · obj: 3D model in mm · json: design record."
          },
          "deliver": {
            "type": "string",
            "enum": [
              "return",
              "download"
            ],
            "description": "Default return."
          }
        }
      },
      "annotations": {}
    },
    {
      "name": "openfurniture_credit",
      "description": "The credit line and licence terms for the design in the builder or a given design, as text, HTML or Markdown. Use it wherever you show, share or build from a design.",
      "inputSchema": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "design": {
            "type": "object",
            "additionalProperties": false,
            "description": "A design: exactly one of preset (a proposal id), link (a v1~ design link) or config (a configuration object, see api/v1/schema/design.schema.json).",
            "properties": {
              "preset": {
                "type": "string",
                "enum": [
                  "bookcase",
                  "stepped",
                  "sideboard",
                  "media",
                  "desk",
                  "bench",
                  "wardrobe",
                  "bedside",
                  "low-table",
                  "display",
                  "hot-desk",
                  "twin-desk",
                  "work-desk",
                  "meeting",
                  "standing",
                  "team-storage",
                  "divider",
                  "lockers"
                ],
                "description": "One of the ten proposals, or one of the eight work pieces (desks, tables, storage and lockers at the 800 work depth)."
              },
              "link": {
                "type": "string",
                "pattern": "^v1~",
                "description": "A design link, the part after #build/ in a builder URL."
              },
              "config": {
                "type": "object",
                "description": "A configuration object: {name, depth, carcass, fronts, top:{ends, front, back}, sheet, bays:[{w, h, shelves, cells, knee, spine, centre, beams, grommet}]}."
              }
            }
          },
          "format": {
            "type": "string",
            "enum": [
              "text",
              "html",
              "markdown"
            ],
            "description": "Default text."
          }
        }
      },
      "annotations": {
        "readOnlyHint": true
      }
    },
    {
      "name": "openfurniture_navigate",
      "description": "Go to a page or section: home, a home section, a proposal on the home page, the builder, the specification or the make page.",
      "inputSchema": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "page"
        ],
        "properties": {
          "page": {
            "type": "string",
            "enum": [
              "home",
              "joint",
              "why",
              "furniture",
              "grid",
              "parts",
              "rebuild",
              "open",
              "build",
              "system",
              "make"
            ]
          },
          "proposal": {
            "type": "string",
            "enum": [
              "bookcase",
              "stepped",
              "sideboard",
              "media",
              "desk",
              "bench",
              "wardrobe",
              "bedside",
              "low-table",
              "display",
              "hot-desk",
              "twin-desk",
              "work-desk",
              "meeting",
              "standing",
              "team-storage",
              "divider",
              "lockers"
            ],
            "description": "With page furniture, scroll to that proposal."
          }
        }
      },
      "annotations": {
        "readOnlyHint": true
      }
    }
  ]
}
