{
  "version": "1.0.0",
  "kind": "olonjs-page-contract",
  "slug": "posts/tools-that-disappear",
  "title": "Post — Inkwell Journal essay detail",
  "description": "A single essay from the Inkwell Journal posts collection, with its related topics resolved live from the posts-to-tags relation.",
  "manifestHref": "/mcp-manifests/posts/tools-that-disappear.json",
  "systemPrompt": "You are operating the \"Post — Inkwell Journal essay detail\" page in OlonJS Studio. Use only the declared tools and keep mutations valid against the section schema.",
  "sectionTypes": [
    "header",
    "footer",
    "post-detail",
    "related-tags",
    "cta-banner"
  ],
  "sectionInstances": [
    {
      "id": "global-header",
      "type": "header",
      "scope": "global",
      "label": "header"
    },
    {
      "id": "global-footer",
      "type": "footer",
      "scope": "global",
      "label": "footer"
    },
    {
      "id": "post-detail-body",
      "type": "post-detail",
      "scope": "local",
      "label": "post-detail"
    },
    {
      "id": "post-detail-related-tags",
      "type": "related-tags",
      "scope": "local",
      "label": "Filed under"
    },
    {
      "id": "post-detail-cta",
      "type": "cta-banner",
      "scope": "local",
      "label": "Keep reading"
    }
  ],
  "sectionSchemas": {
    "header": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "anchorId": {
          "type": "string",
          "description": "ui:text"
        },
        "logoText": {
          "type": "string",
          "description": "ui:text"
        },
        "logoHighlight": {
          "type": "string",
          "description": "ui:text"
        },
        "announcement": {
          "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"
              },
              "isCta": {
                "type": "boolean",
                "description": "ui:checkbox"
              }
            },
            "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"
        },
        "email": {
          "type": "string",
          "description": "ui:text"
        },
        "copyright": {
          "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"
              }
            },
            "additionalProperties": false,
            "required": [
              "label",
              "href"
            ]
          },
          "description": "ui:list"
        }
      },
      "additionalProperties": false,
      "required": [
        "brandText",
        "copyright"
      ]
    },
    "post-detail": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "anchorId": {
          "type": "string",
          "description": "ui:text"
        },
        "backLabel": {
          "type": "string",
          "description": "ui:text"
        },
        "item": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string"
            },
            "title": {
              "type": "string",
              "description": "ui:text"
            },
            "excerpt": {
              "type": "string",
              "description": "ui:textarea"
            },
            "body": {
              "type": "string",
              "description": "ui:textarea"
            },
            "image": {
              "type": "object",
              "properties": {
                "url": {
                  "type": "string"
                },
                "alt": {
                  "type": "string"
                }
              },
              "additionalProperties": false,
              "required": [
                "url"
              ],
              "description": "ui:image-picker"
            },
            "date": {
              "type": "string",
              "description": "ui:text"
            },
            "author": {
              "type": "string",
              "description": "ui:text"
            },
            "readingTime": {
              "type": "string",
              "description": "ui:text"
            },
            "tags": {
              "type": "array",
              "items": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "name": {
                        "type": "string",
                        "description": "ui:text"
                      },
                      "description": {
                        "type": "string",
                        "description": "ui:textarea"
                      },
                      "accent": {
                        "type": "string",
                        "enum": [
                          "primary",
                          "accent",
                          "muted"
                        ],
                        "description": "ui:select"
                      }
                    },
                    "additionalProperties": false,
                    "required": [
                      "id",
                      "name",
                      "description"
                    ]
                  },
                  {
                    "type": "object",
                    "properties": {
                      "$ref": {
                        "type": "string"
                      }
                    },
                    "additionalProperties": false,
                    "required": [
                      "$ref"
                    ]
                  }
                ]
              },
              "description": "ui:collection-ref:tags"
            }
          },
          "additionalProperties": false,
          "required": [
            "id",
            "title",
            "excerpt",
            "body",
            "date",
            "author",
            "readingTime",
            "tags"
          ],
          "description": "ui:collection-ref"
        }
      },
      "additionalProperties": false,
      "required": [
        "item"
      ]
    },
    "related-tags": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "anchorId": {
          "type": "string",
          "description": "ui:text"
        },
        "label": {
          "type": "string",
          "description": "ui:text"
        },
        "title": {
          "type": "string",
          "description": "ui:text"
        },
        "emptyLabel": {
          "type": "string",
          "description": "ui:text"
        },
        "item": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string"
            },
            "title": {
              "type": "string",
              "description": "ui:text"
            },
            "excerpt": {
              "type": "string",
              "description": "ui:textarea"
            },
            "body": {
              "type": "string",
              "description": "ui:textarea"
            },
            "image": {
              "type": "object",
              "properties": {
                "url": {
                  "type": "string"
                },
                "alt": {
                  "type": "string"
                }
              },
              "additionalProperties": false,
              "required": [
                "url"
              ],
              "description": "ui:image-picker"
            },
            "date": {
              "type": "string",
              "description": "ui:text"
            },
            "author": {
              "type": "string",
              "description": "ui:text"
            },
            "readingTime": {
              "type": "string",
              "description": "ui:text"
            },
            "tags": {
              "type": "array",
              "items": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "name": {
                        "type": "string",
                        "description": "ui:text"
                      },
                      "description": {
                        "type": "string",
                        "description": "ui:textarea"
                      },
                      "accent": {
                        "type": "string",
                        "enum": [
                          "primary",
                          "accent",
                          "muted"
                        ],
                        "description": "ui:select"
                      }
                    },
                    "additionalProperties": false,
                    "required": [
                      "id",
                      "name",
                      "description"
                    ]
                  },
                  {
                    "type": "object",
                    "properties": {
                      "$ref": {
                        "type": "string"
                      }
                    },
                    "additionalProperties": false,
                    "required": [
                      "$ref"
                    ]
                  }
                ]
              },
              "description": "ui:collection-ref:tags"
            }
          },
          "additionalProperties": false,
          "required": [
            "id",
            "title",
            "excerpt",
            "body",
            "date",
            "author",
            "readingTime",
            "tags"
          ],
          "description": "ui:collection-ref"
        },
        "tags": {
          "type": "object",
          "additionalProperties": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string",
                "description": "ui:text"
              },
              "description": {
                "type": "string",
                "description": "ui:textarea"
              },
              "accent": {
                "type": "string",
                "enum": [
                  "primary",
                  "accent",
                  "muted"
                ],
                "description": "ui:select"
              }
            },
            "additionalProperties": false,
            "required": [
              "id",
              "name",
              "description"
            ]
          },
          "description": "ui:collection-ref"
        }
      },
      "additionalProperties": false,
      "required": [
        "item",
        "tags"
      ]
    },
    "cta-banner": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "anchorId": {
          "type": "string",
          "description": "ui:text"
        },
        "label": {
          "type": "string",
          "description": "ui:text"
        },
        "title": {
          "type": "string",
          "description": "ui:text"
        },
        "description": {
          "type": "string",
          "description": "ui:textarea"
        },
        "primaryCta": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string"
            },
            "label": {
              "type": "string",
              "description": "ui:text"
            },
            "href": {
              "type": "string",
              "description": "ui:text"
            },
            "variant": {
              "type": "string",
              "enum": [
                "primary",
                "secondary",
                "accent"
              ],
              "description": "ui:select",
              "default": "primary"
            }
          },
          "additionalProperties": false,
          "required": [
            "label",
            "href"
          ]
        },
        "secondaryCta": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string"
            },
            "label": {
              "type": "string",
              "description": "ui:text"
            },
            "href": {
              "type": "string",
              "description": "ui:text"
            },
            "variant": {
              "type": "string",
              "enum": [
                "primary",
                "secondary",
                "accent"
              ],
              "description": "ui:select",
              "default": "primary"
            }
          },
          "additionalProperties": false,
          "required": [
            "label",
            "href"
          ]
        }
      },
      "additionalProperties": false,
      "required": [
        "title",
        "primaryCta"
      ]
    }
  },
  "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": {}
      }
    }
  ]
}
