nucleo-site-import
Import site-export files to create or update WordPress tokens, sections, pages, posts, layouts, menus, media and settings. Use dryRun to validate every document without writing.
Instructions
Imports the files produced by nucleo/site-export: creates or updates tokens, sections, pages, posts, layouts, rules, media, menus and site settings (title, tagline, homepage, language). With dryRun true it validates every document like a real import (schema and blocking quality issues) without writing. With force true it also imports the posts, tokens and site settings modified on the site after the export; with force as a list of file paths (e.g. ["pages/home.json"], "site.json" for tokens and settings) only those files. acknowledge carries the blocking issues a human has accepted, per file. The report returns the new base (base, tokensBase) to write into site.json. Quality is checked on the page composed with the site layouts it will receive (header, footer, single or product), also for new pages. Pages and posts are imported before layouts, because layout conditions refer to them (page:): a page is checked against the layouts already on the site, not those of the same import. content/ and terms/ files are not handled here: they go to content-upsert and terms-set.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"files": "<files>"
},
"name": "nucleo-site-import"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes | Relative path → JSON content, as in nucleo/site-export. | |
| force | No | true for every file, or the file paths to overwrite even if they changed on the site (nucleo push --force <file>). | |
| dryRun | No | ||
| pending | No | dryRun only: symbols of the published content items and terms that the same push creates first, e.g. "evento:congresso", "page:servizi/consulenza", "term:area/nutrizione". Menu items and site settings treat them as found. nucleo push --dry-run sends them. | |
| acknowledge | No | File path → blocking quality issues accepted by a human, as in nucleo/doc-publish. Ask the user first and quote the consent in reason. |