{
  "version": "1.0.0",
  "kind": "olonjs-page-contract",
  "slug": "home",
  "title": "Il Giardino Tropicale",
  "description": "Azienda agricola siciliana specializzata in frutti tropicali.",
  "manifestHref": "/mcp-manifests/home.json",
  "systemPrompt": "You are operating the \"Il Giardino Tropicale\" page in OlonJS Studio. Use only the declared tools and keep mutations valid against the section schema.",
  "sectionTypes": [
    "header",
    "footer",
    "home-hero",
    "product-grid",
    "mission-collage",
    "buyer-form"
  ],
  "sectionInstances": [
    {
      "id": "global-header",
      "type": "header",
      "scope": "global",
      "label": "header"
    },
    {
      "id": "global-footer",
      "type": "footer",
      "scope": "global",
      "label": "footer"
    },
    {
      "id": "home-hero-1",
      "type": "home-hero",
      "scope": "local",
      "label": "Sapore autentico, dalla Sicilia alla tua tavola"
    },
    {
      "id": "product-grid-1",
      "type": "product-grid",
      "scope": "local",
      "label": "L'Attività agricola Siciliana."
    },
    {
      "id": "mission-collage-1",
      "type": "mission-collage",
      "scope": "local",
      "label": "mission-collage"
    },
    {
      "id": "buyer-form-1",
      "type": "buyer-form",
      "scope": "local",
      "label": "Sei un buyer?"
    }
  ],
  "sectionSchemas": {
    "header": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "anchorId": {
          "type": "string",
          "description": "ui:text"
        },
        "logo": {
          "type": "object",
          "properties": {
            "url": {
              "type": "string"
            },
            "alt": {
              "type": "string"
            }
          },
          "additionalProperties": false,
          "required": [
            "url"
          ],
          "description": "ui:image-picker"
        },
        "menu": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "label": {
                "type": "string",
                "description": "ui:text"
              },
              "href": {
                "type": "string",
                "description": "ui:text"
              },
              "external": {
                "type": "boolean"
              },
              "isCta": {
                "type": "boolean"
              }
            },
            "additionalProperties": false,
            "required": [
              "label",
              "href"
            ]
          }
        },
        "ctaLabel": {
          "type": "string",
          "description": "ui:text"
        },
        "ctaHref": {
          "type": "string",
          "description": "ui:text"
        }
      },
      "additionalProperties": false,
      "required": [
        "logo"
      ]
    },
    "footer": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "anchorId": {
          "type": "string",
          "description": "ui:text"
        },
        "logo": {
          "type": "object",
          "properties": {
            "url": {
              "type": "string"
            },
            "alt": {
              "type": "string"
            }
          },
          "additionalProperties": false,
          "required": [
            "url"
          ],
          "description": "ui:image-picker"
        },
        "menu": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "label": {
                "type": "string",
                "description": "ui:text"
              },
              "href": {
                "type": "string",
                "description": "ui:text"
              },
              "external": {
                "type": "boolean"
              },
              "isCta": {
                "type": "boolean"
              }
            },
            "additionalProperties": false,
            "required": [
              "label",
              "href"
            ]
          }
        },
        "companyName": {
          "type": "string",
          "description": "ui:text"
        },
        "vatLabel": {
          "type": "string",
          "description": "ui:text"
        },
        "address": {
          "type": "string",
          "description": "ui:textarea"
        },
        "email": {
          "type": "string",
          "description": "ui:text"
        },
        "phone": {
          "type": "string",
          "description": "ui:text"
        },
        "socialLinks": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "label": {
                "type": "string",
                "description": "ui:text"
              },
              "href": {
                "type": "string",
                "description": "ui:text"
              }
            },
            "additionalProperties": false,
            "required": [
              "label",
              "href"
            ]
          },
          "description": "ui:list"
        },
        "copyright": {
          "type": "string",
          "description": "ui:text"
        }
      },
      "additionalProperties": false,
      "required": [
        "logo",
        "companyName",
        "vatLabel",
        "address",
        "email",
        "phone",
        "socialLinks",
        "copyright"
      ]
    },
    "home-hero": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "anchorId": {
          "type": "string",
          "description": "ui:text"
        },
        "eyebrow": {
          "type": "string",
          "description": "ui:text"
        },
        "title": {
          "type": "string",
          "description": "ui:text"
        },
        "description": {
          "type": "string",
          "description": "ui:textarea"
        },
        "ctaLabel": {
          "type": "string",
          "description": "ui:text"
        },
        "ctaHref": {
          "type": "string",
          "description": "ui:text"
        },
        "backgroundImage": {
          "type": "object",
          "properties": {
            "url": {
              "type": "string"
            },
            "alt": {
              "type": "string"
            }
          },
          "additionalProperties": false,
          "required": [
            "url"
          ],
          "description": "ui:image-picker"
        },
        "illustration": {
          "type": "object",
          "properties": {
            "url": {
              "type": "string"
            },
            "alt": {
              "type": "string"
            }
          },
          "additionalProperties": false,
          "required": [
            "url"
          ],
          "description": "ui:image-picker"
        }
      },
      "additionalProperties": false,
      "required": [
        "title",
        "description",
        "ctaLabel",
        "ctaHref",
        "backgroundImage",
        "illustration"
      ]
    },
    "product-grid": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "anchorId": {
          "type": "string",
          "description": "ui:text"
        },
        "title": {
          "type": "string",
          "description": "ui:text"
        },
        "description": {
          "type": "string",
          "description": "ui:textarea"
        },
        "items": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "title": {
                "type": "string",
                "description": "ui:text"
              },
              "description": {
                "type": "string",
                "description": "ui:textarea"
              },
              "href": {
                "type": "string",
                "description": "ui:text"
              },
              "linkLabel": {
                "type": "string",
                "description": "ui:text"
              },
              "image": {
                "type": "object",
                "properties": {
                  "url": {
                    "type": "string"
                  },
                  "alt": {
                    "type": "string"
                  }
                },
                "additionalProperties": false,
                "required": [
                  "url"
                ],
                "description": "ui:image-picker"
              }
            },
            "additionalProperties": false,
            "required": [
              "title",
              "description",
              "href",
              "linkLabel",
              "image"
            ]
          },
          "description": "ui:list"
        }
      },
      "additionalProperties": false,
      "required": [
        "title",
        "description",
        "items"
      ]
    },
    "mission-collage": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "anchorId": {
          "type": "string",
          "description": "ui:text"
        },
        "quote": {
          "type": "string",
          "description": "ui:textarea"
        },
        "author": {
          "type": "string",
          "description": "ui:text"
        },
        "images": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "image": {
                "type": "object",
                "properties": {
                  "url": {
                    "type": "string"
                  },
                  "alt": {
                    "type": "string"
                  }
                },
                "additionalProperties": false,
                "required": [
                  "url"
                ],
                "description": "ui:image-picker"
              }
            },
            "additionalProperties": false,
            "required": [
              "image"
            ]
          },
          "description": "ui:list"
        }
      },
      "additionalProperties": false,
      "required": [
        "quote",
        "author",
        "images"
      ]
    },
    "buyer-form": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "anchorId": {
          "type": "string",
          "description": "ui:text"
        },
        "recipientEmail": {
          "type": "string",
          "description": "ui:text"
        },
        "title": {
          "type": "string",
          "description": "ui:text"
        },
        "description": {
          "type": "string",
          "description": "ui:textarea"
        },
        "nameLabel": {
          "type": "string",
          "description": "ui:text"
        },
        "namePlaceholder": {
          "type": "string",
          "description": "ui:text"
        },
        "emailLabel": {
          "type": "string",
          "description": "ui:text"
        },
        "emailPlaceholder": {
          "type": "string",
          "description": "ui:text"
        },
        "typeLabel": {
          "type": "string",
          "description": "ui:text"
        },
        "options": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "label": {
                "type": "string",
                "description": "ui:text"
              },
              "value": {
                "type": "string",
                "description": "ui:text"
              }
            },
            "additionalProperties": false,
            "required": [
              "label",
              "value"
            ]
          },
          "description": "ui:list"
        },
        "submitLabel": {
          "type": "string",
          "description": "ui:text"
        },
        "privacyLabel": {
          "type": "string",
          "description": "ui:text"
        },
        "successMessage": {
          "type": "string",
          "description": "ui:text"
        }
      },
      "additionalProperties": false,
      "required": [
        "title",
        "description",
        "nameLabel",
        "namePlaceholder",
        "emailLabel",
        "emailPlaceholder",
        "typeLabel",
        "options",
        "submitLabel",
        "privacyLabel",
        "successMessage"
      ]
    }
  },
  "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": {}
      }
    }
  ]
}
