Extension AuthoringGroup Actions & Sub-Menus
Group Actions & Sub-Menus
Organize multiple actions under an accordion group menu using uniform ID prefixes.
Agent Prompt
Copy instruction prompt for Cursor, Claude, Antigravity, or ChatGPT.
Group Manifest Declaration
Organize related tools into an expandable menu container using "type": "group":
openclip.json
{
"identifier": "com.example.casetools",
"name": "Case Converters",
"actions": [
{
"id": "group",
"title": "Case Tools",
"type": "group",
"icon": "symbol(textformat)",
"subActions": [
{
"id": "upper",
"title": "UPPERCASE",
"type": "javascript",
"script": "upper.js"
},
{
"id": "lower",
"title": "lowercase",
"type": "javascript",
"script": "lower.js"
}
]
}
]
}Uniform ID Prefix Convention
OpenClip automatically namespace-prefixes sub-actions based on the parent group ID:
- Group Action ID:
com.example.casetools.group - Child Sub-Action IDs:
com.example.casetools.group.upperandcom.example.casetools.group.lower - Sub-actions automatically inherit the parent group icon if not explicitly set.
Sub-Menu Relevance Filtering
Sub-actions can declare "menuRelevance": "<regex>". If the current selection fails to match the regular expression, the sub-action is automatically hidden from the sub-menu to avoid redundant options.