gemini_count_tokens_tool
Count tokens in any text content for a specified Gemini model. Get accurate token counts to manage limits and costs.
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 | |||