field_index
Scan every entity to build a custom field-to-asset ID index for deduplication before bulk import, preventing duplicate records.
Instructions
Return {field_value: assetId} for every entity that has the named
custom field — a one-pass index for DEDUPE before a bulk import (q does
not index custom fields, so this scans every entity). field_name
defaults to $HOMEBOX_ALIAS_FIELD. assetId may be empty for un-asset'd
rows. Deliberately uncapped: a truncated dedupe index causes duplicates,
so expect a large result on a large inventory.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "field_index"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| field_name | No |