llama_detokenize
Convert token IDs to text. Decode numerical tokens from llama.cpp outputs into readable strings.
Instructions
Convert token IDs back to 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": {
"tokens": "<tokens>"
},
"name": "llama_detokenize"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tokens | Yes | Token IDs to convert |