58 lines
1.6 KiB
JSON
58 lines
1.6 KiB
JSON
{
|
|
"name": "chrome_tab_groups",
|
|
"description": "Manage Chrome tab groups: create a group from tabs, update its title/color/collapsed state, move it, ungroup tabs, or list existing groups.",
|
|
"parameters": {
|
|
"type": "object",
|
|
"properties": {
|
|
"action": {
|
|
"type": "string",
|
|
"enum": ["create", "update", "ungroup", "list", "move"],
|
|
"description": "create: group tabIds (optionally into existing groupId); update: set title/color/collapsed on groupId; ungroup: remove tabIds from their group; list: return all groups; move: relocate groupId to windowId/index."
|
|
},
|
|
"tabIds": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number"
|
|
},
|
|
"description": "Tab IDs \u2014 required for action=create and action=ungroup."
|
|
},
|
|
"groupId": {
|
|
"type": "number",
|
|
"description": "Existing group ID \u2014 required for update/move; optional for create (adds tabs to this group)."
|
|
},
|
|
"title": {
|
|
"type": "string",
|
|
"description": "Group title (action=create/update)."
|
|
},
|
|
"color": {
|
|
"type": "string",
|
|
"enum": [
|
|
"grey",
|
|
"blue",
|
|
"red",
|
|
"yellow",
|
|
"green",
|
|
"pink",
|
|
"purple",
|
|
"cyan",
|
|
"orange"
|
|
],
|
|
"description": "Group color (action=create/update)."
|
|
},
|
|
"collapsed": {
|
|
"type": "boolean",
|
|
"description": "Collapse (true) or expand (false) the group (action=create/update)."
|
|
},
|
|
"windowId": {
|
|
"type": "number",
|
|
"description": "Target window for action=move, or the window to create the group in."
|
|
},
|
|
"index": {
|
|
"type": "number",
|
|
"description": "Position for action=move (-1 appends to the end)."
|
|
}
|
|
},
|
|
"required": ["action"]
|
|
}
|
|
}
|