File size: 505 Bytes
25b930c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
# Scroll

Scroll the current tab by direction or pixel amount.

```bash
curl -X POST http://localhost:9867/action \
  -H "Content-Type: application/json" \
  -d '{"kind":"scroll","direction":"down"}'
# CLI Alternative
pinchtab scroll down
# Response
{
  "success": true,
  "result": {
    "success": true
  }
}
```

Notes:

- the top-level CLI also accepts a pixel value such as `pinchtab scroll 800`
- the raw API can also use `scrollY`

## Related Pages

- [Snapshot](./snapshot.md)
- [Text](./text.md)