| name | edit-bookmarks |
| description | Edit a team bookmarks YAML file — add, remove, rename or reorder links and folders. |
| license | MIT |
Edit the team bookmarks YAML file based on the user's request.
Schema
name: string
folders:
- name: string
children:
- label: string
url: string
- name: string
children: []
Discriminant: a child with label is a link; a child with name is a folder.
Steps
- Find the bookmarks file in the current directory. It is usually named
bookmarks.yml but may be any .yml or .yaml file whose root keys are name and folders.
- Read the file carefully, including the comment header at the top.
- Apply the requested change.
- Preserve the comment header block exactly.
- Write the updated file.
- Confirm what changed (item name, action, location).
Supported operations
- Add a link: append
{ label, url } to the children of the most relevant folder. Ask if ambiguous.
- Add a folder: append
{ name, children: [] } inside the target parent's children, or at root level under folders.
- Remove a link or folder: delete the entry from
children (or from folders for root folders).
- Rename: update the
name (folder) or label (link) field.
- Reorder: move an item to a new position within its
children array. Links and folders share the same list and can be freely interleaved.
Rules
- Never remove or alter the comment header block (lines starting with
# at the top of the file).
- Preserve 2-space indentation and the existing
lineWidth style.
- URLs must start with
https:// unless the user provides a different scheme.
- Do not touch any other file in the repository.