File size: 958 Bytes
cf3884b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{
  "name": "browser_evaluate",
  "description": "Evaluate JavaScript expression on page or element",
  "inputSchema": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "element": {
        "description": "Human-readable element description used to obtain permission to interact with the element",
        "type": "string"
      },
      "target": {
        "description": "Exact target element reference from the page snapshot, or a unique element selector",
        "type": "string"
      },
      "function": {
        "type": "string",
        "description": "() => { /* code */ } or (element) => { /* code */ } when element is provided"
      },
      "filename": {
        "description": "Filename to save the result to. If not provided, result is returned as text.",
        "type": "string"
      }
    },
    "required": [
      "function"
    ],
    "additionalProperties": false
  }
}