A StagehandTool integra o framework Stagehand com o CrewAI, permitindo que agentes interajam com sites e automatizem tarefas no navegador utilizando instruções em linguagem natural.
O Stagehand é um poderoso framework de automação de navegador criado pela Browserbase que permite aos agentes de IA:
Navegar por sites
Clicar em botões, links e outros elementos
Preencher formulários
Extrair dados de páginas web
Observar e identificar elementos
Realizar fluxos de trabalho complexos
A StagehandTool encapsula o SDK Python do Stagehand para fornecer aos agentes do CrewAI capacidades de controle do navegador através de três primitivas principais:
Act: Executar ações como clicar, digitar ou navegar
Extract: Extrair dados estruturados de páginas web
Observe: Identificar e analisar elementos na página
A abordagem de context manager é recomendada, pois garante o encerramento adequado dos recursos mesmo em caso de exceções.
from crewai import Agent, Task, Crewfrom crewai_tools import StagehandToolfrom stagehand.schemas import AvailableModel# Initialize the tool with your API keys using a context managerwith StagehandTool( api_key="your-browserbase-api-key", project_id="your-browserbase-project-id", model_api_key="your-llm-api-key", # OpenAI or Anthropic API key model_name=AvailableModel.CLAUDE_3_7_SONNET_LATEST, # Optional: specify which model to use) as stagehand_tool: # Create an agent with the tool researcher = Agent( role="Web Researcher", goal="Find and summarize information from websites", backstory="I'm an expert at finding information online.", verbose=True, tools=[stagehand_tool], ) # Create a task that uses the tool research_task = Task( description="Go to https://www.example.com and tell me what you see on the homepage.", agent=researcher, ) # Run the crew crew = Crew( agents=[researcher], tasks=[research_task], verbose=True, ) result = crew.kickoff() print(result)
from crewai import Agent, Task, Crewfrom crewai_tools import StagehandToolfrom stagehand.schemas import AvailableModel# Initialize the tool with your API keysstagehand_tool = StagehandTool( api_key="your-browserbase-api-key", project_id="your-browserbase-project-id", model_api_key="your-llm-api-key", model_name=AvailableModel.CLAUDE_3_7_SONNET_LATEST,)try: # Create an agent with the tool researcher = Agent( role="Web Researcher", goal="Find and summarize information from websites", backstory="I'm an expert at finding information online.", verbose=True, tools=[stagehand_tool], ) # Create a task that uses the tool research_task = Task( description="Go to https://www.example.com and tell me what you see on the homepage.", agent=researcher, ) # Run the crew crew = Crew( agents=[researcher], tasks=[research_task], verbose=True, ) result = crew.kickoff() print(result)finally: # Explicitly clean up resources stagehand_tool.close()
O tipo de comando act (padrão) permite interações em páginas web como clicar em botões, preencher formulários e navegar.
# Perform an action (default behavior)result = stagehand_tool.run( instruction="Click the login button", url="https://example.com", command_type="act" # Default, so can be omitted)# Fill out a formresult = stagehand_tool.run( instruction="Fill the contact form with name 'John Doe', email 'john@example.com', and message 'Hello world'", url="https://example.com/contact")
O tipo de comando extract recupera dados estruturados de páginas web.
# Extract all product informationresult = stagehand_tool.run( instruction="Extract all product names, prices, and descriptions", url="https://example.com/products", command_type="extract")# Extract specific information with a selectorresult = stagehand_tool.run( instruction="Extract the main article title and content", url="https://example.com/blog/article", command_type="extract", selector=".article-container" # Optional CSS selector)
O tipo de comando observe identifica e analisa elementos da página web.
# Find interactive elementsresult = stagehand_tool.run( instruction="Find all interactive elements in the navigation menu", url="https://example.com", command_type="observe")# Identify form fieldsresult = stagehand_tool.run( instruction="Identify all the input fields in the registration form", url="https://example.com/register", command_type="observe", selector="#registration-form")
Personalize o comportamento da StagehandTool com estes parâmetros:
stagehand_tool = StagehandTool( api_key="your-browserbase-api-key", project_id="your-browserbase-project-id", model_api_key="your-llm-api-key", model_name=AvailableModel.CLAUDE_3_7_SONNET_LATEST, dom_settle_timeout_ms=5000, # Wait longer for DOM to settle headless=True, # Run browser in headless mode self_heal=True, # Attempt to recover from errors wait_for_captcha_solves=True, # Wait for CAPTCHA solving verbose=1, # Control logging verbosity (0-3))
{"docsConfig":{"theme":"aspen","$schema":"https://mintlify.com/docs.json","name":"CrewAI","colors":{"primary":"#EB6658","light":"#F3A78B","dark":"#C94C3C"},"logo":{"light":"https://mintcdn.com/crewai/5SZbe87tsCWZY09V/images/crew_only_logo.png?fit=max\u0026auto=format\u0026n=5SZbe87tsCWZY09V\u0026q=85\u0026s=439ca5dc63a1768cad7196005ff5636f","dark":"https://mintcdn.com/crewai/5SZbe87tsCWZY09V/images/crew_only_logo.png?fit=max\u0026auto=format\u0026n=5SZbe87tsCWZY09V\u0026q=85\u0026s=439ca5dc63a1768cad7196005ff5636f"},"favicon":"https://mintcdn.com/crewai/sz5CkjPWxVjBAZE7/images/favicon.svg?fit=max\u0026auto=format\u0026n=sz5CkjPWxVjBAZE7\u0026q=85\u0026s=16c03dad58d05417a2e442ff942d2ce7","api":{"playground":{}},"appearance":{"default":"system","strict":false},"background":{"decoration":"grid"},"navbar":{"links":[{"icon":"arrow-up-right-from-square","href":"https://app.crewai.com","label":"Start Cloud Trial"}],"primary":{"type":"github","href":"https://github.com/crewAIInc/crewAI"}},"footer":{"socials":{"website":"https://crewai.com","x":"https://x.com/crewAIInc","github":"https://github.com/crewAIInc/crewAI","linkedin":"https://www.linkedin.com/company/crewai-inc","youtube":"https://youtube.com/@crewAIInc","reddit":"https://www.reddit.com/r/crewAIInc"}},"seo":{"metatags":{"og:type":"website","og:site_name":"CrewAI Documentation","og:image":"https://docs.crewai.com/images/crew_only_logo.png","twitter:card":"summary_large_image","twitter:site":"@crewAIInc","keywords":"AI agents, multi-agent systems, CrewAI, artificial intelligence, automation, Python framework, agent collaboration, AI workflows"}},"fonts":{"family":"Inter"},"errors":{"404":{"redirect":true}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode",{"title":"Request a feature","description":"Join the discussion on GitHub to request a new feature","icon":"plus","href":"https://github.com/crewAIInc/crewAI/issues/new/choose"}],"display":"header"},"styling":{"latex":false},"navigation":{"languages":[{"language":"en","href":""},{"language":"pt-BR","href":"edge/pt-BR"},{"language":"ko","href":"edge/ko"},{"language":"ar","href":"edge/ar"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"crewai","hasAudioNarration":false,"actualSubdomain":"crewai","customDomains":["docs.crewai.com"],"gitSource":{"type":"github","owner":"crewaiinc","repo":"crewai","deployBranch":"main","contentDirectory":"docs","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6ae109ca5ecac0fee57e8e08","collectionId":"77f99dff-8c93-4576-a183-fbdacc92ce2c","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6ae109ca5ecac0fee57e8e08"},"feedback":{"thumbs":true,"edits":true,"issues":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6ae109ca5ecac0fee57e8e08","clientVersion":"0.0.3990","searchFilterCounts":[{"language":"en","tag":"Documentation","count":8428},{"language":"ko","tag":"기술 문서","count":7754},{"language":"pt-BR","tag":"Documentação","count":7187},{"language":"ar","tag":"التقنية التوثيق","count":7154},{"language":"en","tag":"Tools","count":3870},{"language":"ko","tag":"도구 (Tools)","count":3579},{"language":"ar","tag":"الأدوات","count":3336},{"language":"pt-BR","tag":"Ferramentas","count":3057},{"language":"en","tag":"Learn","count":1345},{"language":"ko","tag":"학습","count":1199},{"language":"pt-BR","tag":"Aprenda","count":1199},{"language":"ar","tag":"التعلّم","count":1103},{"language":"en","tag":"Core Concepts","count":1019},{"language":"ko","tag":"핵심 개념","count":989},{"language":"pt-BR","tag":"Conceitos-Chave","count":989},{"language":"ar","tag":"المفاهيم الأساسية","count":917},{"language":"en","tag":"Observability","count":864},{"language":"en","tag":"Search \u0026 Research","count":840},{"language":"ko","tag":"Observability","count":816},{"language":"pt-BR","tag":"Observabilidade","count":816},{"language":"en","tag":"Guides","count":808},{"language":"ko","tag":"검색 및 연구","count":804},{"language":"ar","tag":"Observability","count":748},{"language":"ar","tag":"البحث والاستكشاف","count":740},{"language":"en","tag":"Web Scraping \u0026 Browsing","count":708},{"language":"en","tag":"File \u0026 Document","count":672},{"language":"ko","tag":"파일 \u0026 문서","count":672},{"language":"ko","tag":"웹 스크래핑 \u0026 브라우징","count":672},{"language":"pt-BR","tag":"Web Scraping \u0026 Navegação","count":624},{"language":"ar","tag":"الملفات والمستندات","count":616},{"language":"ar","tag":"استخراج بيانات الويب","count":616},{"language":"pt-BR","tag":"Arquivo \u0026 Documento","count":576},{"language":"ko","tag":"가이드","count":567},{"language":"pt-BR","tag":"Guias","count":567},{"language":"ar","tag":"الأدلّة","count":534},{"language":"pt-BR","tag":"Pesquisa","count":480},{"language":"ko","tag":"시작 안내","count":460},{"language":"pt-BR","tag":"Começando","count":460},{"language":"en","tag":"AI \u0026 Machine Learning","count":456},{"language":"ar","tag":"البدء","count":428}]},"assistantConfig":{},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-v7-file-tree","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"pause-universal-search-reconcile","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"per-site-search-delta","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-private-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-nav-generations","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-agent-model-picker","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"isAtlas":false,"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"v1.15.22/pt-BR/tools/web-scraping/stagehandtool","slug":"/v1.15.22/pt-BR/tools/web-scraping/stagehandtool","pageMetadata":{"title":"Ferramenta Stagehand","description":"Ferramenta de automação web que integra o Stagehand ao CrewAI para interação e automação em navegadores","icon":"hand","mode":"wide","href":"/v1.15.22/pt-BR/tools/web-scraping/stagehandtool"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Ferramenta de automação web que integra o Stagehand ao CrewAI para interação e automação em navegadores\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Tip}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Tip)_missingMdxReference(`Tip`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`1`,id:`visão-geral`,children:`Visão Geral`}),`\n`,_jsxs(_components.p,{children:[`A `,_jsx(_components.code,{children:`StagehandTool`}),` integra o framework `,_jsx(_components.a,{href:`https://docs.stagehand.dev/get_started/introduction`,children:`Stagehand`}),` com o CrewAI, permitindo que agentes interajam com sites e automatizem tarefas no navegador utilizando instruções em linguagem natural.`]}),`\n`,_jsx(Heading,{level:`2`,id:`visão-geral-2`,children:`Visão Geral`}),`\n`,_jsx(_components.p,{children:`O Stagehand é um poderoso framework de automação de navegador criado pela Browserbase que permite aos agentes de IA:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Navegar por sites`}),`\n`,_jsx(_components.li,{children:`Clicar em botões, links e outros elementos`}),`\n`,_jsx(_components.li,{children:`Preencher formulários`}),`\n`,_jsx(_components.li,{children:`Extrair dados de páginas web`}),`\n`,_jsx(_components.li,{children:`Observar e identificar elementos`}),`\n`,_jsx(_components.li,{children:`Realizar fluxos de trabalho complexos`}),`\n`]}),`\n`,_jsx(_components.p,{children:`A StagehandTool encapsula o SDK Python do Stagehand para fornecer aos agentes do CrewAI capacidades de controle do navegador através de três primitivas principais:`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Act`}),`: Executar ações como clicar, digitar ou navegar`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Extract`}),`: Extrair dados estruturados de páginas web`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Observe`}),`: Identificar e analisar elementos na página`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`pré-requisitos`,children:`Pré-requisitos`}),`\n`,_jsx(_components.p,{children:`Antes de utilizar esta ferramenta, certifique-se de que você possui:`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`Uma conta `,_jsx(_components.a,{href:`https://www.browserbase.com/`,children:`Browserbase`}),` com chave API e ID de projeto`]}),`\n`,_jsx(_components.li,{children:`Uma chave API para um LLM (OpenAI ou Anthropic Claude)`}),`\n`,_jsx(_components.li,{children:`O SDK Python do Stagehand instalado`}),`\n`]}),`\n`,_jsx(_components.p,{children:`Instale a dependência necessária:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`pip`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` install`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` stagehand-py`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`uso`,children:`Uso`}),`\n`,_jsx(Heading,{level:`3`,id:`implementação-básica`,children:`Implementação Básica`}),`\n`,_jsx(_components.p,{children:`A StagehandTool pode ser implementada de duas maneiras:`}),`\n`,_jsx(Heading,{level:`4`,id:`1-usando-context-manager-recomendado`,children:`1. Usando Context Manager (Recomendado)`}),`\n`,_jsx(Tip,{children:_jsx(_components.p,{children:`A abordagem de context manager é recomendada, pois garante o encerramento adequado dos recursos mesmo em caso de exceções.`})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`35`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`35`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` crewai `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` Agent, Task, Crew`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` crewai_tools `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` StagehandTool`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` stagehand.schemas `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` AvailableModel`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Initialize the tool with your API keys using a context manager`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`with`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` StagehandTool(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` api_key`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"your-browserbase-api-key\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` project_id`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"your-browserbase-project-id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` model_api_key`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"your-llm-api-key\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# OpenAI or Anthropic API key`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` model_name`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`AvailableModel.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`CLAUDE_3_7_SONNET_LATEST`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Optional: specify which model to use`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`as`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` stagehand_tool:`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # Create an agent with the tool`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` researcher `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` Agent(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` role`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Web Researcher\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` goal`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Find and summarize information from websites\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` backstory`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"I'm an expert at finding information online.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` verbose`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`True`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` tools`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[stagehand_tool],`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` )`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # Create a task that uses the tool`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` research_task `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` Task(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` description`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Go to https://www.example.com and tell me what you see on the homepage.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` agent`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`researcher,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` )`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # Run the crew`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` crew `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` Crew(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` agents`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[researcher],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` tasks`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[research_task],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` verbose`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`True`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` )`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` result `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` crew.kickoff()`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` print`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(result)`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`4`,id:`2-gerenciamento-manual-de-recursos`,children:`2. Gerenciamento Manual de Recursos`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`40`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`40`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` crewai `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` Agent, Task, Crew`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` crewai_tools `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` StagehandTool`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` stagehand.schemas `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` AvailableModel`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Initialize the tool with your API keys`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`stagehand_tool `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` StagehandTool(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` api_key`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"your-browserbase-api-key\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` project_id`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"your-browserbase-project-id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` model_api_key`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"your-llm-api-key\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` model_name`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`AvailableModel.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`CLAUDE_3_7_SONNET_LATEST`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`try`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # Create an agent with the tool`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` researcher `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` Agent(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` role`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Web Researcher\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` goal`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Find and summarize information from websites\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` backstory`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"I'm an expert at finding information online.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` verbose`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`True`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` tools`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[stagehand_tool],`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` )`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # Create a task that uses the tool`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` research_task `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` Task(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` description`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Go to https://www.example.com and tell me what you see on the homepage.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` agent`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`researcher,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` )`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # Run the crew`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` crew `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` Crew(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` agents`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[researcher],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` tasks`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[research_task],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` verbose`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`True`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` )`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` result `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` crew.kickoff()`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` print`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(result)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`finally`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # Explicitly clean up resources`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` stagehand_tool.close()`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`tipos-de-comando`,children:`Tipos de Comando`}),`\n`,_jsx(_components.p,{children:`A StagehandTool suporta três tipos diferentes de comando para tarefas específicas de automação web:`}),`\n`,_jsx(Heading,{level:`3`,id:`1-comando-act`,children:`1. Comando Act`}),`\n`,_jsxs(_components.p,{children:[`O tipo de comando `,_jsx(_components.code,{children:`act`}),` (padrão) permite interações em páginas web como clicar em botões, preencher formulários e navegar.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`12`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`12`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Perform an action (default behavior)`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`result `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` stagehand_tool.run(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` instruction`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Click the login button\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` url`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://example.com\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` command_type`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"act\"`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # Default, so can be omitted`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Fill out a form`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`result `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` stagehand_tool.run(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` instruction`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Fill the contact form with name 'John Doe', email 'john@example.com', and message 'Hello world'\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` url`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://example.com/contact\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`2-comando-extract`,children:`2. Comando Extract`}),`\n`,_jsxs(_components.p,{children:[`O tipo de comando `,_jsx(_components.code,{children:`extract`}),` recupera dados estruturados de páginas web.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`14`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`14`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Extract all product information`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`result `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` stagehand_tool.run(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` instruction`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Extract all product names, prices, and descriptions\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` url`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://example.com/products\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` command_type`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"extract\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Extract specific information with a selector`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`result `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` stagehand_tool.run(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` instruction`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Extract the main article title and content\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` url`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://example.com/blog/article\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` command_type`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"extract\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` selector`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\".article-container\"`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # Optional CSS selector`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`3-comando-observe`,children:`3. Comando Observe`}),`\n`,_jsxs(_components.p,{children:[`O tipo de comando `,_jsx(_components.code,{children:`observe`}),` identifica e analisa elementos da página web.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`14`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`14`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Find interactive elements`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`result `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` stagehand_tool.run(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` instruction`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Find all interactive elements in the navigation menu\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` url`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://example.com\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` command_type`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"observe\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Identify form fields`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`result `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` stagehand_tool.run(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` instruction`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Identify all the input fields in the registration form\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` url`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://example.com/register\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` command_type`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"observe\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` selector`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"#registration-form\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`opções-de-configuração`,children:`Opções de Configuração`}),`\n`,_jsx(_components.p,{children:`Personalize o comportamento da StagehandTool com estes parâmetros:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`11`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`11`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`stagehand_tool `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` StagehandTool(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` api_key`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"your-browserbase-api-key\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` project_id`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"your-browserbase-project-id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` model_api_key`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"your-llm-api-key\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` model_name`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`AvailableModel.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`CLAUDE_3_7_SONNET_LATEST`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` dom_settle_timeout_ms`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`5000`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Wait longer for DOM to settle`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` headless`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`True`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Run browser in headless mode`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` self_heal`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`True`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Attempt to recover from errors`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` wait_for_captcha_solves`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`True`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Wait for CAPTCHA solving`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` verbose`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Control logging verbosity (0-3)`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`boas-práticas`,children:`Boas Práticas`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Seja Específico`}),`: Forneça instruções detalhadas para melhores resultados`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Escolha o Tipo de Comando Apropriado`}),`: Selecione o comando correto para sua tarefa`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Use Selectors`}),`: Utilize seletores CSS para aumentar a precisão`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Divida Tarefas Complexas`}),`: Separe fluxos de trabalho complexos em múltiplas chamadas da ferramenta`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Implemente Tratamento de Erros`}),`: Adicione tratamento de erros para possíveis problemas`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`solução-de-problemas`,children:`Solução de Problemas`}),`\n`,_jsx(_components.p,{children:`Problemas comuns e soluções:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Problemas de Sessão`}),`: Verifique as chaves de API tanto da Browserbase quanto do provedor de LLM`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Elemento Não Encontrado`}),`: Aumente o `,_jsx(_components.code,{children:`dom_settle_timeout_ms`}),` para páginas mais lentas`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Falhas em Ações`}),`: Use o `,_jsx(_components.code,{children:`observe`}),` para identificar corretamente os elementos antes`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Dados Incompletos`}),`: Refine as instruções ou forneça seletores específicos`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`recursos-adicionais`,children:`Recursos Adicionais`}),`\n`,_jsx(_components.p,{children:`Para dúvidas sobre a integração com o CrewAI:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Participe da comunidade `,_jsx(_components.a,{href:`https://stagehand.dev/slack`,children:`Slack do Stagehand`})]}),`\n`,_jsxs(_components.li,{children:[`Abra uma issue no `,_jsx(_components.a,{href:`https://github.com/browserbase/stagehand`,children:`repositório Stagehand`})]}),`\n`,_jsxs(_components.li,{children:[`Visite a `,_jsx(_components.a,{href:`https://docs.stagehand.dev/`,children:`documentação do Stagehand`})]}),`\n`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Ferramenta Stagehand","description":"Ferramenta de automação web que integra o Stagehand ao CrewAI para interação e automação em navegadores","icon":"hand","mode":"wide","href":"/v1.15.22/pt-BR/tools/web-scraping/stagehandtool"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Visão Geral","slug":"visão-geral","depth":1,"children":[]},{"title":"Visão Geral","slug":"visão-geral-2","depth":2,"children":[]},{"title":"Pré-requisitos","slug":"pré-requisitos","depth":2,"children":[]},{"title":"Uso","slug":"uso","depth":2,"children":[{"title":"Implementação Básica","slug":"implementação-básica","depth":3,"children":[]},{"title":"1. Usando Context Manager (Recomendado)","slug":"1-usando-context-manager-recomendado","depth":4,"children":[]},{"title":"2. Gerenciamento Manual de Recursos","slug":"2-gerenciamento-manual-de-recursos","depth":4,"children":[]}]},{"title":"Tipos de Comando","slug":"tipos-de-comando","depth":2,"children":[{"title":"1. Comando Act","slug":"1-comando-act","depth":3,"children":[]},{"title":"2. Comando Extract","slug":"2-comando-extract","depth":3,"children":[]},{"title":"3. Comando Observe","slug":"3-comando-observe","depth":3,"children":[]}]},{"title":"Opções de Configuração","slug":"opções-de-configuração","depth":2,"children":[]},{"title":"Boas Práticas","slug":"boas-práticas","depth":2,"children":[]},{"title":"Solução de Problemas","slug":"solução-de-problemas","depth":2,"children":[]},{"title":"Recursos Adicionais","slug":"recursos-adicionais","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/crewai/cc0a0a5c2c93f4d8/common-room-tracking.js","/_mintlify/custom/crewai/36c44d75a9111b06/reo-tracking.js"],"subdomain":"crewai","siteName":"CrewAI","title":"Ferramenta Stagehand - CrewAI","navMaps":{"firstHrefInVersion":{"Edge":{"href":"/edge/pt-BR/tools/web-scraping/stagehandtool","matchLevel":1},"v1.15.30":{"href":"/v1.15.30/pt-BR/tools/web-scraping/stagehandtool","matchLevel":1},"v1.15.29":{"href":"/v1.15.29/pt-BR/tools/web-scraping/stagehandtool","matchLevel":1},"v1.15.28":{"href":"/v1.15.28/pt-BR/tools/web-scraping/stagehandtool","matchLevel":1},"v1.15.27":{"href":"/v1.15.27/pt-BR/tools/web-scraping/stagehandtool","matchLevel":1},"v1.15.26":{"href":"/v1.15.26/pt-BR/tools/web-scraping/stagehandtool","matchLevel":1},"v1.15.25":{"href":"/v1.15.25/pt-BR/tools/web-scraping/stagehandtool","matchLevel":1},"v1.15.24":{"href":"/v1.15.24/pt-BR/tools/web-scraping/stagehandtool","matchLevel":1},"v1.15.23":{"href":"/v1.15.23/pt-BR/tools/web-scraping/stagehandtool","matchLevel":1},"v1.15.22":{"href":"/v1.15.22/pt-BR/tools/web-scraping/stagehandtool","matchLevel":0},"v1.15.21":{"href":"/v1.15.21/pt-BR/tools/web-scraping/stagehandtool","matchLevel":1},"v1.15.20":{"href":"/v1.15.20/pt-BR/tools/web-scraping/stagehandtool","matchLevel":1},"v1.15.19":{"href":"/v1.15.19/pt-BR/tools/web-scraping/stagehandtool","matchLevel":1},"v1.15.18":{"href":"/v1.15.18/pt-BR/tools/web-scraping/stagehandtool","matchLevel":1},"v1.15.17":{"href":"/v1.15.17/pt-BR/tools/web-scraping/stagehandtool","matchLevel":1},"v1.15.16":{"href":"/v1.15.16/pt-BR/tools/web-scraping/stagehandtool","matchLevel":1},"v1.15.15":{"href":"/v1.15.15/pt-BR/tools/web-scraping/stagehandtool","matchLevel":1},"v1.15.14":{"href":"/v1.15.14/pt-BR/tools/web-scraping/stagehandtool","matchLevel":1},"v1.15.13":{"href":"/v1.15.13/pt-BR/tools/web-scraping/stagehandtool","matchLevel":1},"v1.15.12":{"href":"/v1.15.12/pt-BR/tools/web-scraping/stagehandtool","matchLevel":1},"v1.15.11":{"href":"/v1.15.11/pt-BR/tools/web-scraping/stagehandtool","matchLevel":1},"v1.15.10":{"href":"/v1.15.10/pt-BR/tools/web-scraping/stagehandtool","matchLevel":1},"v1.15.9":{"href":"/v1.15.9/pt-BR/tools/web-scraping/stagehandtool","matchLevel":1},"v1.15.8":{"href":"/v1.15.8/pt-BR/tools/web-scraping/stagehandtool","matchLevel":1},"v1.15.7":{"href":"/v1.15.7/pt-BR/tools/web-scraping/stagehandtool","matchLevel":1},"v1.15.6":{"href":"/v1.15.6/pt-BR/tools/web-scraping/stagehandtool","matchLevel":1},"v1.15.5":{"href":"/v1.15.5/pt-BR/tools/web-scraping/stagehandtool","matchLevel":1},"v1.15.4":{"href":"/v1.15.4/pt-BR/tools/web-scraping/stagehandtool","matchLevel":1},"v1.15.3":{"href":"/v1.15.3/pt-BR/tools/web-scraping/stagehandtool","matchLevel":1},"v1.15.2":{"href":"/v1.15.2/pt-BR/tools/web-scraping/stagehandtool","matchLevel":1},"v1.15.1":{"href":"/v1.15.1/pt-BR/tools/web-scraping/stagehandtool","matchLevel":1},"v1.15.0":{"href":"/v1.15.0/pt-BR/tools/web-scraping/stagehandtool","matchLevel":1},"v1.14.7":{"href":"/v1.14.7/pt-BR/tools/web-scraping/stagehandtool","matchLevel":1},"v1.14.6":{"href":"/v1.14.6/pt-BR/tools/web-scraping/stagehandtool","matchLevel":1},"v1.14.5":{"href":"/v1.14.5/pt-BR/tools/web-scraping/stagehandtool","matchLevel":1},"v1.14.4":{"href":"/v1.14.4/pt-BR/tools/web-scraping/stagehandtool","matchLevel":1},"v1.14.3":{"href":"/v1.14.3/pt-BR/tools/web-scraping/stagehandtool","matchLevel":1},"v1.14.2":{"href":"/v1.14.2/pt-BR/tools/web-scraping/stagehandtool","matchLevel":1},"v1.14.1":{"href":"/v1.14.1/pt-BR/tools/web-scraping/stagehandtool","matchLevel":1},"v1.14.0":{"href":"/v1.14.0/pt-BR/tools/web-scraping/stagehandtool","matchLevel":1},"v1.13.0":{"href":"/v1.13.0/pt-BR/tools/web-scraping/stagehandtool","matchLevel":1},"v1.12.2":{"href":"/v1.12.2/pt-BR/tools/web-scraping/stagehandtool","matchLevel":1},"v1.12.1":{"href":"/v1.12.1/pt-BR/tools/web-scraping/stagehandtool","matchLevel":1},"v1.12.0":{"href":"/v1.12.0/pt-BR/tools/web-scraping/stagehandtool","matchLevel":1},"v1.11.1":{"href":"/v1.11.1/pt-BR/tools/web-scraping/stagehandtool","matchLevel":1},"v1.11.0":{"href":"/v1.11.0/pt-BR/tools/web-scraping/stagehandtool","matchLevel":1},"v1.10.1":{"href":"/v1.10.1/pt-BR/tools/web-scraping/stagehandtool","matchLevel":1},"v1.10.0":{"href":"/v1.10.0/pt-BR/tools/web-scraping/stagehandtool","matchLevel":1}},"firstHrefInLanguage":{"en":{"href":"/v1.15.22/en/tools/web-scraping/stagehandtool","matchLevel":1},"pt-BR":{"href":"/v1.15.22/pt-BR/tools/web-scraping/stagehandtool","matchLevel":0},"ko":{"href":"/v1.15.22/ko/tools/web-scraping/stagehandtool","matchLevel":1},"ar":{"href":"/v1.15.22/ar/tools/web-scraping/stagehandtool","matchLevel":1}}},"lastModified":"2026-09-16T22:28:05.602Z","originalFileLocation":"v1.15.22/pt-BR/tools/web-scraping/stagehandtool.mdx","locale":"pt-BR"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Ferramenta de automação web que integra o Stagehand ao CrewAI para interação e automação em navegadores\">\u003cmeta data-mint-head name=\"keywords\" content=\"AI agents, multi-agent systems, CrewAI, artificial intelligence, automation, Python framework, agent collaboration, AI workflows\">\u003cmeta data-mint-head name=\"application-name\" content=\"CrewAI\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/crewai/4u_yrBmnBvL-de5g/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/crewai/4u_yrBmnBvL-de5g/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/crewai/4u_yrBmnBvL-de5g/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/crewai/4u_yrBmnBvL-de5g/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/crewai/4u_yrBmnBvL-de5g/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/crewai/4u_yrBmnBvL-de5g/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/crewai/4u_yrBmnBvL-de5g/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/crewai/4u_yrBmnBvL-de5g/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/crewai/4u_yrBmnBvL-de5g/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Ferramenta Stagehand - CrewAI\">\u003cmeta data-mint-head property=\"og:description\" content=\"Ferramenta de automação web que integra o Stagehand ao CrewAI para interação e automação em navegadores\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"CrewAI Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.crewai.com/v1.15.22/pt-BR/tools/web-scraping/stagehandtool\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://docs.crewai.com/images/crew_only_logo.png\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Ferramenta Stagehand - CrewAI\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Ferramenta de automação web que integra o Stagehand ao CrewAI para interação e automação em navegadores\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://docs.crewai.com/images/crew_only_logo.png\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/crewai/4u_yrBmnBvL-de5g/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"CrewAI\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#EB6658\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.crewai.com/v1.15.22/pt-BR/tools/web-scraping/stagehandtool\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/v1.15.22/pt-BR/tools/web-scraping/stagehandtool.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"pt-BR\" href=\"https://docs.crewai.com/v1.15.22/pt-BR/tools/web-scraping/stagehandtool\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://docs.crewai.com/v1.15.22/en/tools/web-scraping/stagehandtool\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ko\" href=\"https://docs.crewai.com/v1.15.22/ko/tools/web-scraping/stagehandtool\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ar\" href=\"https://docs.crewai.com/v1.15.22/ar/tools/web-scraping/stagehandtool\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://docs.crewai.com/v1.15.22/en/tools/web-scraping/stagehandtool\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.crewai.com/#organization\",\"name\":\"CrewAI\",\"url\":\"https://docs.crewai.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/crewai/5SZbe87tsCWZY09V/images/crew_only_logo.png?fit=max\u0026auto=format\u0026n=5SZbe87tsCWZY09V\u0026q=85\u0026s=439ca5dc63a1768cad7196005ff5636f\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.crewai.com#website\",\"name\":\"CrewAI\",\"url\":\"https://docs.crewai.com\",\"publisher\":{\"@id\":\"https://docs.crewai.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.crewai.com/v1.15.22/pt-BR/tools/web-scraping/stagehandtool#webpage\",\"url\":\"https://docs.crewai.com/v1.15.22/pt-BR/tools/web-scraping/stagehandtool\",\"name\":\"Ferramenta Stagehand\",\"description\":\"Ferramenta de automação web que integra o Stagehand ao CrewAI para interação e automação em navegadores\",\"dateModified\":\"2026-09-16T22:28:05.602Z\",\"isPartOf\":{\"@id\":\"https://docs.crewai.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.crewai.com/v1.15.22/pt-BR/tools/web-scraping/stagehandtool#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.crewai.com/v1.15.22/pt-BR/tools/web-scraping/stagehandtool#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Ferramentas\",\"item\":\"https://docs.crewai.com/v1.15.22/pt-BR/tools/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Web Scraping \u0026 Navegação\",\"item\":\"https://docs.crewai.com/v1.15.22/pt-BR/tools/web-scraping/overview\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Ferramenta Stagehand\",\"item\":\"https://docs.crewai.com/v1.15.22/pt-BR/tools/web-scraping/stagehandtool\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.crewai.com/v1.15.22/pt-BR/tools/web-scraping/stagehandtool#article\",\"headline\":\"Ferramenta Stagehand\",\"name\":\"Ferramenta Stagehand\",\"description\":\"Ferramenta de automação web que integra o Stagehand ao CrewAI para interação e automação em navegadores\",\"url\":\"https://docs.crewai.com/v1.15.22/pt-BR/tools/web-scraping/stagehandtool\",\"mainEntityOfPage\":{\"@id\":\"https://docs.crewai.com/v1.15.22/pt-BR/tools/web-scraping/stagehandtool#webpage\"},\"image\":\"https://docs.crewai.com/images/crew_only_logo.png\",\"dateModified\":\"2026-09-16T22:28:05.602Z\",\"publisher\":{\"@id\":\"https://docs.crewai.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.crewai.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"CrewAI\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"CrewAI","nav":{"global":null,"languages":[{"language":"en","pages":[{"title":"en","href":"/v1.15.22/en/tools/web-scraping/stagehandtool"}]},{"language":"pt-BR","versions":[{"version":"Edge","tag":"Edge","pages":[{"title":"Edge","href":"/edge/pt-BR/tools/web-scraping/stagehandtool"}]},{"version":"v1.15.30","default":true,"tag":"Latest","pages":[{"title":"v1.15.30","href":"/v1.15.30/pt-BR/tools/web-scraping/stagehandtool"}]},{"version":"v1.15.29","pages":[{"title":"v1.15.29","href":"/v1.15.29/pt-BR/tools/web-scraping/stagehandtool"}]},{"version":"v1.15.28","pages":[{"title":"v1.15.28","href":"/v1.15.28/pt-BR/tools/web-scraping/stagehandtool"}]},{"version":"v1.15.27","pages":[{"title":"v1.15.27","href":"/v1.15.27/pt-BR/tools/web-scraping/stagehandtool"}]},{"version":"v1.15.26","pages":[{"title":"v1.15.26","href":"/v1.15.26/pt-BR/tools/web-scraping/stagehandtool"}]},{"version":"v1.15.25","pages":[{"title":"v1.15.25","href":"/v1.15.25/pt-BR/tools/web-scraping/stagehandtool"}]},{"version":"v1.15.24","pages":[{"title":"v1.15.24","href":"/v1.15.24/pt-BR/tools/web-scraping/stagehandtool"}]},{"version":"v1.15.23","pages":[{"title":"v1.15.23","href":"/v1.15.23/pt-BR/tools/web-scraping/stagehandtool"}]},{"version":"v1.15.22","tabs":[{"tab":"Início","icon":"house","pages":[{"title":"Início","href":"/v1.15.22/pt-BR"}]},{"tab":"Documentação","icon":"book-open","groups":[{"group":"Começando","pages":[{"title":"Introdução","icon":"handshake","mode":"wide","href":"/v1.15.22/pt-BR/introduction"},{"title":"Construa com IA","icon":"robot","mode":"wide","href":"/v1.15.22/pt-BR/guides/coding-tools/build-with-ai"},{"title":"Skills","icon":"wand-magic-sparkles","mode":"wide","href":"/v1.15.22/pt-BR/skills"},{"title":"Instalação","icon":"wrench","mode":"wide","href":"/v1.15.22/pt-BR/installation"},{"title":"Guia Rápido","icon":"rocket","mode":"wide","href":"/v1.15.22/pt-BR/quickstart"}]},{"group":"Guias","pages":[{"group":"Estratégia","icon":"compass","pages":[{"title":"Avaliando Casos de Uso para CrewAI","icon":"scale-balanced","mode":"wide","href":"/v1.15.22/pt-BR/guides/concepts/evaluating-use-cases"}]},{"group":"Agentes","icon":"user","pages":[{"title":"Criando Agentes Eficazes","icon":"robot","mode":"wide","href":"/v1.15.22/pt-BR/guides/agents/crafting-effective-agents"}]},{"group":"Crews","icon":"users","pages":[{"title":"Crie sua primeira Crew","icon":"users-gear","mode":"wide","href":"/v1.15.22/pt-BR/guides/crews/first-crew"}]},{"group":"Flows","icon":"code-branch","pages":[{"title":"Construa Seu Primeiro Flow","icon":"diagram-project","mode":"wide","href":"/v1.15.22/pt-BR/guides/flows/first-flow"},{"title":"Dominando o Gerenciamento de Estado em Flows","icon":"diagram-project","mode":"wide","href":"/v1.15.22/pt-BR/guides/flows/mastering-flow-state"},{"title":"Flows Conversacionais","icon":"comments","mode":"wide","href":"/v1.15.22/pt-BR/guides/flows/conversational-flows"},{"title":"Migrando de inputs.id para restore_from_state_id","icon":"arrow-right-arrow-left","href":"/v1.15.22/pt-BR/guides/flows/inputs-id-deprecation"}]},{"group":"Frontend","icon":"browser","pages":[{"title":"Frontend Overview","icon":"browser","mode":"wide","href":"/v1.15.22/pt-BR/guides/frontend/overview"},{"title":"Channels","icon":"messages","mode":"wide","href":"/v1.15.22/pt-BR/guides/frontend/channels"}]},{"group":"Ferramentas","icon":"wrench","pages":[{"title":"Publicar Ferramentas Personalizadas","icon":"box-open","mode":"wide","href":"/v1.15.22/pt-BR/guides/tools/publish-custom-tools"}]},{"group":"Ferramentas de Codificação","icon":"terminal","pages":[{"title":"Ferramentas de Codificação","icon":"terminal","mode":"wide","href":"/v1.15.22/pt-BR/guides/coding-tools/agents-md"}]},{"group":"Avançado","icon":"gear","pages":[{"title":"Personalizando Prompts","icon":"message-pen","mode":"wide","href":"/v1.15.22/pt-BR/guides/advanced/customizing-prompts"},{"title":"Impressão digital","icon":"fingerprint","mode":"wide","href":"/v1.15.22/pt-BR/guides/advanced/fingerprinting"}]},{"group":"Migração","icon":"shuffle","pages":[{"title":"Migrando do LangGraph para o CrewAI: um guia prático para engenheiros","icon":"switch","mode":"wide","href":"/v1.15.22/pt-BR/guides/migration/migrating-from-langgraph"}]}]},{"group":"Conceitos-Chave","pages":[{"title":"Agentes","icon":"robot","mode":"wide","href":"/v1.15.22/pt-BR/concepts/agents"},{"title":"Capacidades do Agente","icon":"puzzle-piece","mode":"wide","href":"/v1.15.22/pt-BR/concepts/agent-capabilities"},{"title":"Tarefas","icon":"list-check","mode":"wide","href":"/v1.15.22/pt-BR/concepts/tasks"},{"title":"Crews","icon":"people-group","mode":"wide","href":"/v1.15.22/pt-BR/concepts/crews"},{"title":"Flows","icon":"arrow-progress","mode":"wide","href":"/v1.15.22/pt-BR/concepts/flows"},{"title":"Arquitetura de Produção","icon":"server","mode":"wide","href":"/v1.15.22/pt-BR/concepts/production-architecture"},{"title":"Knowledge","icon":"book","mode":"wide","href":"/v1.15.22/pt-BR/concepts/knowledge"},{"title":"Skills","icon":"bolt","mode":"wide","href":"/v1.15.22/pt-BR/concepts/skills"},{"title":"LLMs","icon":"microchip-ai","mode":"wide","href":"/v1.15.22/pt-BR/concepts/llms"},{"title":"Arquivos","icon":"file-image","href":"/v1.15.22/pt-BR/concepts/files"},{"title":"Processos","icon":"bars-staggered","mode":"wide","href":"/v1.15.22/pt-BR/concepts/processes"},{"title":"Colaboração","icon":"screen-users","mode":"wide","href":"/v1.15.22/pt-BR/concepts/collaboration"},{"title":"Treinamento","icon":"dumbbell","mode":"wide","href":"/v1.15.22/pt-BR/concepts/training"},{"title":"Memória","icon":"database","mode":"wide","href":"/v1.15.22/pt-BR/concepts/memory"},{"title":"Reasoning","icon":"brain","mode":"wide","href":"/v1.15.22/pt-BR/concepts/reasoning"},{"title":"Planejamento","icon":"ruler-combined","mode":"wide","href":"/v1.15.22/pt-BR/concepts/planning"},{"title":"Testes","icon":"vial","mode":"wide","href":"/v1.15.22/pt-BR/concepts/testing"},{"title":"CLI","icon":"terminal","mode":"wide","href":"/v1.15.22/pt-BR/concepts/cli"},{"title":"Ferramentas","icon":"screwdriver-wrench","mode":"wide","href":"/v1.15.22/pt-BR/concepts/tools"},{"title":"Listeners de Evento","icon":"spinner","mode":"wide","href":"/v1.15.22/pt-BR/concepts/event-listener"},{"title":"Checkpointing","icon":"floppy-disk","mode":"wide","href":"/v1.15.22/pt-BR/concepts/checkpointing"}]},{"group":"Integração MCP","pages":[{"title":"Servidores MCP como Ferramentas no CrewAI","icon":"plug","mode":"wide","href":"/v1.15.22/pt-BR/mcp/overview"},{"title":"Integração DSL MCP","icon":"code","mode":"wide","href":"/v1.15.22/pt-BR/mcp/dsl-integration"},{"title":"Transporte Stdio","icon":"server","mode":"wide","href":"/v1.15.22/pt-BR/mcp/stdio"},{"title":"Transporte SSE","icon":"wifi","mode":"wide","href":"/v1.15.22/pt-BR/mcp/sse"},{"title":"Transporte HTTP Streamable","icon":"globe","mode":"wide","href":"/v1.15.22/pt-BR/mcp/streamable-http"},{"title":"Conectando a Múltiplos Servidores MCP","icon":"layer-group","mode":"wide","href":"/v1.15.22/pt-BR/mcp/multiple-servers"},{"title":"Considerações de Segurança MCP","icon":"lock","mode":"wide","href":"/v1.15.22/pt-BR/mcp/security"}]},{"group":"Ferramentas","pages":[{"title":"Visão Geral das Ferramentas","icon":"toolbox","mode":"wide","href":"/v1.15.22/pt-BR/tools/overview"},{"group":"Arquivo \u0026 Documento","icon":"folder-open","pages":[{"title":"Visão Geral","icon":"face-smile","mode":"wide","href":"/v1.15.22/pt-BR/tools/file-document/overview"},{"title":"Leitura de Arquivo","icon":"folders","mode":"wide","href":"/v1.15.22/pt-BR/tools/file-document/filereadtool"},{"title":"Escrita de Arquivo","icon":"file-pen","mode":"wide","href":"/v1.15.22/pt-BR/tools/file-document/filewritetool"},{"title":"Busca RAG em PDF","icon":"file-pdf","mode":"wide","href":"/v1.15.22/pt-BR/tools/file-document/pdfsearchtool"},{"title":"Pesquisa RAG em DOCX","icon":"file-word","mode":"wide","href":"/v1.15.22/pt-BR/tools/file-document/docxsearchtool"},{"title":"Pesquisa MDX RAG","icon":"markdown","mode":"wide","href":"/v1.15.22/pt-BR/tools/file-document/mdxsearchtool"},{"title":"Busca RAG em XML","icon":"file-xml","mode":"wide","href":"/v1.15.22/pt-BR/tools/file-document/xmlsearchtool"},{"title":"Pesquisa TXT RAG","icon":"file-lines","mode":"wide","href":"/v1.15.22/pt-BR/tools/file-document/txtsearchtool"},{"title":"Busca JSON RAG","icon":"file-code","mode":"wide","href":"/v1.15.22/pt-BR/tools/file-document/jsonsearchtool"},{"title":"Busca RAG em CSV","icon":"file-csv","mode":"wide","href":"/v1.15.22/pt-BR/tools/file-document/csvsearchtool"},{"title":"Busca RAG em Diretório","icon":"address-book","mode":"wide","href":"/v1.15.22/pt-BR/tools/file-document/directorysearchtool"},{"title":"Leitura de Diretório","icon":"folder-tree","mode":"wide","href":"/v1.15.22/pt-BR/tools/file-document/directoryreadtool"}]},{"group":"Web Scraping \u0026 Navegação","icon":"globe","pages":[{"title":"Visão Geral","icon":"face-smile","mode":"wide","href":"/v1.15.22/pt-BR/tools/web-scraping/overview"},{"title":"Raspar Site","icon":"magnifying-glass-location","mode":"wide","href":"/v1.15.22/pt-BR/tools/web-scraping/scrapewebsitetool"},{"title":"Ferramenta de Extração de Elementos de Website","icon":"code","mode":"wide","href":"/v1.15.22/pt-BR/tools/web-scraping/scrapeelementfromwebsitetool"},{"title":"Ferramenta de Raspagem de Sites Scrapfly","icon":"spider","mode":"wide","href":"/v1.15.22/pt-BR/tools/web-scraping/scrapflyscrapetool"},{"title":"Selenium Scraper","icon":"clipboard-user","mode":"wide","href":"/v1.15.22/pt-BR/tools/web-scraping/seleniumscrapingtool"},{"title":"Ferramenta de Extração Scrapegraph","icon":"chart-area","mode":"wide","href":"/v1.15.22/pt-BR/tools/web-scraping/scrapegraphscrapetool"},{"title":"Spider Scraper","icon":"spider-web","mode":"wide","href":"/v1.15.22/pt-BR/tools/web-scraping/spidertool"},{"title":"Carregador Web Browserbase","icon":"browser","mode":"wide","href":"/v1.15.22/pt-BR/tools/web-scraping/browserbaseloadtool"},{"title":"Hyperbrowser Load Tool","description":"O `HyperbrowserLoadTool` permite realizar web scraping e crawling utilizando o Hyperbrowser.","icon":"globe","mode":"wide","href":"/v1.15.22/pt-BR/tools/web-scraping/hyperbrowserloadtool"},{"title":"Ferramenta Stagehand","icon":"hand","mode":"wide","href":"/v1.15.22/pt-BR/tools/web-scraping/stagehandtool"},{"title":"Firecrawl Crawl Website","description":"O `FirecrawlCrawlWebsiteTool` foi projetado para rastrear e converter sites em markdown limpo ou dados estruturados.","icon":"fire-flame","mode":"wide","href":"/v1.15.22/pt-BR/tools/web-scraping/firecrawlcrawlwebsitetool"},{"title":"Firecrawl Scrape Website","icon":"fire-flame","mode":"wide","href":"/v1.15.22/pt-BR/tools/web-scraping/firecrawlscrapewebsitetool"},{"title":"Oxylabs Scrapers","icon":"globe","mode":"wide","href":"/v1.15.22/pt-BR/tools/web-scraping/oxylabsscraperstool"}]},{"group":"Pesquisa","icon":"magnifying-glass","pages":[{"title":"Visão Geral","icon":"face-smile","mode":"wide","href":"/v1.15.22/pt-BR/tools/search-research/overview"},{"title":"Pesquisa Serper Google","icon":"google","mode":"wide","href":"/v1.15.22/pt-BR/tools/search-research/serperdevtool"},{"title":"Brave Search","icon":"searchengin","mode":"wide","href":"/v1.15.22/pt-BR/tools/search-research/bravesearchtool"},{"title":"Carregador Web EXA Search","icon":"globe-pointer","mode":"wide","href":"/v1.15.22/pt-BR/tools/search-research/exasearchtool"},{"title":"Linkup Search Tool","icon":"link","mode":"wide","href":"/v1.15.22/pt-BR/tools/search-research/linkupsearchtool"},{"title":"Github Search","icon":"github","mode":"wide","href":"/v1.15.22/pt-BR/tools/search-research/githubsearchtool"},{"title":"Pesquisa RAG em Sites","icon":"globe-stand","mode":"wide","href":"/v1.15.22/pt-BR/tools/search-research/websitesearchtool"},{"title":"Pesquisa com RAG em Documentação de Código","icon":"code","mode":"wide","href":"/v1.15.22/pt-BR/tools/search-research/codedocssearchtool"},{"title":"Busca RAG em Canal do YouTube","icon":"youtube","mode":"wide","href":"/v1.15.22/pt-BR/tools/search-research/youtubechannelsearchtool"},{"title":"Pesquisa RAG em Vídeos do YouTube","icon":"youtube","mode":"wide","href":"/v1.15.22/pt-BR/tools/search-research/youtubevideosearchtool"}]},{"group":"Dados","icon":"database","pages":[{"title":"Visão Geral","icon":"face-smile","mode":"wide","href":"/v1.15.22/pt-BR/tools/database-data/overview"},{"title":"Busca RAG no MySQL","icon":"database","mode":"wide","href":"/v1.15.22/pt-BR/tools/database-data/mysqltool"},{"title":"PG RAG Search","icon":"elephant","mode":"wide","href":"/v1.15.22/pt-BR/tools/database-data/pgsearchtool"},{"title":"Snowflake Search Tool","icon":"snowflake","mode":"wide","href":"/v1.15.22/pt-BR/tools/database-data/snowflakesearchtool"},{"title":"NL2SQL Tool","icon":"language","mode":"wide","href":"/v1.15.22/pt-BR/tools/database-data/nl2sqltool"},{"title":"Qdrant Vector Search Tool","icon":"vector-square","mode":"wide","href":"/v1.15.22/pt-BR/tools/database-data/qdrantvectorsearchtool"},{"title":"Busca Vetorial Weaviate","icon":"network-wired","mode":"wide","href":"/v1.15.22/pt-BR/tools/database-data/weaviatevectorsearchtool"}]},{"group":"IA \u0026 Machine Learning","icon":"brain","pages":[{"title":"Visão Geral","icon":"face-smile","mode":"wide","href":"/v1.15.22/pt-BR/tools/ai-ml/overview"},{"title":"Ferramenta DALL-E","icon":"image","mode":"wide","href":"/v1.15.22/pt-BR/tools/ai-ml/dalletool"},{"title":"Vision Tool","icon":"eye","mode":"wide","href":"/v1.15.22/pt-BR/tools/ai-ml/visiontool"},{"title":"AI Mind Tool","icon":"brain","mode":"wide","href":"/v1.15.22/pt-BR/tools/ai-ml/aimindtool"},{"title":"Ferramenta LlamaIndex","icon":"address-book","mode":"wide","href":"/v1.15.22/pt-BR/tools/ai-ml/llamaindextool"},{"title":"Ferramenta LangChain","icon":"link","mode":"wide","href":"/v1.15.22/pt-BR/tools/ai-ml/langchaintool"},{"title":"Ferramenta RAG","icon":"vector-square","mode":"wide","href":"/v1.15.22/pt-BR/tools/ai-ml/ragtool"},{"title":"Interpretador de Código","icon":"code-simple","mode":"wide","href":"/v1.15.22/pt-BR/tools/ai-ml/codeinterpretertool"},{"title":"Daytona Sandbox Tools","icon":"box","mode":"wide","href":"/v1.15.22/pt-BR/tools/ai-ml/daytona"}]},{"group":"Cloud \u0026 Armazenamento","icon":"cloud","pages":[{"title":"Visão Geral","icon":"face-smile","mode":"wide","href":"/v1.15.22/pt-BR/tools/cloud-storage/overview"},{"title":"S3 Reader Tool","icon":"aws","mode":"wide","href":"/v1.15.22/pt-BR/tools/cloud-storage/s3readertool"},{"title":"Ferramenta S3 Writer","icon":"aws","mode":"wide","href":"/v1.15.22/pt-BR/tools/cloud-storage/s3writertool"},{"title":"Bedrock Knowledge Base Retriever","icon":"aws","mode":"wide","href":"/v1.15.22/pt-BR/tools/cloud-storage/bedrockkbretriever"}]},{"group":"Integrations","icon":"plug","pages":[{"title":"Visão Geral","icon":"plug","mode":"wide","href":"/v1.15.22/pt-BR/tools/integration/overview"},{"title":"Bedrock Invoke Agent Tool","icon":"aws","mode":"wide","href":"/v1.15.22/pt-BR/tools/integration/bedrockinvokeagenttool"},{"title":"CrewAI Run Automation Tool","icon":"robot","href":"/v1.15.22/pt-BR/tools/integration/crewaiautomationtool"}]},{"group":"Automação","icon":"bolt","pages":[{"title":"Visão Geral","icon":"face-smile","mode":"wide","href":"/v1.15.22/pt-BR/tools/automation/overview"},{"title":"Apify Actors","icon":"); -webkit-mask-image: url('https://upload.wikimedia.org/wikipedia/commons/a/ae/Apify.svg');/*","mode":"wide","href":"/v1.15.22/pt-BR/tools/automation/apifyactorstool"},{"title":"Ferramenta Composio","icon":"gear-code","mode":"wide","href":"/v1.15.22/pt-BR/tools/automation/composiotool"},{"title":"MultiOn Tool","icon":"globe","mode":"wide","href":"/v1.15.22/pt-BR/tools/automation/multiontool"}]}]},{"group":"Observabilidade","pages":[{"title":"CrewAI Tracing","icon":"magnifying-glass-chart","mode":"wide","href":"/v1.15.22/pt-BR/observability/tracing"},{"title":"Visão Geral","icon":"face-smile","mode":"wide","href":"/v1.15.22/pt-BR/observability/overview"},{"title":"Arize Phoenix","icon":"magnifying-glass-chart","mode":"wide","href":"/v1.15.22/pt-BR/observability/arize-phoenix"},{"title":"Braintrust","icon":"magnifying-glass-chart","mode":"wide","href":"/v1.15.22/pt-BR/observability/braintrust"},{"title":"Integração Datadog","icon":"dog","mode":"wide","href":"/v1.15.22/pt-BR/observability/datadog"},{"title":"Galileo Galileu","icon":"telescope","mode":"wide","href":"/v1.15.22/pt-BR/observability/galileo"},{"title":"Integração LangDB","icon":"database","mode":"wide","href":"/v1.15.22/pt-BR/observability/langdb"},{"title":"Integração Langfuse","icon":"vials","mode":"wide","href":"/v1.15.22/pt-BR/observability/langfuse"},{"title":"Integração com Langtrace","icon":"chart-line","mode":"wide","href":"/v1.15.22/pt-BR/observability/langtrace"},{"title":"Integração Maxim","icon":"bars-staggered","mode":"wide","href":"/v1.15.22/pt-BR/observability/maxim"},{"title":"Integração com MLflow","icon":"bars-staggered","mode":"wide","href":"/v1.15.22/pt-BR/observability/mlflow"},{"title":"Integração OpenLIT","icon":"magnifying-glass-chart","mode":"wide","href":"/v1.15.22/pt-BR/observability/openlit"},{"title":"Integração Opik","icon":"meteor","mode":"wide","href":"/v1.15.22/pt-BR/observability/opik"},{"title":"Avaliação Patronus AI","icon":"shield-check","mode":"wide","href":"/v1.15.22/pt-BR/observability/patronus-evaluation"},{"title":"Integração com Portkey","icon":"key","mode":"wide","href":"/v1.15.22/pt-BR/observability/portkey"},{"title":"Integração com Weave","icon":"radar","mode":"wide","href":"/v1.15.22/pt-BR/observability/weave"},{"title":"Integração com a TrueFoundry","icon":"chart-line","mode":"wide","href":"/v1.15.22/pt-BR/observability/truefoundry"}]},{"group":"Aprenda","pages":[{"title":"Visão Geral","icon":"face-smile","mode":"wide","href":"/v1.15.22/pt-BR/learn/overview"},{"title":"Guia Estratégico de Seleção de LLMs","icon":"brain-circuit","mode":"wide","href":"/v1.15.22/pt-BR/learn/llm-selection-guide"},{"title":"Tarefas Condicionais","icon":"diagram-subtask","mode":"wide","href":"/v1.15.22/pt-BR/learn/conditional-tasks"},{"title":"Agentes de Codificação","icon":"rectangle-code","mode":"wide","href":"/v1.15.22/pt-BR/learn/coding-agents"},{"title":"Criar Ferramentas Personalizadas","icon":"hammer","mode":"wide","href":"/v1.15.22/pt-BR/learn/create-custom-tools"},{"title":"Implementação de LLM Personalizada","icon":"code","mode":"wide","href":"/v1.15.22/pt-BR/learn/custom-llm"},{"title":"Agente Gerente Personalizado","icon":"user-shield","mode":"wide","href":"/v1.15.22/pt-BR/learn/custom-manager-agent"},{"title":"Personalize Agentes","icon":"user-pen","mode":"wide","href":"/v1.15.22/pt-BR/learn/customizing-agents"},{"title":"Geração de Imagens com DALL-E","icon":"image","mode":"wide","href":"/v1.15.22/pt-BR/learn/dalle-image-generation"},{"title":"Forçar a Saída da Ferramenta como Resultado","icon":"wrench-simple","mode":"wide","href":"/v1.15.22/pt-BR/learn/force-tool-output-as-result"},{"title":"Processo Hierárquico","icon":"sitemap","mode":"wide","href":"/v1.15.22/pt-BR/learn/hierarchical-process"},{"title":"Input Humano na Execução","icon":"user-plus","mode":"wide","href":"/v1.15.22/pt-BR/learn/human-input-on-execution"},{"title":"Workflows Human-in-the-Loop (HITL)","icon":"user-check","mode":"wide","href":"/v1.15.22/pt-BR/learn/human-in-the-loop"},{"title":"Feedback Humano em Flows","icon":"user-check","mode":"wide","href":"/v1.15.22/pt-BR/learn/human-feedback-in-flows"},{"title":"Inicie uma Crew de Forma Assíncrona","icon":"rocket-launch","mode":"wide","href":"/v1.15.22/pt-BR/learn/kickoff-async"},{"title":"Kickoff Crew para Cada","icon":"at","mode":"wide","href":"/v1.15.22/pt-BR/learn/kickoff-for-each"},{"title":"Contrato de Streaming do Runtime","icon":"tower-broadcast","mode":"wide","href":"/v1.15.22/pt-BR/learn/streaming-runtime-contract"},{"title":"Conecte-se a qualquer LLM","icon":"brain-circuit","mode":"wide","href":"/v1.15.22/pt-BR/learn/llm-connections"},{"title":"Usando Agentes Multimodais","icon":"video","mode":"wide","href":"/v1.15.22/pt-BR/learn/multimodal-agents"},{"title":"Reexecutar Tarefas a partir do Último Crew Kickoff","icon":"arrow-right","mode":"wide","href":"/v1.15.22/pt-BR/learn/replay-tasks-from-latest-crew-kickoff"},{"title":"Processos Sequenciais","icon":"forward","mode":"wide","href":"/v1.15.22/pt-BR/learn/sequential-process"},{"title":"Usando Anotações no crew.py","icon":"at","mode":"wide","href":"/v1.15.22/pt-BR/learn/using-annotations"},{"title":"Visão Geral dos Hooks de Execução","mode":"wide","href":"/v1.15.22/pt-BR/learn/execution-hooks"},{"title":"Hooks de Chamada LLM","mode":"wide","href":"/v1.15.22/pt-BR/learn/llm-hooks"},{"title":"Hooks de Chamada de Ferramenta","mode":"wide","href":"/v1.15.22/pt-BR/learn/tool-hooks"},{"title":"Hooks de Fronteira de Execução","mode":"wide","href":"/v1.15.22/pt-BR/learn/execution-boundary-hooks"}]},{"group":"Telemetria","pages":[{"title":"Telemetria","icon":"signal-stream","mode":"wide","href":"/v1.15.22/pt-BR/telemetry"}]}]},{"tab":"AMP","icon":"briefcase","href":"https://docs-platform.crewai.com/platform/pt-BR/introduction"},{"tab":"Referência da API","icon":"magnifying-glass","pages":[{"title":"Referência da API","href":"/v1.15.22/pt-BR/api-reference/introduction"}]},{"tab":"Exemplos","icon":"code","pages":[{"title":"Exemplos","href":"/v1.15.22/pt-BR/examples/example"}]},{"tab":"Notas de Versão","icon":"clock","pages":[{"title":"Notas de Versão","href":"/v1.15.22/pt-BR/changelog"}]}]},{"version":"v1.15.21","pages":[{"title":"v1.15.21","href":"/v1.15.21/pt-BR/tools/web-scraping/stagehandtool"}]},{"version":"v1.15.20","pages":[{"title":"v1.15.20","href":"/v1.15.20/pt-BR/tools/web-scraping/stagehandtool"}]},{"version":"v1.15.19","pages":[{"title":"v1.15.19","href":"/v1.15.19/pt-BR/tools/web-scraping/stagehandtool"}]},{"version":"v1.15.18","pages":[{"title":"v1.15.18","href":"/v1.15.18/pt-BR/tools/web-scraping/stagehandtool"}]},{"version":"v1.15.17","pages":[{"title":"v1.15.17","href":"/v1.15.17/pt-BR/tools/web-scraping/stagehandtool"}]},{"version":"v1.15.16","pages":[{"title":"v1.15.16","href":"/v1.15.16/pt-BR/tools/web-scraping/stagehandtool"}]},{"version":"v1.15.15","pages":[{"title":"v1.15.15","href":"/v1.15.15/pt-BR/tools/web-scraping/stagehandtool"}]},{"version":"v1.15.14","pages":[{"title":"v1.15.14","href":"/v1.15.14/pt-BR/tools/web-scraping/stagehandtool"}]},{"version":"v1.15.13","pages":[{"title":"v1.15.13","href":"/v1.15.13/pt-BR/tools/web-scraping/stagehandtool"}]},{"version":"v1.15.12","pages":[{"title":"v1.15.12","href":"/v1.15.12/pt-BR/tools/web-scraping/stagehandtool"}]},{"version":"v1.15.11","pages":[{"title":"v1.15.11","href":"/v1.15.11/pt-BR/tools/web-scraping/stagehandtool"}]},{"version":"v1.15.10","pages":[{"title":"v1.15.10","href":"/v1.15.10/pt-BR/tools/web-scraping/stagehandtool"}]},{"version":"v1.15.9","pages":[{"title":"v1.15.9","href":"/v1.15.9/pt-BR/tools/web-scraping/stagehandtool"}]},{"version":"v1.15.8","pages":[{"title":"v1.15.8","href":"/v1.15.8/pt-BR/tools/web-scraping/stagehandtool"}]},{"version":"v1.15.7","pages":[{"title":"v1.15.7","href":"/v1.15.7/pt-BR/tools/web-scraping/stagehandtool"}]},{"version":"v1.15.6","pages":[{"title":"v1.15.6","href":"/v1.15.6/pt-BR/tools/web-scraping/stagehandtool"}]},{"version":"v1.15.5","pages":[{"title":"v1.15.5","href":"/v1.15.5/pt-BR/tools/web-scraping/stagehandtool"}]},{"version":"v1.15.4","pages":[{"title":"v1.15.4","href":"/v1.15.4/pt-BR/tools/web-scraping/stagehandtool"}]},{"version":"v1.15.3","pages":[{"title":"v1.15.3","href":"/v1.15.3/pt-BR/tools/web-scraping/stagehandtool"}]},{"version":"v1.15.2","pages":[{"title":"v1.15.2","href":"/v1.15.2/pt-BR/tools/web-scraping/stagehandtool"}]},{"version":"v1.15.1","pages":[{"title":"v1.15.1","href":"/v1.15.1/pt-BR/tools/web-scraping/stagehandtool"}]},{"version":"v1.15.0","pages":[{"title":"v1.15.0","href":"/v1.15.0/pt-BR/tools/web-scraping/stagehandtool"}]},{"version":"v1.14.7","pages":[{"title":"v1.14.7","href":"/v1.14.7/pt-BR/tools/web-scraping/stagehandtool"}]},{"version":"v1.14.6","pages":[{"title":"v1.14.6","href":"/v1.14.6/pt-BR/tools/web-scraping/stagehandtool"}]},{"version":"v1.14.5","pages":[{"title":"v1.14.5","href":"/v1.14.5/pt-BR/tools/web-scraping/stagehandtool"}]},{"version":"v1.14.4","pages":[{"title":"v1.14.4","href":"/v1.14.4/pt-BR/tools/web-scraping/stagehandtool"}]},{"version":"v1.14.3","pages":[{"title":"v1.14.3","href":"/v1.14.3/pt-BR/tools/web-scraping/stagehandtool"}]},{"version":"v1.14.2","pages":[{"title":"v1.14.2","href":"/v1.14.2/pt-BR/tools/web-scraping/stagehandtool"}]},{"version":"v1.14.1","pages":[{"title":"v1.14.1","href":"/v1.14.1/pt-BR/tools/web-scraping/stagehandtool"}]},{"version":"v1.14.0","pages":[{"title":"v1.14.0","href":"/v1.14.0/pt-BR/tools/web-scraping/stagehandtool"}]},{"version":"v1.13.0","pages":[{"title":"v1.13.0","href":"/v1.13.0/pt-BR/tools/web-scraping/stagehandtool"}]},{"version":"v1.12.2","pages":[{"title":"v1.12.2","href":"/v1.12.2/pt-BR/tools/web-scraping/stagehandtool"}]},{"version":"v1.12.1","pages":[{"title":"v1.12.1","href":"/v1.12.1/pt-BR/tools/web-scraping/stagehandtool"}]},{"version":"v1.12.0","pages":[{"title":"v1.12.0","href":"/v1.12.0/pt-BR/tools/web-scraping/stagehandtool"}]},{"version":"v1.11.1","pages":[{"title":"v1.11.1","href":"/v1.11.1/pt-BR/tools/web-scraping/stagehandtool"}]},{"version":"v1.11.0","pages":[{"title":"v1.11.0","href":"/v1.11.0/pt-BR/tools/web-scraping/stagehandtool"}]},{"version":"v1.10.1","pages":[{"title":"v1.10.1","href":"/v1.10.1/pt-BR/tools/web-scraping/stagehandtool"}]},{"version":"v1.10.0","pages":[{"title":"v1.10.0","href":"/v1.10.0/pt-BR/tools/web-scraping/stagehandtool"}]}],"global":{"anchors":[{"anchor":"Website","icon":"globe","href":"https://crewai.com"},{"anchor":"Fórum","icon":"discourse","href":"https://community.crewai.com"},{"anchor":"Blog","icon":"newspaper","href":"https://blog.crewai.com"},{"anchor":"CrewGPT","icon":"robot","href":"https://chatgpt.com/g/g-qqTuUWsBY-crewai-assistant"}]}},{"language":"ko","pages":[{"title":"ko","href":"/v1.15.22/ko/tools/web-scraping/stagehandtool"}]},{"language":"ar","pages":[{"title":"ar","href":"/v1.15.22/ar/tools/web-scraping/stagehandtool"}]}]},"title":"Ferramenta Stagehand - CrewAI","buildId":"dpl_2oYXwqkEXirXBPk8wV1FtM5USFWi","deploymentId":"dpl_2oYXwqkEXirXBPk8wV1FtM5USFWi","dynamics":[],"chunks":[]}