insert_records
Insert new records into domain-specific tables, such as Subject or image metadata. Provide table name and list of record dictionaries to add rows and get inserted count and RIDs.
Instructions
Insert new records into a domain table.
IMPORTANT: This tool is for domain-specific tables only (e.g., Subject, Image metadata). Do NOT use for:
Datasets → use create_dataset(), add_dataset_members()
Features → use add_feature_value()
Vocabularies → use add_term()
Executions → use create_execution()
Workflows → use create_workflow()
Assets with files → use the DerivaML Python API execution workflow
Args: table_name: Name of the domain table to insert into. records: List of dictionaries with column values.
Returns: JSON with inserted_count and record RIDs.
Example: insert_records("Subject", [{"Name": "Patient A", "Age": 45}])
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| records | Yes | ||
| table_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |