About Textweb
Textweb is an MCP server published by chrisrobison in the Cloud category: a text-grid web renderer for AI agents — see the web without screenshots. Conduid read 14 tools from its source: textweb_assert_field, textweb_click, textweb_navigate, textweb_press, textweb_scroll, textweb_select and 8 more. It is published to npm as textweb and starts with npx.
The repository has 104 stars and 13 forks, is licensed MIT, and its last commit was on 18 Nov 2026. The latest release is v0.2.4. It follows v0.2.3, and the 4 most recent releases go back to v0.1.2. It passes 4 of the 6 static checks Conduid ran on the repository; it does not pass No dynamic code execution and Scoped permissions. Its topics include cloud.
Install
claude mcp add textweb -- npx -y textwebnpx -y textwebgit clone https://github.com/chrisrobison/textwebTools (14)
textweb_assert_fieldAssert a field value/text by element ref. Useful in multi-step forms before submitting.| Parameter | Type | Description |
|---|---|---|
| attribute | string | Optional DOM attribute name to validate (e.g., aria-invalid) |
| comparator | string | Comparison mode (default: equals) |
| expected * | string | Expected value/content |
| ref * | number | Element reference number from current snapshot |
| session_id | string | Optional session_id to isolate state across flows. Defaults to "default". |
textweb_clickClick an interactive element by its reference number. Returns the updated text grid after the click (page may navigate or update).| Parameter | Type | Description |
|---|---|---|
| ref * | number | Element reference number from the text grid (e.g., 3 for [3]) |
| retries | number | Retry attempts for flaky transitions |
| retry_delay_ms | number | Delay between retries in ms |
| session_id | string | Optional session_id to isolate state across flows. Defaults to "default". |
textweb_navigateNavigate to a URL and render the page as a structured text grid. Interactive elements are annotated with [ref] numbers for clicking/typing. Returns the text grid view, element map, and page metadata. Use this as your primary way to view web pages — no screenshots or vision model needed.| Parameter | Type | Description |
|---|---|---|
| cols | number | Grid width in characters (default: 120) |
| retries | number | Retry attempts for flaky transitions |
| retry_delay_ms | number | Delay between retries in ms |
| session_id | string | Optional session_id to isolate state across flows. Defaults to "default". |
| url * | string | The URL to navigate to |
textweb_pressPress a keyboard key (e.g., Enter, Tab, Escape, ArrowDown). Returns the updated text grid.| Parameter | Type | Description |
|---|---|---|
| key * | string | Key to press (e.g., "Enter", "Tab", "Escape", "ArrowDown") |
| retries | number | Retry attempts for flaky transitions |
| retry_delay_ms | number | Delay between retries in ms |
| session_id | string | Optional session_id to isolate state across flows. Defaults to "default". |
textweb_scrollScroll the page up or down. Returns the updated text grid showing the new viewport position.| Parameter | Type | Description |
|---|---|---|
| amount | number | Number of pages to scroll (default: 1) |
| direction * | string | Scroll direction |
| session_id | string | Optional session_id to isolate state across flows. Defaults to "default". |
textweb_selectSelect an option from a dropdown/select element by its reference number.| Parameter | Type | Description |
|---|---|---|
| ref * | number | Element reference number of the select/dropdown |
| retries | number | Retry attempts for flaky transitions |
| retry_delay_ms | number | Delay between retries in ms |
| session_id | string | Optional session_id to isolate state across flows. Defaults to "default". |
| value * | string | Value or visible text of the option to select |
textweb_session_closeClose one session by session_id, or all sessions when all=true.| Parameter | Type | Description |
|---|---|---|
| all | boolean | Close all active sessions |
| session_id | string | Session id to close (default: default) |
textweb_session_listList active textweb sessions and basic metadata (url, age).textweb_snapshotRe-render the current page as text. Use after waiting for dynamic content to load.textweb_storage_loadLoad storage state from disk into a fresh browser context.| Parameter | Type | Description |
|---|---|---|
| cols | number | Grid width in characters (default: 120) |
| path * | string | Absolute path of previously saved storage state JSON |
| session_id | string | Optional session_id to isolate state across flows. Defaults to "default". |
textweb_storage_saveSave current browser storage state (cookies/localStorage/sessionStorage) to disk for later restore.| Parameter | Type | Description |
|---|---|---|
| path * | string | Absolute path to write storage state JSON |
| session_id | string | Optional session_id to isolate state across flows. Defaults to "default". |
textweb_typeType text into an input field by its reference number. Clears existing content and types the new text. Returns the updated text grid.| Parameter | Type | Description |
|---|---|---|
| ref * | number | Element reference number of the input field |
| retries | number | Retry attempts for flaky transitions |
| retry_delay_ms | number | Delay between retries in ms |
| session_id | string | Optional session_id to isolate state across flows. Defaults to "default". |
| text * | string | Text to type into the field |
textweb_uploadUpload a file to a file input element by its reference number.| Parameter | Type | Description |
|---|---|---|
| path * | string | Absolute path to the file to upload |
| ref * | number | Element reference number of the file input |
| retries | number | Retry attempts for flaky transitions |
| retry_delay_ms | number | Delay between retries in ms |
| session_id | string | Optional session_id to isolate state across flows. Defaults to "default". |
textweb_wait_forWait for UI state in multi-step flows. Supports selector, text, and url_includes checks.| Parameter | Type | Description |
|---|---|---|
| poll_ms | number | Polling interval for text/url waits (default: 100) |
| retries | number | Retry attempts for flaky transitions |
| retry_delay_ms | number | Delay between retries in ms |
| selector | string | CSS selector that must appear (or match state) |
| session_id | string | Optional session_id to isolate state across flows. Defaults to "default". |
| state | string | Selector wait state (default: visible) |
| text | string | Text that must appear in page body |
| timeout_ms | number | Timeout in milliseconds (default: 30000) |
| url_includes | string | Substring that must appear in current URL |
Security checks
Static checks derived from the repository 11 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 1.4K words.
- ✓License declaredThe repository declares the MIT license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedDependency versions are pinned by package-lock.json.
- !No dynamic code executionScanned 16 source files and found 1 call to eval or shell execution, in src/ensure-browser.js:50. Review how tool inputs reach them before granting credentials.
- !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.
What the source scan found
- Transport
- None found in the source
- Starts other programs
- 2 callssrc/ensure-browser.js:49, src/ensure-browser.js:50
- Outbound network calls
- 4 callspackages/app-runtime-prototype/shell/app-shell.js:103, packages/app-runtime-prototype/shell/app-shell.js:702, tools/crewai.py:33
- Writes or deletes files
- 2 callspackages/app-runtime-prototype/src/integrations-server.js:162, packages/app-runtime-prototype/src/integrations-server.js:163
- Lockfile
- package-lock.json
Pattern matches on the source text of 16 files: places to read, not proof of what the code does at run time.
Releases
README
The repository's README runs to about 1.4K words, fetched a month ago. The original in the repository is authoritative.
Read full README