Embed a text
openai_embeddingsUse this when the user asks to embed a text with OpenAI, or what that would cost. Returns the model, vector length, tokens used and only the first 10 numbers of the vector, so it cannot be used to search or compare texts. Runs on SingleBrain's account: from 1 credit a call.
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": {
"text": "<text>"
},
"name": "openai_embeddings"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The text to embed, up to about 8192 tokens | |
| model | No | One of: text-embedding-3-large, text-embedding-3-small, defaults to text-embedding-3-small |