{
  "version": "1.0.0",
  "kind": "olonjs-page-contract",
  "slug": "docs",
  "title": "OlonJS Architecture Specifications v1.3",
  "description": "Mandatory Standard — Sovereign Core Edition. Architecture, Studio/ICE UX, Path-Deterministic Nested Editing.",
  "manifestHref": "/mcp-manifests/docs.json",
  "systemPrompt": "You are operating the \"OlonJS Architecture Specifications v1.3\" page in OlonJS Studio. Use only the declared tools and keep mutations valid against the section schema.",
  "sectionTypes": [
    "header",
    "footer",
    "tiptap"
  ],
  "sectionInstances": [
    {
      "id": "global-header",
      "type": "header",
      "scope": "global",
      "label": "header"
    },
    {
      "id": "global-footer",
      "type": "footer",
      "scope": "global",
      "label": "footer"
    },
    {
      "id": "docs-main",
      "type": "tiptap",
      "scope": "local",
      "label": "tiptap"
    }
  ],
  "sectionSchemas": {
    "header": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "anchorId": {
          "type": "string",
          "description": "ui:text"
        },
        "logoText": {
          "type": "string",
          "description": "ui:text"
        },
        "menu": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "label": {
                "type": "string",
                "description": "ui:text"
              },
              "href": {
                "type": "string",
                "description": "ui:text"
              },
              "external": {
                "type": "boolean",
                "description": "ui:checkbox"
              },
              "isCta": {
                "type": "boolean",
                "description": "ui:checkbox"
              },
              "description": {
                "type": "string",
                "description": "ui:textarea"
              },
              "icon": {
                "type": "string",
                "description": "ui:icon-picker"
              },
              "children": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "label": {
                      "type": "string",
                      "description": "ui:text"
                    },
                    "href": {
                      "type": "string",
                      "description": "ui:text"
                    },
                    "external": {
                      "type": "boolean",
                      "description": "ui:checkbox"
                    },
                    "isCta": {
                      "type": "boolean",
                      "description": "ui:checkbox"
                    },
                    "description": {
                      "type": "string",
                      "description": "ui:textarea"
                    },
                    "icon": {
                      "type": "string",
                      "description": "ui:icon-picker"
                    }
                  },
                  "additionalProperties": false,
                  "required": [
                    "label",
                    "href"
                  ]
                },
                "description": "ui:list"
              }
            },
            "additionalProperties": false,
            "required": [
              "label",
              "href"
            ]
          },
          "description": "ui:list"
        },
        "actionsMenu": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "label": {
                "type": "string",
                "description": "ui:text"
              },
              "href": {
                "type": "string",
                "description": "ui:text"
              },
              "external": {
                "type": "boolean",
                "description": "ui:checkbox"
              },
              "isCta": {
                "type": "boolean",
                "description": "ui:checkbox"
              },
              "description": {
                "type": "string",
                "description": "ui:textarea"
              },
              "icon": {
                "type": "string",
                "description": "ui:icon-picker"
              },
              "children": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "label": {
                      "type": "string",
                      "description": "ui:text"
                    },
                    "href": {
                      "type": "string",
                      "description": "ui:text"
                    },
                    "external": {
                      "type": "boolean",
                      "description": "ui:checkbox"
                    },
                    "isCta": {
                      "type": "boolean",
                      "description": "ui:checkbox"
                    },
                    "description": {
                      "type": "string",
                      "description": "ui:textarea"
                    },
                    "icon": {
                      "type": "string",
                      "description": "ui:icon-picker"
                    }
                  },
                  "additionalProperties": false,
                  "required": [
                    "label",
                    "href"
                  ]
                },
                "description": "ui:list"
              }
            },
            "additionalProperties": false,
            "required": [
              "label",
              "href"
            ]
          },
          "description": "ui:list"
        }
      },
      "additionalProperties": false,
      "required": [
        "logoText"
      ]
    },
    "footer": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "anchorId": {
          "type": "string",
          "description": "ui:text"
        },
        "brandText": {
          "type": "string",
          "description": "ui:text"
        },
        "tagline": {
          "type": "string",
          "description": "ui:textarea"
        },
        "versionText": {
          "type": "string",
          "description": "ui:text"
        },
        "columns": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "title": {
                "type": "string",
                "description": "ui:text"
              },
              "menu": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "label": {
                      "type": "string",
                      "description": "ui:text"
                    },
                    "href": {
                      "type": "string",
                      "description": "ui:text"
                    },
                    "external": {
                      "type": "boolean",
                      "description": "ui:checkbox"
                    }
                  },
                  "additionalProperties": false,
                  "required": [
                    "label",
                    "href"
                  ]
                },
                "description": "ui:list"
              }
            },
            "additionalProperties": false,
            "required": [
              "title"
            ]
          },
          "description": "ui:list"
        },
        "bottomLinks": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "label": {
                "type": "string",
                "description": "ui:text"
              },
              "href": {
                "type": "string",
                "description": "ui:text"
              },
              "external": {
                "type": "boolean",
                "description": "ui:checkbox"
              }
            },
            "additionalProperties": false,
            "required": [
              "label",
              "href"
            ]
          },
          "description": "ui:list"
        },
        "copyright": {
          "type": "string",
          "description": "ui:text"
        }
      },
      "additionalProperties": false,
      "required": [
        "brandText",
        "copyright"
      ]
    },
    "tiptap": {
      "type": "object",
      "properties": {
        "anchorId": {
          "type": "string",
          "description": "ui:text"
        },
        "content": {
          "type": "string",
          "description": "ui:editorial-markdown",
          "default": ""
        }
      },
      "additionalProperties": false
    }
  },
  "tools": [
    {
      "name": "update-section",
      "description": "Update a section field in the Studio draft. Does not persist — call save when all updates are complete. Use sectionType to select the matching schema from sectionSchemas.",
      "inputSchema": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "slug": {
            "type": "string",
            "description": "Canonical page slug currently open in Studio."
          },
          "sectionId": {
            "type": "string",
            "description": "Concrete section instance id inside the current draft."
          },
          "sectionType": {
            "type": "string",
            "description": "Section type being updated (for example \"hero\" or \"header\"). Used to select the correct validation schema."
          },
          "scope": {
            "type": "string",
            "enum": [
              "local",
              "global"
            ],
            "default": "local"
          },
          "data": {
            "type": "object",
            "description": "Full replacement payload validated against the schema declared for sectionType."
          },
          "itemPath": {
            "type": "array",
            "description": "Optional root-to-leaf selection path for targeted field mutation.",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "fieldKey": {
                  "type": "string"
                },
                "itemId": {
                  "type": "string"
                }
              },
              "required": [
                "fieldKey"
              ]
            }
          },
          "value": {
            "description": "Value written to the final field targeted by itemPath."
          },
          "fieldKey": {
            "type": "string",
            "description": "Shorthand for a top-level scalar field update when itemPath is omitted."
          }
        },
        "required": [
          "sectionId"
        ],
        "oneOf": [
          {
            "required": [
              "data"
            ]
          },
          {
            "required": [
              "itemPath",
              "value"
            ]
          },
          {
            "required": [
              "fieldKey",
              "value"
            ]
          }
        ]
      }
    },
    {
      "name": "save",
      "description": "Persist all pending draft changes using the active save mode (local file, hot save, or save2repo). Call once after all update-section calls are complete.",
      "inputSchema": {
        "type": "object",
        "additionalProperties": false,
        "properties": {}
      }
    }
  ]
}
