Search plants

distru-search-plantsRead

Searches individual tagged cultivation plants.

Inputs

Every tool also takes the common inputs.

FieldTypeRequiredDescription
limitintegerNoDefault: 10
cursorstringNonextCursor of the previous call; keep the other arguments unchanged.
idsstring[]No
statusesenum[]
DESTROYEDFLOWERINGHARVESTEDHARVESTINGIMMATUREPACKAGEDVEGETATIVE
NoFilter by cultivation status. Matches any of the given statuses.
licenseIdstringNoFilter to plants under this license. Resolve via distru-search-licenses.
locationIdsstring[]NoFilter to plants at these locations. Resolve via distru-search-locations.
metrcStrainNamesstring[]NoExact Metrc strain names. Matches any of them.
floweredAfterstringNoEntered flowering on or after. YYYY-MM-DD (start of day, company timezone) or ISO 8601 with a UTC offset.
floweredBeforestringNoEntered flowering on or before. YYYY-MM-DD (end of day, company timezone) or ISO 8601 with a UTC offset.
plantGroupIdstringNoFilter to plants from this plant group (batch). Resolve via distru-search-plant-groups.
harvestIdstringNoFilter to plants that went into this harvest. Resolve via distru-search-harvests.
teardownIdstringNoFilter to plants in this teardown. Resolve via distru-search-teardowns.
isMotherbooleanNo
isWeighedbooleanNo
searchstringNoCase-insensitive substring match on the Metrc plant label.
sortByobjectNoSort options. Defaults to most recently updated first when omitted.
sortBy.directionenum
ASCDESC
Yes
sortBy.fieldenum
PLANTED_ATUPDATED_ATINSERTED_ATLABEL
YesField to sort by. LABEL is the Metrc plant label.

Output

Presence on a nested field assumes its parent exists.

FieldTypePresence
hasMorebooleanAlways
nextCursorstringCan be absent
totalCountintegerCan be absent
itemsobject[]Always
items[].idstringAlways
items[].statusenum
DESTROYEDFLOWERINGHARVESTEDHARVESTINGIMMATUREPACKAGEDVEGETATIVE
Always
items[].plantedAtstringAlways
items[].floweredAtstringCan be null
items[].harvestedAtstringCan be null
items[].destroyedAtstringCan be null
items[].isMotherPlantbooleanAlways
items[].metrcLabelstringCan be null
items[].metrcStrainNamestringCan be null
items[].metrcPlantBatchNamestringCan be null
items[].plantGroupobjectCan be null
items[].plantGroup.idstringAlways
items[].plantGroup.namestringAlways
items[].licenseobjectAlways
items[].license.idstringAlways
items[].license.licenseNumberstringAlways
items[].locationobjectAlways
items[].location.idstringAlways
items[].location.namestringAlways
What the AI reads

Searches individual tagged cultivation plants. Step 2 of the lifecycle: plant group (distru-search-plant-groups) → plants → teardown (distru-search-teardowns) → harvests. One row per plant.