Skip to main content
Glama

mobile_open_url

Open a specified URL directly in the browser on a mobile device using the Mobile Next MCP server, enabling streamlined interaction between applications and web resources.

Instructions

Open a URL in browser on device

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesThe URL to open

Implementation Reference

  • src/server.ts:327-338 (registration)
    Registration of the 'mobile_open_url' MCP tool, including input schema (url: string) and handler function that requires a selected device (robot) and delegates to robot.openUrl(url), returning a confirmation message.
    tool( "mobile_open_url", "Open a URL in browser on device", { url: z.string().describe("The URL to open"), }, async ({ url }) => { requireRobot(); await robot!.openUrl(url); return `Opened URL: ${url}`; } );
  • The core handler function for the mobile_open_url tool. It checks if a device (robot) is selected, opens the provided URL on the device, and returns a success message.
    async ({ url }) => { requireRobot(); await robot!.openUrl(url); return `Opened URL: ${url}`; }
  • Zod schema for the mobile_open_url tool input parameters: url (string).
    { url: z.string().describe("The URL to open"), },
  • Android-specific implementation of openUrl using ADB to launch an intent for viewing the URL.
    public async openUrl(url: string): Promise<void> { this.adb("shell", "am", "start", "-a", "android.intent.action.VIEW", "-d", url); }
  • iOS Simulator implementation of openUrl, delegating to WebDriverAgent or simctl.
    public async openUrl(url: string) { const wda = await this.wda(); await wda.openUrl(url); // alternative: this.simctl("openurl", this.simulatorUuid, url); }

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/EmpathySlainLovers/MCP'

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