Save global CSS
fabrement-save-global-cssWrite the SITE-WIDE stylesheet (loaded on every page and in the editor) for rules no single block owns. Either css = the COMPLETE file (replaces; "" deletes) or edits = exact-fragment replacements of the current file — prefer edits for changes. Pass expectedHash from get-global-css. Block styles belong in the block.
Rules: get-skill-doc {id:"global-css-contract"} — read it before the first call.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "fabrement-save-global-css"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| css | No | The COMPLETE stylesheet (replaces the current one). "" removes it. Not with `edits`. | |
| edits | No | Applied in order to one copy; all or none. `old` is an exact fragment (whitespace-insensitive fallback) that must match exactly once unless replaceAll. | |
| expectedHash | No | `hash` from get-global-css. If the file changed since, nothing is saved. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | ||
| hash | No | Of the saved file — use as expectedHash for the next save. | |
| bytes | No | ||
| saved | Yes | ||
| exists | Yes | False after an empty save (the file was removed). |