{
  "schemaVersion": 1,
  "id": "com.example.wall_counter",
  "name": "Wall Counter",
  "version": "1.0.0",
  "description": "Counts walls in the active WebCAD project.",
  "author": {
    "name": "Example Studio"
  },
  "license": "MIT",
  "category": "analysis",
  "tags": [
    "walls",
    "count"
  ],
  "sdkVersion": 1,
  "permissions": [
    "elements:read"
  ],
  "commands": [
    {
      "id": "count_walls",
      "label": "Count walls",
      "description": "Returns the number of walls in the active project.",
      "parameters": {
        "type": "object",
        "properties": {},
        "additionalProperties": false
      },
      "isQuery": true,
      "code": "const elements = await context.elements.getAll(); const walls = elements.filter((element) => element.ifcType === 'IfcWall'); return { wallCount: walls.length };"
    }
  ]
}
