Estimate Injection Tokens
vault_estimate_tokensEstimate token counts for up to 500 documents in a vault before injection, helping you set the max_tokens limit accurately.
Instructions
Preview the token count of a vault injection without injecting documents.
Returns estimated token counts for each document (up to 500) so you can choose an appropriate max_tokens value before calling vault_inject. Uses tiktoken if available; falls back to char-based estimation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | No | ||
| vault_name | Yes | ||
| max_single_doc_tokens | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |