create_list_container
Create a list-based container in RSpace to organize inventory items like folders or boxes, configure storage permissions, and optionally nest within parent containers.
Instructions
Creates a simple list-based container for organizing inventory
Usage: Create folders, boxes, or other containers without specific positioning Storage permissions: Configure what types of items can be stored Hierarchy: Optionally nest within another container
Returns: Created container information with storage settings
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| description | No | ||
| tags | No | ||
| can_store_containers | No | ||
| can_store_samples | No | ||
| parent_container_id | No |
Implementation Reference
- main.py:863-894 (handler)Handler function implementing the create_list_container tool. Decorated with @mcp.tool for automatic registration in the MCP server. Prepares tag objects and target location before delegating to the inv_cli client.@mcp.tool(tags={"rspace", "inventory", "containers"}) def create_list_container( name: str, description: str = None, tags: List[str] = None, can_store_containers: bool = True, can_store_samples: bool = True, parent_container_id: Union[int, str] = None ) -> dict: """ Creates a simple list-based container for organizing inventory Usage: Create folders, boxes, or other containers without specific positioning Storage permissions: Configure what types of items can be stored Hierarchy: Optionally nest within another container Returns: Created container information with storage settings """ tag_objects = i.gen_tags(tags) if tags else [] location = i.TopLevelTargetLocation() if parent_container_id: location = i.ListContainerTargetLocation(parent_container_id) return inv_cli.create_list_container( name=name, description=description, tags=tag_objects, can_store_containers=can_store_containers, can_store_samples=can_store_samples, location=location )