Skip to main content
Glama

start_recording

Begin recording Android device interactions to create reusable automation macros. Capture subsequent tool calls for automated task execution.

Instructions

Start recording actions to create a macro. All subsequent tool calls will be recorded. Use stop_recording to save.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesName for this recording
device_idNoDevice serial numberdefault

Implementation Reference

  • The actual implementation of the startRecording logic that generates a UUID and initializes a new recording session.
    startRecording(name: string, deviceId: string): string {
      const id = uuidv4();
      const recording: Recording = {
        id,
        name,
        deviceId,
        createdAt: Date.now(),
        actions: [],
        metadata: {},
      };
    
      this.activeRecordings.set(id, recording);
      log.info('Recording started', { id, name, deviceId });
      return id;
    }
  • Registration of the 'start_recording' MCP tool, which calls the actionRecorder.startRecording method.
    server.registerTool(
      'start_recording',
      {
        description: 'Start recording actions to create a macro. All subsequent tool calls will be recorded. Use stop_recording to save.',
        inputSchema: {
          name: z.string().describe('Name for this recording'),
          device_id: z.string().optional().default('default').describe('Device serial number'),
        },
      },
      async ({ name, device_id }) => {
        const id = actionRecorder.startRecording(name, device_id || 'default');
        return {
          content: [{
            type: 'text' as const,
            text: JSON.stringify({ success: true, recording_id: id, name }, null, 2),
          }],
        };
      }
    );

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/divineDev-dotcom/android_mcp'

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