Skip to main content
Glama

list_recordings

Retrieve all saved action recordings and macros for Android device automation through the Android MCP Server.

Instructions

List all saved action recordings/macros.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The implementation logic for listing available recordings from the filesystem.
    listRecordings(): Array<{ filename: string; name: string; id: string; actionCount: number }> {
      const config = getConfig();
      const dir = config.recordingsDir;
    
      if (!existsSync(dir)) return [];
    
      return readdirSync(dir)
        .filter(f => f.endsWith('.json'))
        .map(filename => {
          try {
            const content = readFileSync(join(dir, filename), 'utf-8');
            const recording = JSON.parse(content) as Recording;
            return {
              filename,
              name: recording.name,
              id: recording.id,
              actionCount: recording.actions.length,
            };
          } catch {
            return null;
          }
        })
        .filter((r): r is NonNullable<typeof r> => r !== null);
    }
  • MCP tool registration for 'list_recordings'.
    server.registerTool(
      'list_recordings',
      {
        description: 'List all saved action recordings/macros.',
        inputSchema: {},
      },
      async () => {
        const recordings = actionRecorder.listRecordings();
        return {
          content: [{
            type: 'text' as const,
            text: JSON.stringify({ success: true, recordings }, 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