embed
Generate semantic vectors from text or files with a local model to deduplicate, cluster, or find similar items. Returns raw vectors; compare with cosine similarity.
Instructions
Embed text/files with an embedding model on the local provider — for semantic dedup, clustering, or find-similar work that generation can't do. Needs an embedding model (e.g. nomic-embed-text, embeddinggemma) — check list_models capabilities. Returns raw vectors; cosine-similarity them yourself.
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 |
|---|---|---|---|
| glob | No | Glob pattern, e.g. 'src/**/*.ts' | |
| path | No | Single file path (read server-side — never enters your context) | |
| text | No | Inline text instead of files | |
| model | No | ||
| paths | No | Multiple file paths | |
| provider | No |