upload_file
Uploads a file to the current webpage by triggering the file input element, using the specified file path. Returns upload result or error.
Instructions
点击当网页上的 元素触发上传文件的操作,上传file_path文件到当前网页
Args:
file_path (str): 要上传的文件路径
Returns: str: 上传结果信息,如果元素不存在则返回错误信息
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": "upload_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes |