duplicate_sample
Create an exact copy of an existing sample in RSpace for parallel experiments or backup purposes, generating a new sample with a fresh ID and subsamples.
Instructions
Creates an exact copy of an existing sample
Usage: Replicate samples for parallel experiments or backup Returns: New sample information with fresh ID and subsamples
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| new_name | No | ||
| sample_id | Yes |
Implementation Reference
- main.py:803-812 (handler)Handler function for the 'duplicate_sample' tool. Decorated with @mcp.tool for automatic registration. Duplicates a sample using inv_cli.duplicate, returning the new sample info.@mcp.tool(tags={"rspace", "inventory", "samples"}) def duplicate_sample(sample_id: Union[int, str], new_name: str = None) -> dict: """ Creates an exact copy of an existing sample Usage: Replicate samples for parallel experiments or backup Returns: New sample information with fresh ID and subsamples """ return inv_cli.duplicate(sample_id, new_name)