tokenize
Convert input text into a local llama.cpp model's token IDs for prompt analysis and text processing.
Instructions
Return the model's token ids for text.
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": "tokenize"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| model | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |