get_container_contents_only
Retrieve items stored in a container for content analysis, focusing on the contents without metadata overhead.
Instructions
Retrieves only the items stored in a container
Usage: Get container contents without metadata overhead Performance: Focused query for container content analysis Returns: List of contained items with minimal metadata
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| container_id | Yes |
Implementation Reference
- main.py:1179-1190 (handler)The handler function decorated with @mcp.tool, which automatically registers it as an MCP tool. It fetches the container by ID including content and returns only the 'locations' list (contents). This is the core implementation of the tool logic.@mcp.tool(tags={"rspace", "inventory", "utility"}) def get_container_contents_only(container_id: int | str) -> list: """ Retrieves only the items stored in a container Usage: Get container contents without metadata overhead Performance: Focused query for container content analysis Returns: List of contained items with minimal metadata """ container = inv_cli.get_container_by_id(container_id, include_content=True) return container.get('locations', [])