lmstudio_embed
Generate embedding vectors from text with a local LM Studio model, optionally returning only vector dimensions instead of full vectors.
Instructions
Turn text into embedding vectors with a local embedding model. Returns vectors, or only their dimensions if vectors are not needed.
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": {
"texts": "<texts>"
},
"name": "lmstudio_embed"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Embedding model identifier or key. Default: any loaded embedding model. | |
| texts | Yes | ||
| include_vectors | No | Return the full vectors (default true). |