mqscript_device_vibrate
Control device vibration duration for mobile automation testing, feedback, or alerts using MQScript MCP Server's vibration function.
Instructions
Make device vibrate
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| duration | No | Vibration duration in milliseconds |
Implementation Reference
- src/tools/extension-commands.ts:184-195 (handler)Handler function that takes optional duration parameter and generates MQScript code to vibrate the device for that duration, returning a formatted text response.handler: async (args: { duration?: number }) => { const { duration = 200 } = args; const script = `Device.Vibrate(${duration})`; return { content: [ { type: 'text', text: `Generated MQScript device vibrate command:\n\`\`\`\n${script}\n\`\`\`\n\nThis makes the device vibrate for ${duration} milliseconds.` } ] }; }
- Input schema for the tool, defining an optional 'duration' parameter (number, default 200ms).inputSchema: { type: 'object' as const, properties: { duration: { type: 'number', description: 'Vibration duration in milliseconds', default: 200 } }, required: [] },
- src/index.ts:53-53 (registration)The DeviceCommands object containing the 'mqscript_device_vibrate' tool is spread into the ALL_TOOLS registry used for tool lookup and execution....PhoneCommands,