@crewx/chromex 0.1.0-rc.70 → 0.1.0-rc.72
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/SKILL.md +15 -15
- package/package.json +2 -2
package/SKILL.md
CHANGED
|
@@ -8,8 +8,8 @@ metadata:
|
|
|
8
8
|
|
|
9
9
|
# Chrome X Browser Tool
|
|
10
10
|
|
|
11
|
-
Chrome X
|
|
12
|
-
|
|
11
|
+
Chrome X is the browser tool CLI that CrewX agents use to read browser tabs and request screenshots.
|
|
12
|
+
It runs commands against a session connected to the server's Chrome X MCP/HTTP channel.
|
|
13
13
|
|
|
14
14
|
## Commands
|
|
15
15
|
|
|
@@ -25,10 +25,10 @@ npx crewx chromex tabs
|
|
|
25
25
|
|
|
26
26
|
## When To Use
|
|
27
27
|
|
|
28
|
-
-
|
|
29
|
-
-
|
|
30
|
-
-
|
|
31
|
-
-
|
|
28
|
+
- When you need to read the current text of a browser page
|
|
29
|
+
- When you need to check UI/webpage state via screenshot
|
|
30
|
+
- When you need a list of connected Chrome tabs
|
|
31
|
+
- When you need to check or disconnect the Chrome X session connection status
|
|
32
32
|
|
|
33
33
|
## Connection
|
|
34
34
|
|
|
@@ -37,8 +37,8 @@ npx crewx chromex connect --scope=current --expires=90d --agent=<agent_id>
|
|
|
37
37
|
npx crewx chromex status
|
|
38
38
|
```
|
|
39
39
|
|
|
40
|
-
`connect
|
|
41
|
-
|
|
40
|
+
`connect` creates a Chrome X browser access approval request. The default endpoint is `http://localhost:8150`;
|
|
41
|
+
when using a remote server, specify `--endpoint` or `CREWX_ENDPOINT`.
|
|
42
42
|
|
|
43
43
|
## Browser Reads
|
|
44
44
|
|
|
@@ -49,18 +49,18 @@ npx crewx chromex screenshot --tab=123 --output=/tmp/page.png
|
|
|
49
49
|
npx crewx chromex tabs
|
|
50
50
|
```
|
|
51
51
|
|
|
52
|
-
`read
|
|
52
|
+
`read` is translated into a `page_read_text` tool call, `screenshot` into `page_screenshot`, and `tabs` into `listTabs`.
|
|
53
53
|
|
|
54
54
|
## Environment
|
|
55
55
|
|
|
56
56
|
| Variable | Purpose |
|
|
57
57
|
|----------|---------|
|
|
58
|
-
| `CREWX_AGENT_ID` |
|
|
59
|
-
| `CREWX_ENDPOINT` |
|
|
60
|
-
| `CREWX_API_TOKEN` |
|
|
58
|
+
| `CREWX_AGENT_ID` | Default agent ID |
|
|
59
|
+
| `CREWX_ENDPOINT` | Default CrewX server URL |
|
|
60
|
+
| `CREWX_API_TOKEN` | Access token for remote servers |
|
|
61
61
|
|
|
62
62
|
## Notes
|
|
63
63
|
|
|
64
|
-
- `usage
|
|
65
|
-
-
|
|
66
|
-
-
|
|
64
|
+
- `usage` prints this `SKILL.md` as-is.
|
|
65
|
+
- If there's no browser session, run `connect` first.
|
|
66
|
+
- For server/extension connection issues, check `status` first.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crewx/chromex",
|
|
3
|
-
"version": "0.1.0-rc.
|
|
3
|
+
"version": "0.1.0-rc.72",
|
|
4
4
|
"description": "Chrome X browser tool CLI for CrewX agents",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"main": "dist/src/engine.js",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
],
|
|
34
34
|
"license": "MIT",
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@crewx/shared": "0.0.6
|
|
36
|
+
"@crewx/shared": "0.0.6"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@types/node": "^20.0.0",
|