Upload File
element_upload_fileUpload local files to an input[type=file] element using a CSS, XPath, or DrissionPage locator. Only accepts secure paths under a designated upload root directory.
Instructions
Set files on an input[type=file]. Paths must exist under DP_MCP_UPLOAD_ROOT and response data only returns safe file names.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| paths | Yes | One or more local file paths under DP_MCP_UPLOAD_ROOT. Absolute paths are accepted but never echoed back in tool results. | |
| timeout | No | Timeout in seconds to wait for the file input. | |
| selector | Yes | CSS/XPath/DrissionPage locator for an input[type=file]. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||