Vector index data
manage_vs_dataRead, write, and delete rows in Databricks Vector Search indexes, and trigger Delta Sync refreshes from source tables.
Instructions
Read and write the data inside a Vector Search index.
Actions:
scan: page through stored rows (last_primary_key to continue).
upsert: insert/overwrite rows in a Direct Vector Access index (records or inputs_json).
delete: delete rows by primary key from a Direct Vector Access index (requires confirm).
sync: trigger a refresh of a Delta Sync index from its source table. Delta Sync indexes cannot be written directly: modify the source table and sync instead.
Safety classification: scan = READ_ONLY; upsert = WRITE; delete = DESTRUCTIVE; sync = EXECUTION+WRITE.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | Operation to perform. | |
| confirm | No | Set to true ONLY after the user has reviewed the plan returned by a previous call with status 'confirmation_required'. Required for destructive/security-sensitive actions. | |
| dry_run | No | If true, validate and return the planned change without executing it. | |
| records | No | upsert: rows to write, each including the primary key and the vector column(s). | |
| index_name | Yes | Full index name catalog.schema.index. | |
| inputs_json | No | upsert: alternative to records - a JSON array (string or already-parsed array). | |
| num_results | No | scan: rows to return (default 10, server-capped). | |
| primary_keys | No | delete: primary key values of rows to delete. | |
| include_vectors | No | scan: return full embedding vectors (default: summarized as <vector dim=N>). | |
| last_primary_key | No | scan: continue after this primary key (from a previous scan). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| page | No | ||
| plan | No | ||
| tool | Yes | ||
| action | No | ||
| safety | No | ||
| status | No | success | |
| summary | Yes | ||
| warnings | No | ||
| next_steps | No | Suggested follow-up calls. | |
| request_id | No |