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
| Name | Required | Description | Default |
|---|---|---|---|
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); } - src/controllers/automation-tools.ts:198-213 (registration)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), }], }; } );