Remove empty folders
remove_empty_foldersDeletes empty bookmark folders, including nested folders that contain only empty folders; reports changes without writing by default.
Instructions
Deletes folders that contain no bookmarks (also folders that only contain empty folders). Dry run by default.
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": "remove_empty_folders"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | Write even if the browser seems to be open. Avoid: an open browser overwrites the file when it closes. | |
| dry_run | No | When true (default) nothing is written; the tool only reports what would change. Show that to the user and call again with dry_run=false after they confirm. | |
| profile | No | Profile id from list_profiles (e.g. "chrome:Default", "edge:Profile 1") or the full path to a Bookmarks file. Optional when only one profile exists. |