download_robot_map_v2
Download a robot map by providing its map ID. Retrieves map data using the V2 API for use in navigation and task planning.
Instructions
Downloads a robot map using V2 API.
Args:
map_id: The ID of the map to download.
Returns:
A dictionary containing the map download information.Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| map_id | Yes |
Implementation Reference
- The core handler method `download_robot_map_v2` on the GausiumMCP class that calls the API endpoint 'download_map_v2' via GausiumAPIClient. It validates map_id and delegates to the API client.
async def download_robot_map_v2(self, map_id: str) -> Dict[str, Any]: """ V2地图下载。 Args: map_id: 地图ID Returns: 地图下载信息 Raises: ValueError: map_id为空 httpx.HTTPStatusError: API调用错误 httpx.RequestError: 网络问题 """ if not map_id: raise ValueError("Map ID cannot be empty") async with GausiumAPIClient() as client: return await client.call_endpoint( 'download_map_v2', path_params={'map_id': map_id} ) - src/gs_openapi/main.py:210-220 (registration)The MCP tool registration via `@mcp.tool()` decorator on the `download_robot_map_v2` function. This is the entry point that exposes the tool externally, delegating to `mcp.download_robot_map_v2()`.
@mcp.tool() async def download_robot_map_v2(map_id: str): """Downloads a robot map using V2 API. Args: map_id: The ID of the map to download. Returns: A dictionary containing the map download information. """ return await mcp.download_robot_map_v2(map_id=map_id) - The API endpoint definition for `download_map_v2`, which maps to path `map/{map_id}/download` with method GET and version OPENAPI_V2_ALPHA1. This defines the endpoint configuration used by the API client.
'download_map_v2': APIEndpoint( name="download_robot_map_v2", path="map/{map_id}/download", method=HTTPMethod.GET, version=APIVersion.OPENAPI_V2_ALPHA1, description="V2地图下载" )