move_items_to_list_container
Move multiple items to a list-based container for organizing research data in RSpace. This tool transfers samples, subsamples, and other containers to simplify data management.
Instructions
Moves multiple items to a list-based container
Usage: Organize items in simple containers without specific positioning Items: Can move both samples/subsamples and other containers Returns: Success status and results for each moved item
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| item_ids | Yes | ||
| target_container_id | Yes |
Implementation Reference
- main.py:974-988 (handler)The handler function decorated with @mcp.tool, implementing the core logic to move multiple items (samples or containers) to a specified list-based container using the RSpace inventory client.@mcp.tool(tags={"rspace", "inventory", "movement"}) def move_items_to_list_container( target_container_id: Union[int, str], item_ids: List[str] ) -> dict: """ Moves multiple items to a list-based container Usage: Organize items in simple containers without specific positioning Items: Can move both samples/subsamples and other containers Returns: Success status and results for each moved item """ result = inv_cli.add_items_to_list_container(target_container_id, *item_ids) return {"success": result.is_ok(), "results": result.data if hasattr(result, 'data') else str(result)}