{"server":{"name":"dizweb","version":"1.2.0","endpoint":"https://app.dizweb.se/api/mcp","transport":"streamable-http","auth":"Authorization: Bearer <API key> (create one under API & MCP in the DizWeb backoffice)","instructions":"DizWeb is a Swedish website builder for small businesses. This connection manages exactly ONE site (the one the API key or connection belongs to); every tool acts on it.\n\nDATA MODEL\n- Site: name, public URL, theme (+ colour/font/radius overrides), SEO defaults, header (logo, header button), footer and isPublished (false = visitors only see a \"coming soon\" page). get_site also returns the plan limits (maxPages, hierarchy = sub pages, storage, videoHero, maxFormRecipients), the themes with their default colours and the allowed font names.\n- Pages form a tree in menu order, at most two levels. The home page (path \"/\") cannot be deleted, moved or unpublished and cannot have sub pages. Items with kind \"link\" in list_pages are menu links: a menu item pointing to a URL, file, e-mail/phone or page. They have no content or versions, are live immediately and do not count toward maxPages.\n- Every page has one draft plus immutable published versions. Edits only change the draft; publish_page makes it live as a new version; restore_version copies an old version back into the draft.\n- Page content is an ordered list of blocks (hero, text, image, image_text, services, features, testimonials, logos, team, gallery, video, files, faq, hours, price_list, location, form, spacer). Call get_block_schema before writing blocks.\n- Media library: images, videos and documents, optionally in folders (max 3 levels). Blocks reference media with MediaRef objects copied verbatim from list_media, upload_media or an import result; never invent media ids or URLs. Only this site's own media (/uploads/<siteId>/...) is accepted; external image URLs are rejected.\n\nWORKFLOWS\n- Orient: get_site, then list_pages. Call get_page before you change a page.\n- Edit: get_page -> change the draft blocks (keep existing block ids) -> update_page_draft with the FULL block list, or add_block for one new block -> tell the user what changed -> publish_page once they approve.\n- Build a site from a business description: propose a page plan that fits maxPages and wait for approval; rewrite the existing home page instead of creating a new one; pick a theme with set_theme; create pages with blocks; put them in a sensible menu order with reorder_pages; add a form block for contact (ask which e-mail address should receive it, settings.recipients; an address that is not a verified member of the organization gets a confirmation e-mail and receives submissions only after confirming, see formRecipients in the tool result); set the logo and header button (update_site_settings header.logoMediaId and header.cta); fill in page SEO and the site footer; summarize, then publish when the user says so. The build_site prompt spells this out.\n- Images: prefer the customer's own media (list_media), or files the user gives you: upload_media (base64, max 15 MB) or import_media_from_url for a public URL. Otherwise use search_stock_photos (try lang \"en\" as well as \"sv\") + import_stock_photo when those tools exist. Always give a descriptive Swedish alt text (the alt parameter of upload/import, or update_media later; also the MediaRef's alt field in blocks).\n- Custom CSS (Plus/Pro): for looks the theme and block settings cannot give (e.g. brush-stroke image edges, a black-and-white hero). Read get_site customCss, then set_custom_css (mode append to add rules). Target blocks by [data-block-id=\"<id>\"] or a cssClass you set on the block, pages by .site-page-id-<page id>; these survive renames. Use var(--site-*) theme variables, no external URLs (customer sites load nothing from third parties; inline SVG data: URIs are fine).\n- Logo, share image and favicon: upload or import the image, then update_site_settings with header.logoMediaId, seo.ogImageMediaId or seo.faviconMediaId; the URL is resolved server-side.\n- Documents (price lists, PDF menus): upload or import them, then use a files block, or a menu link with kind \"file\" and mediaId.\n- Menu items that only lead elsewhere (booking system, PDF menu, social profile) are menu links (create_nav_link), not pages. reorder_pages sets the order of pages and menu links (and can move them under a top-level page).\n- Maps: for a location (Hitta hit) block, get coordinates with geocode_address and put them in content.coords; never guess coordinates.\n- Link objects (block buttons, header.cta): href must always be usable (https://..., /path, /uploads/... file URL, mailto:, tel:, #anchor). Internal pages: kind \"page\" + pageId of a content page (never a menu link) so the link survives renames. To jump to a block: kind \"anchor\", pageId and href \"/path#<block id>\" (the first form block also answers to #kontakt).\n\nPAGE TITLES (SEO)\n- The browser/search title of the home page is its own SEO title when set, otherwise the site title (site seo.title, or the site name).\n- Every other page gets \"<page SEO title, or page title> – <site title>\", unless that page part already contains the site title (case-insensitive), in which case it is used as is. So write page SEO titles WITHOUT the company name (\"Trädgårdsskötsel i Uppsala\", not \"Trädgårdsskötsel i Uppsala | Firma AB\"), and keep the whole title around 50-60 characters.\n\nCONVENTIONS\n- Site content is Swedish unless the site is clearly in another language. Write natural, concrete, friendly Swedish for Swedish small businesses: short sentences, no clichés or anglicisms. Talk to the user in their own language.\n- Never invent facts such as prices, addresses, phone numbers, opening hours, staff names, reviews or certifications. Ask the user, or insert a clearly marked placeholder like [FYLL I: öppettider] and list all placeholders in your summary. Blocks created by add_block already use such placeholders for facts.\n- Draft edits are private. publish_page, unpublish_page, restore_version with publish=true, delete_page, set_theme, set_custom_css, update_site_settings (including isPublished, which launches the site), update_page_meta, reorder_pages and menu link changes affect the public site immediately. Do not publish, unpublish, delete or launch without the user's go-ahead unless they explicitly asked for it.\n- Work in small, reviewable steps and finish with a short summary: what changed per page, what is still unpublished, open questions and the public URL.\n- Form submissions contain visitors' personal data. Read them only when the user asks and never copy them into site content.\n\nERRORS\n- A failed tool returns isError with an English message. Plan limits (page count, sub pages, storage, video in hero) cannot be fixed by retrying: explain the limit and suggest an alternative or a plan upgrade.\n- Invalid input lists the offending fields with their path (e.g. \"blocks.2.content.heading: ...\"; some messages are Swedish): fix them and retry once. Never guess ids; look them up with list_pages, list_media or list_media_folders."},"tools":[{"name":"get_site","title":"Get site","description":"Site overview: name, subdomain, public URL, publish status, site search on/off (searchEnabled), SEO, header, footer, plan limits, the current theme (themeId, stored overrides in themeSettings and the effective colours/fonts in effectiveTheme), every available theme with the kinds of business it suits (suitedFor), its default colours, fonts and style (card, divider, media, header), the site's own CSS (customCss; null when the plan has no custom CSS) and the font names set_theme accepts. Call this first.","group":"site","effect":"read","readOnly":true,"requiresStockPhotos":false,"params":[]},{"name":"set_theme","title":"Set theme","description":"Change the theme and/or its overrides; visible on the public site at once. Omit themeId to keep the current theme. Each override: a value sets it, null removes it (back to the theme's default), omitted keeps the current value. Changing themeId keeps existing overrides unless you null them. Colours are #RRGGBB; fonts must be one of: Inter, Manrope, Space Grotesk, DM Sans, Work Sans, Playfair Display, Source Serif 4, Lora, Fraunces, Literata, Atkinson Hyperlegible Next, Baloo 2, Lexend, Big Shoulders Display, Archivo, Fredoka, Nunito, Funnel Display, Funnel Sans, JetBrains Mono, Bricolage Grotesque, Figtree, Familjen Grotesk, Cormorant, Jost, Newsreader, Public Sans, Noto Serif Display, Albert Sans, Bodoni Moda, Karla, Syne, Schibsted Grotesk, Saira, Red Hat Text, Red Hat Mono, Crimson Pro, Source Sans 3, Hanken Grotesk, Geist Mono (exact names, see get_site availableFonts). Themes are listed by get_site; pick one whose suitedFor matches the business. A theme's suggestedHeader (e.g. overlayHero) is not applied automatically; set it via update_site_settings header if wanted.","group":"site","effect":"live","readOnly":false,"requiresStockPhotos":false,"params":[{"name":"themeId","type":"\"nordic\" | \"bold\" | \"classic\" | \"studio\" | \"klarsyn\" | \"lekfull\" | \"smedja\" | \"bomull\" | \"kisel\" | \"kakel\" | \"skargard\" | \"byra\" | \"stilla\" | \"sjuttio\" | \"portier\" | \"glod\" | \"spegel\" | \"verkstad\" | \"minne\" | \"ljusbord\"","required":false,"description":"Theme id from get_site availableThemes. Omit to keep the current theme.","constraints":[]},{"name":"primaryColor","type":"string | null","required":false,"description":"Primary colour override as #RRGGBB (buttons, links). null = theme default.","constraints":["mönster ^#[0-9a-fA-F]{6}$"]},{"name":"accentColor","type":"string | null","required":false,"description":"Accent colour override as #RRGGBB. null = theme default.","constraints":["mönster ^#[0-9a-fA-F]{6}$"]},{"name":"fontHeading","type":"\"Inter\" | \"Manrope\" | \"Space Grotesk\" | \"DM Sans\" | \"Work Sans\" | \"Playfair Display\" | \"Source Serif 4\" | \"Lora\" | \"Fraunces\" | \"Literata\" | \"Atkinson Hyperlegible Next\" | \"Baloo 2\" | \"Lexend\" | \"Big Shoulders Display\" | \"Archivo\" | \"Fredoka\" | \"Nunito\" | \"Funnel Display\" | \"Funnel Sans\" | \"JetBrains Mono\" | \"Bricolage Grotesque\" | \"Figtree\" | \"Familjen Grotesk\" | \"Cormorant\" | \"Jost\" | \"Newsreader\" | \"Public Sans\" | \"Noto Serif Display\" | \"Albert Sans\" | \"Bodoni Moda\" | \"Karla\" | \"Syne\" | \"Schibsted Grotesk\" | \"Saira\" | \"Red Hat Text\" | \"Red Hat Mono\" | \"Crimson Pro\" | \"Source Sans 3\" | \"Hanken Grotesk\" | \"Geist Mono\" | null","required":false,"description":"Heading font override. One of: Inter, Manrope, Space Grotesk, DM Sans, Work Sans, Playfair Display, Source Serif 4, Lora, Fraunces, Literata, Atkinson Hyperlegible Next, Baloo 2, Lexend, Big Shoulders Display, Archivo, Fredoka, Nunito, Funnel Display, Funnel Sans, JetBrains Mono, Bricolage Grotesque, Figtree, Familjen Grotesk, Cormorant, Jost, Newsreader, Public Sans, Noto Serif Display, Albert Sans, Bodoni Moda, Karla, Syne, Schibsted Grotesk, Saira, Red Hat Text, Red Hat Mono, Crimson Pro, Source Sans 3, Hanken Grotesk, Geist Mono. null = theme default.","constraints":[]},{"name":"fontBody","type":"\"Inter\" | \"Manrope\" | \"Space Grotesk\" | \"DM Sans\" | \"Work Sans\" | \"Playfair Display\" | \"Source Serif 4\" | \"Lora\" | \"Fraunces\" | \"Literata\" | \"Atkinson Hyperlegible Next\" | \"Baloo 2\" | \"Lexend\" | \"Big Shoulders Display\" | \"Archivo\" | \"Fredoka\" | \"Nunito\" | \"Funnel Display\" | \"Funnel Sans\" | \"JetBrains Mono\" | \"Bricolage Grotesque\" | \"Figtree\" | \"Familjen Grotesk\" | \"Cormorant\" | \"Jost\" | \"Newsreader\" | \"Public Sans\" | \"Noto Serif Display\" | \"Albert Sans\" | \"Bodoni Moda\" | \"Karla\" | \"Syne\" | \"Schibsted Grotesk\" | \"Saira\" | \"Red Hat Text\" | \"Red Hat Mono\" | \"Crimson Pro\" | \"Source Sans 3\" | \"Hanken Grotesk\" | \"Geist Mono\" | null","required":false,"description":"Body text font override. One of: Inter, Manrope, Space Grotesk, DM Sans, Work Sans, Playfair Display, Source Serif 4, Lora, Fraunces, Literata, Atkinson Hyperlegible Next, Baloo 2, Lexend, Big Shoulders Display, Archivo, Fredoka, Nunito, Funnel Display, Funnel Sans, JetBrains Mono, Bricolage Grotesque, Figtree, Familjen Grotesk, Cormorant, Jost, Newsreader, Public Sans, Noto Serif Display, Albert Sans, Bodoni Moda, Karla, Syne, Schibsted Grotesk, Saira, Red Hat Text, Red Hat Mono, Crimson Pro, Source Sans 3, Hanken Grotesk, Geist Mono. null = theme default.","constraints":[]},{"name":"radius","type":"\"none\" | \"small\" | \"medium\" | \"large\" | null","required":false,"description":"Corner radius override. null = theme default.","constraints":[]}]},{"name":"set_custom_css","title":"Set custom CSS","description":"Set the site's own CSS (Design → Egen CSS in the backoffice); applied after the theme on every public page at once, and shown in the editor preview. Plus and Pro only (plan.limits.customCss). mode \"replace\" (default) sets the whole stylesheet (empty string removes it); \"append\" adds your rules after the existing ones. Read the current CSS from get_site customCss first and keep the user's rules. Prefer theme variables (var(--site-primary) …) so rules follow the theme. Stable selectors: a block's [data-block-id=\"<block id>\"] (or its own class, block field cssClass), a page's .site-page-id-<page id>; also .site-block--<type>, one class per block setting (e.g. .site-block--align-right), .site-block--first/--last, .site-page--home. Comment each rule group in Swedish so the user understands it. Max 20000 characters; no HTML.","group":"site","effect":"live","readOnly":false,"requiresStockPhotos":false,"params":[{"name":"css","type":"string","required":true,"description":"CSS text. With mode replace an empty string removes the custom CSS.","constraints":[]},{"name":"mode","type":"\"replace\" | \"append\"","required":false,"description":"replace (default) or append","constraints":[]}]},{"name":"update_site_settings","title":"Update site settings","description":"Update site name, SEO defaults, business details, header, footer, publish status or site search (all visible on the public site at once). seo.googleVerification takes the token (or the whole meta tag) from Google Search Console's HTML tag method. Object fields (seo, header, footer) are merged with the current values; omitted keys are kept. Images (logo, share image, favicon) are set by media id: header.logoMediaId, seo.ogImageMediaId, seo.faviconMediaId (upload or import the image first; the URL is resolved server-side). The header button is header.cta, a link object.","group":"site","effect":"live","readOnly":false,"requiresStockPhotos":false,"params":[{"name":"name","type":"string","required":false,"description":"Site name (shown in the header when showSiteName is on)","constraints":["1–255 tecken"]},{"name":"seo","type":"object","required":false,"constraints":[],"fields":[{"name":"title","type":"string","required":false,"description":"Site title, usually the company name (max 70). Added after every page's title (\"Om oss – Företaget\"), except on the home page, whose own SEO title is used exactly as written (put the company name in it yourself); a home page without one gets this title.","constraints":["max 70 tecken"]},{"name":"description","type":"string","required":false,"description":"Default meta description (max 160).","constraints":["max 160 tecken"]},{"name":"ogImageMediaId","type":"string (uuid) | \"\" | null","required":false,"description":"Default share image (Open Graph, ideally 1200x630): the mediaId of an IMAGE in this site's media library (from list_media, upload_media or an import tool). The URL is filled in server-side. \"\" or null removes it.","constraints":[]},{"name":"ogImageUrl","type":"string","required":false,"description":"Default share image URL. Prefer the *MediaId field. If you set the URL directly it must be \"\" (remove) or a /uploads/<siteId>/… URL of this site's media (list_media `url`); external URLs are rejected.","constraints":["max 1000 tecken"]},{"name":"faviconMediaId","type":"string (uuid) | \"\" | null","required":false,"description":"Favicon (square PNG, at least 64x64): the mediaId of an IMAGE in this site's media library (from list_media, upload_media or an import tool). The URL is filled in server-side. \"\" or null removes it.","constraints":[]},{"name":"faviconUrl","type":"string","required":false,"description":"Favicon URL. Prefer the *MediaId field. If you set the URL directly it must be \"\" (remove) or a /uploads/<siteId>/… URL of this site's media (list_media `url`); external URLs are rejected.","constraints":["max 1000 tecken"]},{"name":"googleVerification","type":"string","required":false,"description":"Google Search Console verification: the token or the whole <meta name=\"google-site-verification\"> tag. \"\" removes it.","constraints":["max 300 tecken"]}]},{"name":"header","type":"object","required":false,"description":"logoMediaId = logo image; showSiteName = show the name as text; cta = header button (link object); sticky = header follows on scroll; overlayHero = transparent header over a first hero with media; contactBar = thin bar above the header with the footer's phone, e-mail and address (default: the theme's choice); style = 'solid' | 'glass' (frosted translucent header, best with sticky); glassOpacity = transparency 0-90 (%), glassBlur = 0-30 (px), glassTint = 'theme' | 'light' | 'dark', glassBorder = thin bottom border","constraints":[],"fields":[{"name":"logoMediaId","type":"string (uuid) | \"\" | null","required":false,"description":"Logo shown in the header (PNG/WebP with transparent background works best): the mediaId of an IMAGE in this site's media library (from list_media, upload_media or an import tool). The URL is filled in server-side. \"\" or null removes it.","constraints":[]},{"name":"logoUrl","type":"string","required":false,"description":"Deprecated: use logoMediaId. Prefer the *MediaId field. If you set the URL directly it must be \"\" (remove) or a /uploads/<siteId>/… URL of this site's media (list_media `url`); external URLs are rejected.","constraints":["max 1000 tecken"]},{"name":"showSiteName","type":"boolean","required":false,"description":"Show the site name as text next to (or instead of) the logo","constraints":[]},{"name":"cta","type":"object | null","required":false,"description":"Header button as a link object { label, href?, kind?, pageId?, mediaId?, newTab? } (same semantics as block links). To a page: { label, pageId } (href is filled in from the page and follows renames). To a form block: { label, kind: \"anchor\", pageId, href: \"/path#kontakt\" }. External: { label, href: \"https://…\", newTab: true }. Phone/e-mail: { label, href: \"tel:…\" | \"mailto:…\" }. null removes the button.","constraints":[]},{"name":"ctaLabel","type":"string","required":false,"description":"Legacy alternative to cta: button text.","constraints":["max 60 tecken"]},{"name":"ctaHref","type":"string","required":false,"description":"Legacy alternative to cta: plain button target (no page tracking). Empty string removes the button.","constraints":["max 1000 tecken"]},{"name":"ctaNewTab","type":"boolean","required":false,"description":"Legacy alternative to cta: open in a new tab.","constraints":[]},{"name":"sticky","type":"boolean","required":false,"constraints":[]},{"name":"overlayHero","type":"boolean","required":false,"constraints":[]},{"name":"contactBar","type":"boolean","required":false,"description":"Contact bar above the header with phone/e-mail/address from the footer. Omit to follow the theme's default.","constraints":[]},{"name":"style","type":"\"solid\" | \"glass\"","required":false,"constraints":[]},{"name":"glassOpacity","type":"integer","required":false,"constraints":["0–90"]},{"name":"glassBlur","type":"integer","required":false,"constraints":["0–30"]},{"name":"glassTint","type":"\"theme\" | \"light\" | \"dark\"","required":false,"constraints":[]},{"name":"glassBorder","type":"boolean","required":false,"constraints":[]}]},{"name":"business","type":"object","required":false,"description":"The business for search engines (schema.org LocalBusiness data on the home page): type (schema.org type, default LocalBusiness), street, postalCode, city, areaServed (e.g. a city or region the business serves; works without a street address). Phone, e-mail and social links come from footer. Merged key by key; \"\" clears a field. Never invent an address.","constraints":[],"fields":[{"name":"type","type":"\"LocalBusiness\" | \"ProfessionalService\" | \"HomeAndConstructionBusiness\" | \"HealthAndBeautyBusiness\" | \"MedicalBusiness\" | \"FoodEstablishment\" | \"Store\" | \"AutomotiveBusiness\" | \"SportsActivityLocation\" | \"LodgingBusiness\" | \"EntertainmentBusiness\" | \"Organization\" | \"\"","required":false,"constraints":[]},{"name":"street","type":"string | \"\"","required":false,"constraints":[]},{"name":"postalCode","type":"string | \"\"","required":false,"constraints":[]},{"name":"city","type":"string | \"\"","required":false,"constraints":[]},{"name":"areaServed","type":"string | \"\"","required":false,"constraints":[]}]},{"name":"footer","type":"object","required":false,"constraints":[],"fields":[{"name":"text","type":"string","required":false,"constraints":["max 2000 tecken"]},{"name":"email","type":"string","required":false,"constraints":["max 255 tecken"]},{"name":"phone","type":"string","required":false,"constraints":["max 50 tecken"]},{"name":"address","type":"string","required":false,"constraints":["max 500 tecken"]},{"name":"socialLinks","type":"object[]","required":false,"constraints":[]}]},{"name":"tracking","type":"object","required":false,"description":"Analytics and marketing tags. Setting any id makes the site show a cookie banner, and nothing loads before the visitor consents (Google Analytics = statistics, Meta pixel = marketing, Tag Manager = both, with Consent Mode). Only use ids the user gave you. The customer's own code (Pro) can only be set in the backoffice. Merged key by key.","constraints":[],"fields":[{"name":"googleAnalyticsId","type":"string","required":false,"description":"Google Analytics 4 measurement id, G-XXXXXXXXXX; \"\" removes it","constraints":["max 30 tecken"]},{"name":"googleTagManagerId","type":"string","required":false,"description":"Google Tag Manager container id, GTM-XXXXXXX; \"\" removes it","constraints":["max 30 tecken"]},{"name":"metaPixelId","type":"string","required":false,"description":"Meta (Facebook) pixel id, digits; \"\" removes it","constraints":["max 30 tecken"]},{"name":"privacyHref","type":"string","required":false,"description":"The site's privacy page for the banner's \"Läs mer\", e.g. /integritet","constraints":["max 500 tecken"]},{"name":"bannerText","type":"string","required":false,"description":"Replaces the cookie banner's default text (Swedish)","constraints":["max 400 tecken"]}]},{"name":"isPublished","type":"boolean","required":false,"description":"true = site is live on its domain (launch); false = visitors see \"coming soon\"","constraints":[]},{"name":"searchEnabled","type":"boolean","required":false,"description":"Site search: true = a search button in the header and a search page at /sok over the published pages","constraints":[]}]},{"name":"list_domains","title":"List domains","description":"Custom domains connected to the site with their verification status.","group":"site","effect":"read","readOnly":true,"requiresStockPhotos":false,"params":[]},{"name":"list_pages","title":"List pages","description":"Page tree (two levels) in menu order with id, title, path, publish state and whether the draft has unpublished changes. Items with kind \"link\" are menu links (a menu item pointing to a URL, file or page; no content, path or versions): manage them with create_nav_link, update_nav_link and delete_page. Change the menu order with reorder_pages. total counts pages only (menu links do not count toward maxPages).","group":"pages","effect":"read","readOnly":true,"requiresStockPhotos":false,"params":[]},{"name":"get_page","title":"Get page","description":"Full page: metadata, SEO, the draft (title + blocks you edit), the live version (publishedVersion: number, title, blocks; null if never published) and the number of versions. isPublished = the page has a live version; hasUnpublishedChanges = the draft differs from it.","group":"pages","effect":"read","readOnly":true,"requiresStockPhotos":false,"params":[{"name":"pageId","type":"string (uuid)","required":true,"description":"Page id (from list_pages)","constraints":[]}]},{"name":"get_block_schema","title":"Get block schema","description":"JSON Schema for page blocks (hero, text, image, image_text, services, features, testimonials, logos, team, gallery, video, files, faq, hours, price_list, location, form, spacer), block labels and editing rules. Read before creating or editing blocks.","group":"pages","effect":"read","readOnly":true,"requiresStockPhotos":false,"params":[]},{"name":"create_page","title":"Create page","description":"Create a page (as a draft). Slug defaults to a slugified title. parentId makes it a sub page (max two levels, plan permitting; the parent must be a page, not a menu link).","group":"pages","effect":"draft","readOnly":false,"requiresStockPhotos":false,"params":[{"name":"title","type":"string","required":true,"constraints":["1–255 tecken"]},{"name":"slug","type":"string","required":false,"description":"URL slug, e.g. \"om-oss\"","constraints":["mönster ^[a-z0-9](?:[a-z0-9-]{0,98}[a-z0-9])?$"]},{"name":"parentId","type":"string (uuid)","required":false,"constraints":[]},{"name":"blocks","type":"object[]","required":false,"description":"Full block list. See get_block_schema for the format.","constraints":[]},{"name":"showInNav","type":"boolean","required":false,"constraints":[]}]},{"name":"update_page_draft","title":"Update page draft","description":"Save title, blocks and/or SEO to the page draft. `blocks` REPLACES the whole block list (read get_page first). Pass draft.updatedAt from get_page as baseUpdatedAt so the save fails instead of overwriting changes someone made after you read the page. Nothing is published until publish_page, the page's SEO included (unlike update_site_settings, which applies at once).","group":"pages","effect":"draft","readOnly":false,"requiresStockPhotos":false,"params":[{"name":"pageId","type":"string (uuid)","required":true,"description":"Page id (from list_pages)","constraints":[]},{"name":"title","type":"string","required":false,"constraints":["1–255 tecken"]},{"name":"blocks","type":"object[]","required":false,"description":"Full block list. See get_block_schema for the format.","constraints":[]},{"name":"seo","type":"object","required":false,"description":"Page SEO. Merged with the current values. Saved with the draft: like the blocks, it reaches the public page with publish_page (site-wide SEO in update_site_settings applies at once).","constraints":[],"fields":[{"name":"title","type":"string","required":false,"description":"SEO title of the page only (aim for 50-60 characters incl. the site title). The site title is appended automatically on every page except the home page, whose SEO title is used exactly as written (include the company name there yourself); see the server instructions.","constraints":["max 255 tecken"]},{"name":"description","type":"string","required":false,"description":"Meta description, about 120-160 characters.","constraints":["max 500 tecken"]},{"name":"ogImageMediaId","type":"string (uuid) | \"\" | null","required":false,"description":"Share image (Open Graph) of this page: the mediaId of an IMAGE in this site's media library (from list_media, upload_media or an import tool). The URL is filled in server-side. \"\" or null removes it.","constraints":[]},{"name":"ogImageUrl","type":"string","required":false,"description":"Share image URL. Prefer the *MediaId field. If you set the URL directly it must be \"\" (remove) or a /uploads/<siteId>/… URL of this site's media (list_media `url`); external URLs are rejected.","constraints":["max 1000 tecken"]},{"name":"noIndex","type":"boolean","required":false,"description":"true = ask search engines not to index this page","constraints":[]}]},{"name":"baseUpdatedAt","type":"string (date-time)","required":false,"description":"draft.updatedAt from get_page. If the draft was saved after that, nothing is written and you get an error: read the page again and redo the change.","constraints":[]}]},{"name":"add_block","title":"Add block","description":"Append (or insert at index) one block to the page draft. Defaults are filled in and `content`/`settings` are shallow-merged over them (top-level keys you send replace the default's, e.g. a full `items` list). Defaults never contain business facts: addresses, opening hours, prices, people and FAQ answers are \"[FYLL I: …]\" placeholders (hours: all days without times, location: no coords). Replace them with facts from the user, or keep them and list them in your summary. Returns the new block.","group":"pages","effect":"draft","readOnly":false,"requiresStockPhotos":false,"params":[{"name":"pageId","type":"string (uuid)","required":true,"description":"Page id (from list_pages)","constraints":[]},{"name":"type","type":"\"hero\" | \"text\" | \"image\" | \"image_text\" | \"services\" | \"features\" | \"testimonials\" | \"logos\" | \"team\" | \"gallery\" | \"video\" | \"files\" | \"faq\" | \"hours\" | \"price_list\" | \"location\" | \"form\" | \"spacer\"","required":true,"constraints":[]},{"name":"index","type":"integer","required":false,"description":"Position in the block list; default = end","constraints":["minst 0"]},{"name":"content","type":"object","required":false,"constraints":[]},{"name":"settings","type":"object","required":false,"constraints":[]}]},{"name":"geocode_address","title":"Geocode address","description":"Look up map coordinates for a street address (OpenStreetMap Nominatim, the same lookup as the editor's \"Hitta adressen på kartan\"). Use the result as content.coords { lat, lon } in a location (Hitta hit) block; never guess coordinates. Check that displayName matches the intended place before using it. Rate limited (20 lookups per minute per account).","group":"pages","effect":"read","readOnly":true,"requiresStockPhotos":false,"params":[{"name":"address","type":"string","required":true,"description":"Full address: street and number, postal code and city, e.g. \"Drottninggatan 5, 111 51 Stockholm\"","constraints":["3–200 tecken"]}]},{"name":"update_page_meta","title":"Update page metadata","description":"Rename, change slug, move under another page (parentId, null = top level) or toggle navigation visibility. Moving a page adds a redirect from the old path.","group":"pages","effect":"live","readOnly":false,"requiresStockPhotos":false,"params":[{"name":"pageId","type":"string (uuid)","required":true,"description":"Page id (from list_pages)","constraints":[]},{"name":"title","type":"string","required":false,"constraints":["1–255 tecken"]},{"name":"slug","type":"string","required":false,"description":"URL slug, e.g. \"om-oss\"","constraints":["mönster ^[a-z0-9](?:[a-z0-9-]{0,98}[a-z0-9])?$"]},{"name":"parentId","type":"string (uuid) | null","required":false,"constraints":[]},{"name":"showInNav","type":"boolean","required":false,"constraints":[]}]},{"name":"delete_page","title":"Delete page","description":"Delete a page permanently (all versions), or a menu link. Sub pages move to the top level. The home page cannot be deleted.","group":"pages","effect":"live","readOnly":false,"requiresStockPhotos":false,"params":[{"name":"pageId","type":"string (uuid)","required":true,"description":"Page id (from list_pages)","constraints":[]}]},{"name":"create_nav_link","title":"Create menu link","description":"Add a menu link: a menu item that goes straight to another website, a file (e.g. a PDF menu), an e-mail/phone or a page, e.g. \"Boka tid\" -> https://boka.se/salong in a new tab. It has no content, is live right away (no publishing) and does not count toward the page limit. It is added last among its siblings; parentId puts it in that top-level page's dropdown (plan permitting). Change its position with reorder_pages.","group":"nav","effect":"live","readOnly":false,"requiresStockPhotos":false,"params":[{"name":"title","type":"string","required":true,"description":"Menu text","constraints":["1–255 tecken"]},{"name":"link","type":"object","required":true,"description":"Link target { href, newTab, kind?, pageId?, mediaId?, fileName? }; kind is page | url | file | email | phone | anchor. href must be usable (https://…, /path, /uploads/… file URL, mailto:, tel:, #anchor). For kind \"page\" (or \"anchor\" to a block on another page) set pageId from list_pages so the link follows renames; for kind \"file\" set mediaId from list_media.","constraints":[],"fields":[{"name":"href","type":"string","required":true,"constraints":["1–1000 tecken"]},{"name":"newTab","type":"boolean","required":false,"constraints":["standard: false"]},{"name":"kind","type":"\"page\" | \"url\" | \"file\" | \"email\" | \"phone\" | \"anchor\"","required":false,"constraints":[]},{"name":"pageId","type":"string (uuid)","required":false,"constraints":[]},{"name":"mediaId","type":"string (uuid)","required":false,"constraints":[]},{"name":"fileName","type":"string","required":false,"constraints":["max 255 tecken"]}]},{"name":"parentId","type":"string (uuid)","required":false,"description":"Top-level page id (not the home page, not a menu link)","constraints":[]},{"name":"showInNav","type":"boolean","required":false,"description":"Default true","constraints":[]}]},{"name":"update_nav_link","title":"Update menu link","description":"Change a menu link's text, target (`link` replaces the whole target), placement (parentId, null = top level) or menu visibility. Delete it with delete_page.","group":"nav","effect":"live","readOnly":false,"requiresStockPhotos":false,"params":[{"name":"linkId","type":"string (uuid)","required":true,"description":"Menu link id (from list_pages, kind \"link\")","constraints":[]},{"name":"title","type":"string","required":false,"constraints":["1–255 tecken"]},{"name":"link","type":"object","required":false,"description":"Link target { href, newTab, kind?, pageId?, mediaId?, fileName? }; kind is page | url | file | email | phone | anchor. href must be usable (https://…, /path, /uploads/… file URL, mailto:, tel:, #anchor). For kind \"page\" (or \"anchor\" to a block on another page) set pageId from list_pages so the link follows renames; for kind \"file\" set mediaId from list_media.","constraints":[],"fields":[{"name":"href","type":"string","required":true,"constraints":["1–1000 tecken"]},{"name":"newTab","type":"boolean","required":false,"constraints":["standard: false"]},{"name":"kind","type":"\"page\" | \"url\" | \"file\" | \"email\" | \"phone\" | \"anchor\"","required":false,"constraints":[]},{"name":"pageId","type":"string (uuid)","required":false,"constraints":[]},{"name":"mediaId","type":"string (uuid)","required":false,"constraints":[]},{"name":"fileName","type":"string","required":false,"constraints":["max 255 tecken"]}]},{"name":"parentId","type":"string (uuid) | null","required":false,"constraints":[]},{"name":"showInNav","type":"boolean","required":false,"constraints":[]}]},{"name":"reorder_pages","title":"Reorder pages and menu links","description":"Set the menu order of pages and menu links that share a parent (top level when parentId is omitted/null, or the dropdown of a top-level page). orderedIds lists items in the wanted order; siblings you leave out keep their relative order after them. Items currently under another parent are MOVED here first (same rules as update_page_meta / update_nav_link: the plan must allow sub pages, max two levels, the home page stays at the top level and cannot have children, menu links are never parents, a page with sub pages cannot become a sub page; a moved page gets a new path and a redirect from the old one). Live on the public menu at once. Returns the new order of that level.","group":"nav","effect":"live","readOnly":false,"requiresStockPhotos":false,"params":[{"name":"parentId","type":"string (uuid) | null","required":false,"description":"Parent page id (a top-level content page, not the home page). Omit or null = top level.","constraints":[]},{"name":"orderedIds","type":"string (uuid)[]","required":true,"description":"Page and menu link ids from list_pages, in the wanted order","constraints":[]}]},{"name":"publish_page","title":"Publish page","description":"Publish the current draft as a new immutable version and make it live.","group":"versions","effect":"live","readOnly":false,"requiresStockPhotos":false,"params":[{"name":"pageId","type":"string (uuid)","required":true,"description":"Page id (from list_pages)","constraints":[]},{"name":"note","type":"string","required":false,"description":"Short change note","constraints":["max 255 tecken"]}]},{"name":"unpublish_page","title":"Unpublish page","description":"Take a page offline. The draft and versions are kept. The home page cannot be unpublished.","group":"versions","effect":"live","readOnly":false,"requiresStockPhotos":false,"params":[{"name":"pageId","type":"string (uuid)","required":true,"description":"Page id (from list_pages)","constraints":[]}]},{"name":"list_versions","title":"List versions","description":"Versions of a page, newest first: published versions (kind \"published\", numbered) and saved states kept after MCP edits (kind \"snapshot\"; saves from the same app within 10 minutes share one). Any of them can be restored with restore_version.","group":"versions","effect":"read","readOnly":true,"requiresStockPhotos":false,"params":[{"name":"pageId","type":"string (uuid)","required":true,"description":"Page id (from list_pages)","constraints":[]}]},{"name":"restore_version","title":"Restore version","description":"Copy an older version into the draft. With publish=true it is published immediately as a new version.","group":"versions","effect":"draft","readOnly":false,"requiresStockPhotos":false,"params":[{"name":"pageId","type":"string (uuid)","required":true,"description":"Page id (from list_pages)","constraints":[]},{"name":"versionId","type":"string (uuid)","required":true,"constraints":[]},{"name":"publish","type":"boolean","required":false,"constraints":[]}]},{"name":"list_media","title":"List media","description":"Media library items as MediaRef objects (use them verbatim in blocks) plus filename, dimensions and folder path. kind \"file\" = documents (PDF, Word, Excel, ...) for the files block; their url is the original file.","group":"media","effect":"read","readOnly":true,"requiresStockPhotos":false,"params":[{"name":"kind","type":"\"image\" | \"video\" | \"file\"","required":false,"constraints":[]},{"name":"folder","type":"string","required":false,"description":"Only items directly in this folder (id, name or path). Use \"/\" for the root. Omit for all media.","constraints":["1–300 tecken"]},{"name":"query","type":"string","required":false,"description":"Search filename and alt text across all folders","constraints":["max 100 tecken"]},{"name":"limit","type":"integer","required":false,"description":"Default 50","constraints":["1–200"]},{"name":"offset","type":"integer","required":false,"constraints":["minst 0"]}]},{"name":"list_media_folders","title":"List media folders","description":"All folders in the media library with their path and number of files (null folder = root).","group":"media","effect":"read","readOnly":true,"requiresStockPhotos":false,"params":[]},{"name":"create_media_folder","title":"Create media folder","description":"Create a folder in the media library (max 3 levels deep, names unique among siblings).","group":"media","effect":"draft","readOnly":false,"requiresStockPhotos":false,"params":[{"name":"name","type":"string","required":true,"constraints":["1–100 tecken"]},{"name":"parent","type":"string","required":false,"description":"Parent folder (id, name or path). Omit for a top-level folder.","constraints":["1–300 tecken"]}]},{"name":"import_media_from_url","title":"Import media from URL","description":"Download an image, video or document from a public URL into the media library. Returns a MediaRef to use in blocks. Documents use the same allowlist as uploads: PDF, Word (.doc/.docx), Excel (.xls/.xlsx), PowerPoint (.ppt/.pptx), OpenDocument (.odt/.ods/.odp), .txt, .csv, .rtf and .zip, max 25 MB. SVG images are converted to PNG (transparent background, 2000 px on the longest side) and only the PNG is stored; the SVG must be self-contained (no DOCTYPE, no linked images, fonts or stylesheets), max 2 MB. HTML, XML and scripts are never accepted.","group":"media","effect":"draft","readOnly":false,"requiresStockPhotos":false,"params":[{"name":"url","type":"string (uri)","required":true,"constraints":[]},{"name":"alt","type":"string","required":false,"description":"Alt text for images (describe the image in Swedish), display name for documents. Omit = empty; set it later with update_media.","constraints":["max 255 tecken"]},{"name":"folder","type":"string","required":false,"description":"Folder to put it in (id, name or path). Omit for the root.","constraints":["1–300 tecken"]}]},{"name":"upload_media","title":"Upload media","description":"Upload a file you have locally (e.g. the customer's logo or photos they gave you) into the media library, base64-encoded. Max 15 MB per file after decoding (for larger files use import_media_from_url with a public URL). Allowed: images (JPEG, PNG, WebP, GIF, SVG), videos (MP4, WebM) and documents (PDF, Word .doc/.docx, Excel .xls/.xlsx, PowerPoint .ppt/.pptx, OpenDocument .odt/.ods/.odp, .txt, .csv, .rtf, .zip). SVG images are converted to PNG (transparent background, 2000 px on the longest side) and only the PNG is stored; the SVG must be self-contained (no DOCTYPE, no linked images, fonts or stylesheets), max 2 MB. HTML, XML and scripts are never accepted; the file content must match its type, and it counts toward the plan's storage. Images get resized variants. Returns a MediaRef to use verbatim in blocks (and its mediaId for header.logoMediaId etc.).","group":"media","effect":"draft","readOnly":false,"requiresStockPhotos":false,"params":[{"name":"data","type":"string","required":true,"description":"The file's bytes as base64 (standard or URL-safe; a data:...;base64, prefix is allowed)","constraints":["minst 1 tecken"]},{"name":"filename","type":"string","required":true,"description":"File name with extension, e.g. \"logo.png\" or \"meny.pdf\" (documents are recognised by their extension)","constraints":["1–200 tecken"]},{"name":"alt","type":"string","required":false,"description":"Alt text for images (describe the image in Swedish), display name for documents","constraints":["max 255 tecken"]},{"name":"folder","type":"string","required":false,"description":"Folder to put it in (id, name or path). Omit for the root.","constraints":["1–300 tecken"]}]},{"name":"update_media","title":"Update media","description":"Change an item in the media library: alt text (images; display name for documents) and/or its folder. Blocks keep a COPY of the MediaRef, so a new alt text only applies where you use the MediaRef from now on: to change it on existing pages, also update the alt field in those blocks (update_page_draft).","group":"media","effect":"draft","readOnly":false,"requiresStockPhotos":false,"params":[{"name":"mediaId","type":"string (uuid)","required":true,"description":"Media id (mediaId from list_media or an upload/import result)","constraints":[]},{"name":"alt","type":"string","required":false,"description":"New alt text (images) or display name (documents). Empty string clears it.","constraints":["max 255 tecken"]},{"name":"folder","type":"string","required":false,"description":"Move to this folder (id, name or path). Use \"/\" for the root.","constraints":["1–300 tecken"]}]},{"name":"delete_media","title":"Delete media","description":"Permanently delete an item from the media library (its file and all sizes). Refused while it is used: in a page draft or a published page (blocks, page share image, links to the file), in a menu link, or as logo, header button, share image or favicon; the error lists where. Remove it there first (and publish), then delete. Older page versions in the history are not checked: restoring one that used the file shows it as missing. Only delete what the user asked you to remove.","group":"media","effect":"draft","readOnly":false,"requiresStockPhotos":false,"params":[{"name":"mediaId","type":"string (uuid)","required":true,"description":"Media id (mediaId from list_media)","constraints":[]}]},{"name":"search_stock_photos","title":"Search stock photos","description":"Search free stock photos (Pixabay, up to 30 per page). Returns candidates with a preview URL for you to judge. Set lang to the language of your query: \"sv\" (default) for Swedish words, \"en\" for English. English usually finds more and better photos; if a search gives few or poor results, try the other language. Use short, concrete nouns (\"gardener\", \"hedge trimming\", \"bakery bread\") rather than abstract phrases (\"quality service\"). Use import_stock_photo to add one to the media library before using it in a block; never put previewUrl in blocks.","group":"stock","effect":"read","readOnly":true,"requiresStockPhotos":true,"params":[{"name":"query","type":"string","required":true,"description":"Search words in the language given by lang","constraints":["2–100 tecken"]},{"name":"lang","type":"\"sv\" | \"en\"","required":false,"description":"Language of the query: \"sv\" (default) or \"en\"","constraints":[]},{"name":"page","type":"integer","required":false,"constraints":["1–16"]}]},{"name":"import_stock_photo","title":"Import stock photo","description":"Download a photo from search_stock_photos into the media library. Returns a MediaRef to use in blocks. Pass alt with a descriptive Swedish alt text; without it the alt text is generated from Pixabay's (often English) tags.","group":"stock","effect":"draft","readOnly":false,"requiresStockPhotos":true,"params":[{"name":"id","type":"string","required":true,"description":"id from search_stock_photos","constraints":["mönster ^\\d{1,12}$"]},{"name":"alt","type":"string","required":false,"description":"Alt text in Swedish describing the photo. Default: built from the photo's tags.","constraints":["max 255 tecken"]},{"name":"folder","type":"string","required":false,"description":"Folder to put it in (id, name or path). Omit for the root.","constraints":["1–300 tecken"]}]},{"name":"list_site_searches","title":"List site searches","description":"What visitors searched for with the site search (/sok) in a period: total searches, the most common queries and the queries without results (useful for finding missing content). Logged anonymously (normalized query and result count only). searchEnabled tells whether the search is currently on (toggle it with update_site_settings).","group":"site","effect":"read","readOnly":true,"requiresStockPhotos":false,"params":[{"name":"period","type":"\"today\" | \"yesterday\" | \"7d\" | \"30d\" | \"90d\" | \"12m\"","required":false,"description":"Period in Europe/Stockholm time. Default 30d.","constraints":[]},{"name":"limit","type":"integer","required":false,"description":"Max queries per list. Default 20","constraints":["1–50"]}]},{"name":"list_form_submissions","title":"List form submissions","description":"Contact form submissions, newest first.","group":"forms","effect":"read","readOnly":true,"requiresStockPhotos":false,"params":[{"name":"limit","type":"integer","required":false,"description":"Default 20","constraints":["1–200"]},{"name":"offset","type":"integer","required":false,"constraints":["minst 0"]}]},{"name":"get_form_submission","title":"Get form submission","description":"One form submission with all submitted fields.","group":"forms","effect":"read","readOnly":true,"requiresStockPhotos":false,"params":[{"name":"id","type":"string (uuid)","required":true,"constraints":[]}]}],"prompts":[{"name":"build_site","title":"Bygg sajten från en beskrivning","description":"Assistenten planerar sidor, skriver texter, väljer tema och bilder, lägger till kontaktformulär och visar en sammanfattning innan något publiceras.","args":[{"name":"business","required":true,"description":"Beskriv verksamheten: vad ni gör, för vem, var ni finns och hur kunder når er."},{"name":"tone","required":false,"description":"Önskad ton, till exempel \"personlig och avslappnad\" eller \"saklig\"."}]},{"name":"new_page","title":"Skapa en ny sida","description":"Assistenten skapar en ny sida i samma stil som resten av sajten och sparar den som utkast.","args":[{"name":"topic","required":true,"description":"Vad sidan ska handla om, till exempel \"Våra behandlingar\"."},{"name":"parent","required":false,"description":"Titel på sidan den ska ligga under (lämna tomt för toppnivå)."},{"name":"details","required":false,"description":"Fakta och önskemål som ska med på sidan."}]},{"name":"review_site","title":"Granska sajten","description":"Assistenten läser alla sidor och kontrollerar texter, alt-texter, länkar, SEO och kontaktuppgifter, och ger en prioriterad lista med förslag.","args":[{"name":"focus","required":false,"description":"Något särskilt att granska, till exempel \"SEO\" eller \"startsidan\"."}]},{"name":"update_content","title":"Uppdatera innehåll","description":"Assistenten hittar alla ställen där en uppgift förekommer, uppdaterar utkasten och frågar innan något publiceras.","args":[{"name":"change","required":true,"description":"Vad som har ändrats, till exempel \"Nya öppettider: mån–fre 9–17, lör 10–14\"."}]}]}