page_upload_file
Upload a file from the local machine to a file input element on a web page using its CSS selector. Provide the absolute file path and page session to complete the action.
Instructions
Upload a file to an input[type=file] by CSS selector. The file must exist on the machine running the engine.
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": {
"session_id": "<session_id>",
"page_id": "<page_id>",
"selector": "<selector>",
"file_path": "<file_path>"
},
"name": "page_upload_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page_id | Yes | ||
| selector | Yes | CSS selector for the file input (input[type=file]). | |
| file_path | Yes | Absolute path to the file to upload. | |
| session_id | Yes |