Gemini Count Tokens Tool
gemini_count_tokens_toolCounts tokens in text for a chosen Gemini model, helping you estimate prompt size and manage API limits before sending content.
Instructions
Count the number of tokens in content.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Model to count tokens for. | flash |
| content | Yes | The text content to count tokens for. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||