hachidori_save_userscript
Creates or patches one userscript while preserving other scripts and their order; omit id to add, or reuse an id to edit or toggle. JavaScript is syntax-checked without execution.
Instructions
Create or patch one userscript, preserving others and its position. Omit id for a new script (provide name); reuse an existing id to edit or toggle. JavaScript is syntax-checked without execution. Read the guide first. Reload pages to run changed JavaScript.
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": {
"baseRevision": "<baseRevision>"
},
"name": "hachidori_save_userscript"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ||
| css | No | ||
| name | No | ||
| enabled | No | ||
| javascript | No | ||
| baseRevision | Yes | Revision from the latest get_settings; conflicts require reading again. |