Skip to main content
Glama
MenuCommand+CommanderMetadata.swift2.44 kB
import Commander extension MenuCommand.ClickSubcommand: CommanderSignatureProviding { static func commanderSignature() -> CommandSignature { CommandSignature( options: [ .commandOption( "item", help: "Menu item to click", long: "item" ), .commandOption( "path", help: "Menu path for nested items", long: "path" ), ], optionGroups: [ InteractionTargetOptions.commanderSignature(), FocusCommandOptions.commanderSignature(), ] ) } } extension MenuCommand.ClickExtraSubcommand: CommanderSignatureProviding { static func commanderSignature() -> CommandSignature { CommandSignature( options: [ .commandOption( "title", help: "Title of the menu extra", long: "title" ), .commandOption( "item", help: "Menu item to click after opening the extra", long: "item" ), ] ) } } extension MenuCommand.ListSubcommand: CommanderSignatureProviding { static func commanderSignature() -> CommandSignature { CommandSignature( flags: [ .commandFlag( "includeDisabled", help: "Include disabled menu items", long: "include-disabled" ), ], optionGroups: [ InteractionTargetOptions.commanderSignature(), FocusCommandOptions.commanderSignature(), ] ) } } extension MenuCommand.ListAllSubcommand: CommanderSignatureProviding { static func commanderSignature() -> CommandSignature { CommandSignature( flags: [ .commandFlag( "includeDisabled", help: "Include disabled menu items", long: "include-disabled" ), .commandFlag( "includeFrames", help: "Include frame data for each item", long: "include-frames" ), ] ) } }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/steipete/Peekaboo'

If you have feedback or need assistance with the MCP directory API, please join our Discord server