updatePageCss
Add, replace, or remove individual CSS rules by selector in a page's CSS field while leaving all other characters untouched, with undo support to restore previous rules.
Instructions
Add, replace or remove individual CSS rules in a web page's CSS field by selector - every other character of the field is left as it is. An icon is a Bootstrap Icons 1.13.1 icon unless the user names another icon set: write content: bi(NAME) with the name from <i class="bi bi-NAME">, and the tool writes the glyph and its font.
Returns: results (one action per rule: added, replaced, removed, unchanged, not_found) and undo, which is this tool's own input for putting the previous rules back.
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": "updatePageCss"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rules | No | 1 to 40 rules. | |
| recipe | No | Instead of rules: the name of a block's measured rule set, which the tool saves whole on the Home page. hero.search_box is the one recipe. | |
| remove | No | Only with recipe, without values: true takes the recipe and every rule written on the hero search form off the Home page, so the search shows BD's own look again. | |
| seo_id | No | The page. Omit for the site's Home page. | |
| values | No | Only with recipe: the look to change, or which of the search fields a visitor must fill. Its block names the keys. | |
| user_named | No | true only when the user's own words name the value this call sends. | |
| recipe_undo | No | Only as part of the undo a recipe call returned: send that undo whole, as it came. |