preview_cells
Preview translatable cells from an Excel file, showing their location and content to understand what will be translated before running full translation.
Instructions
Preview translatable cells from an Excel file.
Returns the first N cells that would be translated, showing their location and content. Useful for understanding what will be translated before running a full translation.
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 |
|---|---|---|---|
| limit | No | Maximum number of cells to preview (default: 10, max: 50) | |
| sheets | No | Specific sheet names to preview. If omitted, previews from 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. |