payload_index_create
Creates a payload index on a collection field to enable fast filtering in search queries. Use when a field, such as date, author, or type, must be filterable.
Instructions
Creates a payload index on a collection field so it can be used as a fast search filter (e.g. date, author, type). Use this when the wizard's filter question or a user request names a field that needs to be filterable.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"collection": "<collection>",
"field": "<field>",
"field_type": "<field_type>"
},
"name": "payload_index_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| field | Yes | ||
| collection | Yes | ||
| field_type | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| field | Yes | ||
| created | Yes | ||
| collection | Yes | ||
| field_type | Yes |