Estimate tokens
faf_estimate_tokensEstimate token count for arbitrary content via the Zig WASM engine. Sub-millisecond, zero allocations. Useful for context-budget planning.
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": {
"content": "<content>"
},
"name": "faf_estimate_tokens"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | Content to estimate tokens for. |