record_embedding
Store embedding vectors for files or symbols to populate a vector search index, enabling semantic search and retrieval in AI coding environments.
Instructions
Store an embedding vector for a symbol or file. Call this after generating an embedding with your native capability. Used to populate the vector search index.
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": {
"entity_type": "<entity_type>",
"entity_id": "<entity_id>",
"model": "<model>",
"vector": "<vector>",
"source_text": "<source_text>"
},
"name": "record_embedding"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entity_type | Yes | What kind of entity this embedding represents | |
| entity_id | Yes | ID of the file or symbol being embedded | |
| snapshot_id | No | Snapshot this embedding belongs to | |
| model | Yes | Embedding model identifier (e.g. text-embedding-3-small) | |
| vector | Yes | The embedding vector produced by the agent | |
| source_text | Yes | The text that was embedded (for audit / re-embed on model change) |