43 lines
1.1 KiB
JSON
43 lines
1.1 KiB
JSON
{
|
|
"name": "chrome_upload_file",
|
|
"description": "Upload files to web forms with file input elements using Chrome DevTools Protocol",
|
|
"parameters": {
|
|
"type": "object",
|
|
"properties": {
|
|
"tabId": {
|
|
"type": "number",
|
|
"description": "Target tab ID (default: active tab)"
|
|
},
|
|
"windowId": {
|
|
"type": "number",
|
|
"description": "Target window ID to pick active tab when tabId is omitted"
|
|
},
|
|
"selector": {
|
|
"type": "string",
|
|
"description": "CSS selector for the file input element (input[type=\"file\"])"
|
|
},
|
|
"filePath": {
|
|
"type": "string",
|
|
"description": "Local file path to upload"
|
|
},
|
|
"fileUrl": {
|
|
"type": "string",
|
|
"description": "URL to download file from before uploading"
|
|
},
|
|
"base64Data": {
|
|
"type": "string",
|
|
"description": "Base64 encoded file data to upload"
|
|
},
|
|
"fileName": {
|
|
"type": "string",
|
|
"description": "Optional filename when using base64 or URL (default: \"uploaded-file\")"
|
|
},
|
|
"multiple": {
|
|
"type": "boolean",
|
|
"description": "Whether the input accepts multiple files (default: false)"
|
|
}
|
|
},
|
|
"required": ["selector"]
|
|
}
|
|
}
|