comment
Manage cell comments in Excel sheets: add, read, delete, or list comments for a specific cell or entire worksheet.
Instructions
Add, read, delete or list cell comments on a sheet.
Args:
action: "add", "read", "delete", or "list".
- "add": requires cell_ref and text; optional author.
- "read": requires cell_ref; returns CommentInfo or None.
- "delete": requires cell_ref; destructive.
- "list": returns list of CommentInfo for the sheet.
file_path: Workbook path.
sheet_name: Worksheet name.
cell_ref: Cell reference for single-cell operations.
text: Comment text for "add".
author: Optional author string.
Returns: str | CommentInfo | list[CommentInfo] | None: Depends on action.
Notes: - Deletions mutate the workbook.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | ||
| action | Yes | ||
| author | No | Excel MCP | |
| cell_ref | No | ||
| file_path | Yes | ||
| sheet_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |