Skip to content

Added stagehand_get_html tool to Stagehand MCP Server #81

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

travisrussi
Copy link

Added ability to get the HTML of the current page with a stagehand_get_html MCP tool.

Since the HTML is usually too big to send via the messaging protocol, the HTML file is saved locally to a tmp folder and a simple HTTP Server is spun up to serve the file (usually via CURL from the client). The port defaults to 8080, but can be configured via the STAGEHAND_HTTP_PORT environment variable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant