list_game_videos
Browse available gameplay videos for split-screen overlays in short-form content creation. Find videos to use with content on top and gameplay on bottom layouts.
Instructions
List available gameplay videos for split-screen overlays (content top, game bottom). Use the exact gameVideoName when creating shorts.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number | |
| limit | No | Items per page (1-100) |
Implementation Reference
- src/tools/list-game-videos.js:14-21 (handler)The handler logic for the 'list_game_videos' tool, which calls the client and formats the result.
async (params) => { try { const result = await client.listGameVideos(params); return { content: [{ type: 'text', text: formatPaginatedAssets(result, 'gameVideos', 'Gameplay Overlays') }] }; } catch (error) { return { content: [{ type: 'text', text: formatError(error) }], isError: true }; } } - src/tools/list-game-videos.js:4-7 (schema)The Zod schema defining the input parameters for the tool.
const schema = { page: z.number().min(1).default(1).describe('Page number').optional(), limit: z.number().min(1).max(100).default(20).describe('Items per page (1-100)').optional(), }; - src/tools/list-game-videos.js:9-23 (registration)The registration function that defines the 'list_game_videos' tool on the MCP server instance.
export function registerListGameVideos(server, client) { server.tool( 'list_game_videos', 'List available gameplay videos for split-screen overlays (content top, game bottom). Use the exact gameVideoName when creating shorts.', schema, async (params) => { try { const result = await client.listGameVideos(params); return { content: [{ type: 'text', text: formatPaginatedAssets(result, 'gameVideos', 'Gameplay Overlays') }] }; } catch (error) { return { content: [{ type: 'text', text: formatError(error) }], isError: true }; } } ); }