romm_firmware
List BIOS and firmware files for ROM management, with optional filtering by platform to organize your collection.
Instructions
List BIOS/firmware files. Optionally filter by platform.
platform_id: Filter to a specific platform (0 = all).
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| platform_id | No |
Implementation Reference
- server.py:903-922 (handler)The `romm_firmware` tool is implemented as an async function decorated with `@mcp.tool()`. It takes an optional `platform_id` and fetches firmware data from the RomM API using a helper function `_get`.
@mcp.tool() async def romm_firmware(platform_id: int = 0) -> str: """List BIOS/firmware files. Optionally filter by platform. platform_id: Filter to a specific platform (0 = all). """ params: dict = {} if platform_id: params["platform_id"] = platform_id data = await _get("firmware", params=params) if not isinstance(data, list) or not data: qualifier = f" for platform {platform_id}" if platform_id else "" return f"No firmware found{qualifier}." lines = [f"Firmware ({len(data)}):\n"] for fw in data[:50]: fname = fw.get("file_name", "?") size = fw.get("file_size_bytes", 0)