Skip to main content
Glama
SwipeCommand+CommanderMetadata.swift2.03 kB
import Commander extension SwipeCommand: CommanderSignatureProviding { static func commanderSignature() -> CommandSignature { CommandSignature( options: [ .commandOption( "from", help: "Source element ID", long: "from" ), .commandOption( "fromCoords", help: "Source coordinates (x,y)", long: "from-coords" ), .commandOption( "to", help: "Destination element ID", long: "to" ), .commandOption( "toCoords", help: "Destination coordinates (x,y)", long: "to-coords" ), .commandOption( "snapshot", help: "Snapshot ID (uses latest if not specified)", long: "snapshot" ), .commandOption( "duration", help: "Duration of the swipe in milliseconds", long: "duration" ), .commandOption( "steps", help: "Number of intermediate points for smooth movement", long: "steps" ), .commandOption( "profile", help: "Movement profile (linear or human)", long: "profile" ), ], flags: [ .commandFlag( "rightButton", help: "Use right mouse button for drag", long: "right-button" ), ], optionGroups: [ InteractionTargetOptions.commanderSignature(), FocusCommandOptions.commanderSignature(), ] ) } }

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