embed
Create vector representations for texts using Gemini, store them in a JSON file, and return the file path and dimensions.
Instructions
Create embedding vectors for one or more texts with Gemini. Writes the vectors to a JSON file and returns the path and dimensions.
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": "embed"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | A single text to embed. | |
| model | No | ||
| texts | No | Multiple texts to embed in one call. | |
| output_path | No | Where to write the JSON (defaults under the output dir). |