count_translatable_cells
Counts text cells in Excel files to estimate translation scope and cost. Excludes formulas, numbers, dates, and empty cells.
Instructions
Count the number of translatable cells in an Excel file.
Returns the count of cells containing text that would be translated. Excludes formulas, numbers, dates, and empty cells. Useful for estimating translation scope and cost.
USAGE INSTRUCTIONS:
For local files: Use the 'file_path' parameter with the full path (e.g., ~/Downloads/report.xlsx)
For uploaded files: Ask the user to save the file locally first, then use 'file_path'
For base64 input: If you already have base64 content, use 'file_content_base64'
Provide either 'file_path' OR 'file_content_base64' (not both).
IMPORTANT: When using file_path, DO NOT show the base64 content to the user. Just call the tool and show the results.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sheets | No | Specific sheet names to count. If omitted, counts all sheets. | |
| file_path | No | Path to a local Excel file (e.g., ~/Downloads/report.xlsx). Use this for files saved on the user's computer. | |
| file_content_base64 | No | Base64-encoded Excel file content. IMPORTANT: When user uploads a file, use the file's resource URI from your context instead of reading it manually. If you have access to the file content directly, encode it to base64. |