列出 Excel Sheet
xlsx_list_sheetsRead-onlyIdempotent
List all sheets in an xlsx file with their names, row counts, and column counts.
Instructions
列出 xlsx 文件中所有 sheet 的名称、行数和列数。
参数:
file_path (string, 必填): xlsx 文件路径
返回:
file_path: 文件路径
sheets: Sheet 信息数组
name: Sheet 名称
rows: 行数
cols: 列数
示例:
"读取 test.xlsx 有哪些 sheet" -> { file_path: "test.xlsx" }
错误处理:
文件不存在: "文件不存在: <路径>"
不是 xlsx 文件: "不支持的文件格式: <路径>"
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | xlsx 文件路径 |