35 lines
1.2 KiB
JSON
35 lines
1.2 KiB
JSON
{
|
|
"name": "chrome_network_request",
|
|
"description": "Send a network request from the browser with cookies and other browser context",
|
|
"parameters": {
|
|
"type": "object",
|
|
"properties": {
|
|
"url": {
|
|
"type": "string",
|
|
"description": "URL to send the request to"
|
|
},
|
|
"method": {
|
|
"type": "string",
|
|
"description": "HTTP method to use (default: GET)"
|
|
},
|
|
"headers": {
|
|
"type": "object",
|
|
"description": "Headers to include in the request"
|
|
},
|
|
"body": {
|
|
"type": "string",
|
|
"description": "Body of the request (for POST, PUT, etc.)"
|
|
},
|
|
"timeout": {
|
|
"type": "number",
|
|
"description": "Timeout in milliseconds (default: 30000)"
|
|
},
|
|
"formData": {
|
|
"type": "object",
|
|
"description": "Multipart/form-data descriptor. If provided, overrides body and builds FormData with optional file attachments. Shape: { fields?: Record<string,string|number|boolean>, files?: Array<{ name: string, fileUrl?: string, filePath?: string, base64Data?: string, filename?: string, contentType?: string }> }. Also supports a compact array form: [ [name, fileSpec, filename?], ... ] where fileSpec may be url:, file:, or base64:."
|
|
}
|
|
},
|
|
"required": ["url"]
|
|
}
|
|
}
|