set_attribute
Set an HTML attribute on elements matching a CSS selector by providing file path, selector, attribute, and value.
Instructions
Set attribute on element(s) by CSS selector
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": {
"file_path": "<file_path>",
"selector": "<selector>",
"attribute": "<attribute>",
"value": "<value>"
},
"name": "set_attribute"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | ||
| selector | Yes | ||
| attribute | Yes | ||
| file_path | Yes |