move_items_to_list_container
Organize research items by moving multiple samples, subsamples, or containers to a list-based container in RSpace.
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 |
|---|---|---|---|
| target_container_id | Yes | ||
| item_ids | Yes |
Implementation Reference
- main.py:974-988 (handler)The handler function decorated with @mcp.tool for registration. It moves multiple inventory items (samples or containers) to a specified list-based container using the inv_cli.add_items_to_list_container method. Input parameters define the target container and list of item IDs. Returns a dictionary with success status and results.@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)}