-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathllms.txt
More file actions
54 lines (38 loc) · 1.77 KB
/
llms.txt
File metadata and controls
54 lines (38 loc) · 1.77 KB
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# TideSurf
> The connector between Chromium and LLM agents — no screenshots, no vision models, just the DOM compressed for machines.
TideSurf launches Chrome via CDP, walks the live DOM, and compresses it into a token-efficient markdown-like format (50–200 tokens per page vs 5,000–50,000+ for raw HTML). Interactive elements get stable IDs (L=link, B=button, I=input, S=select, F=form, T=table, D=dialog) so agents can act on them. Element state flags (disabled, expanded, collapsed, checked, required, readonly, obscured, inert) are serialized inline so agents know which elements are actionable. Ships with 18 tool definitions and an MCP adapter.
## Install
```bash
bun add @tidesurf/core
```
## Quick Start
```typescript
import { TideSurf } from "@tidesurf/core";
const browser = await TideSurf.launch();
await browser.navigate("https://example.com");
const state = await browser.getState();
console.log(state.content);
const page = browser.getPage();
await page.click("B1");
await page.type("I1", "hello world");
await page.search("pricing"); // returns nearest interactive IDs when available
await browser.close();
```
Read-only mode keeps: `get_state`, `extract`, `list_tabs`, `switch_tab`, `search`, `screenshot`.
`clipboard_read`, `evaluate`, `upload`, and custom `downloadDir` access are disabled or constrained in read-only/safe mode. File I/O is confined to the current working directory and the OS temp directory unless `fileAccessRoots` is set explicitly.
## MCP
```json
{
"mcpServers": {
"tidesurf": {
"command": "bunx",
"args": ["tidesurf", "mcp"]
}
}
}
```
## Links
- Docs: https://tidesurf.org/docs
- GitHub: https://github.com/TideSurf/core
- npm: https://www.npmjs.com/package/@tidesurf/core
- Website llms.txt: https://tidesurf.org/llms.txt