Skip to main content
Glama
mobile-next

Mobile Next MCP Server

Official
by mobile-next

mobile_save_screenshot

Capture and save a screenshot of a mobile device to a specified file path using the Mobile Next MCP Server for automation tasks on iOS and Android.

Instructions

Save a screenshot of the mobile device to a file

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
saveToYesThe path to save the screenshot to

Implementation Reference

  • Registration, schema, and handler for the 'mobile_save_screenshot' tool. It retrieves a screenshot from the device robot and saves it to the specified file path.
    tool( "mobile_save_screenshot", "Save a screenshot of the mobile device to a file", { device: z.string().describe("The device identifier to use. Use mobile_list_available_devices to find which devices are available to you."), saveTo: z.string().describe("The path to save the screenshot to"), }, async ({ device, saveTo }) => { const robot = getRobotFromDevice(device); const screenshot = await robot.getScreenshot(); fs.writeFileSync(saveTo, screenshot); return `Screenshot saved to: ${saveTo}`; } );

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/mobile-next/mobile-mcp'

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