Tool Reference
Label Operations
Refine your annotation taxonomy without manual relabeling. These tools let you rename classes for consistency, remove unwanted labels, and query label distributions — all with automatic dataset-type detection for classification, detection, segmentation, keypoints, and OCR.
modify_labels
Async JobModify labels in a dataset — remove unwanted classes or rename/remap class names. Automatically handles reindexing of remaining classes across all annotation files. Supports classification, detection, segmentation, keypoints, and OCR datasets.
Parameters
dataset_namestringactionstringlabels_to_removelist[string]label_mappingdictold_labelstringnew_labelstringbranch_namestringReturns
Job ID for tracking progress via get_processing_status. Creates a new dataset version — original data is preserved.
Example prompt
“Remove the classes "Scissors" and "Knife" from my airport-xray dataset”
query_dataset
InstantQuery dataset labels and images. Returns instant results from the database without running compute jobs. Use "count_labels" to get label distribution or "find_images" to locate images containing a specific class.
Parameters
dataset_namestringactionstringlabelstringexclusivebooleanbranch_namestringReturns
For count_labels: object mapping class names to counts. For find_images: list of image filenames matching the query.
Example prompt
“How many images of each class are in my retail-detection dataset?”
Behavior by dataset type
Non-destructive: Label operations create a new version of your dataset. Your original data is always preserved and you can revert at any time.