Skip to main content
Glama

disableDemoMode

Turn off demo mode on Android or iOS devices to restore standard status bar functionality for testing and automation workflows.

Instructions

Disable demo mode and return to normal status bar behavior

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
platformYesTarget platform

Implementation Reference

  • Implements the execution logic for the disableDemoMode tool. Creates a DemoMode instance for the booted device, calls exitDemoMode(), handles the result or errors, and returns a JSON tool response.
    const disableDemoModeHandler = async (device: BootedDevice) => { try { const demoMode = new DemoMode(device); const result = await demoMode.exitDemoMode(); return createJSONToolResponse({ message: "Demo mode disabled", observation: result.observation, ...result, demoModeEnabled: false }); } catch (error) { logger.error("Failed to disable demo mode:", error); throw new ActionableError(`Failed to disable demo mode: ${error}`); } };
  • Zod schema for validating input parameters of the disableDemoMode tool, which requires a 'platform' field.
    export const disableDemoModeSchema = z.object({ platform: z.enum(["android", "ios"]).describe("Target platform") });
  • Registers the disableDemoMode tool in the ToolRegistry using registerDeviceAware, providing the tool name, description, input schema, and handler function.
    ToolRegistry.registerDeviceAware( "disableDemoMode", "Disable demo mode and return to normal status bar behavior", disableDemoModeSchema, disableDemoModeHandler );

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/zillow/auto-mobile'

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