cdp_upload
Upload files to a file input element in a browser session controlled via CDP. Provide session ID, selector, and file paths from the server machine.
Instructions
Set files on an . Paths must exist on the machine running this MCP server.
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>",
"selector": "<selector>",
"files": "<files>"
},
"name": "cdp_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes | ||
| selector | Yes | ||
| session_id | Yes | Session id returned by cdp_connect |