remove_duplicates
按指定列删除重复行(保留首次出现的行)—— 只回统计,不回数据行。
Instructions
按指定列删除重复行(保留首次出现的行)—— 只回统计,不回数据行。
用途:数据清洗。例如按"订单号"去重,只保留第一次出现的记录。
参数:
file_path:工作簿路径
columns:按哪些列判重(列名或列字母如 "A");省略则按整行判重
sheet:表名(省略则用活动表)
返回:删除行数、剩余行数(物理删除,保留首次出现)。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"file_path": "<file_path>"
},
"name": "remove_duplicates"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sheet | No | ||
| columns | No | ||
| file_path | Yes |