تدمج أداة StagehandTool إطار عمل Stagehand مع CrewAI، مما يتيح للوكلاء التفاعل مع المواقع الإلكترونية وأتمتة مهام المتصفح باستخدام تعليمات بلغة طبيعية.
يُوصى باستخدام مدير السياق لأنه يضمن التنظيف السليم للموارد حتى في حالة حدوث استثناءات.
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()
يتيح نوع الأمر act (الافتراضي) التفاعل مع صفحات الويب مثل النقر على الأزرار وملء النماذج والتنقل.
# 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")
يسترجع نوع الأمر extract بيانات منظمة من صفحات الويب.
# 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)
# 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")
يمكنك تخصيص سلوك أداة StagehandTool باستخدام المعاملات التالية:
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":"6adf01ab737ceb5e71081551","collectionId":"633b6451-fde0-41b1-97f0-7ab4ef6ab679","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6adf01ab737ceb5e71081551"},"feedback":{"thumbs":true,"edits":true,"issues":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6adf01ab737ceb5e71081551","clientVersion":"0.0.3971","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/ar/tools/web-scraping/stagehandtool","slug":"/v1.15.22/ar/tools/web-scraping/stagehandtool","pageMetadata":{"title":"أداة Stagehand","description":"أداة أتمتة الويب التي تدمج Stagehand مع CrewAI للتفاعل مع المتصفح وأتمتة المهام","icon":"hand","mode":"wide","href":"/v1.15.22/ar/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: \"أداة أتمتة الويب التي تدمج Stagehand مع CrewAI للتفاعل مع المتصفح وأتمتة المهام\"\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:`نظرة-عامة`,children:`نظرة عامة`}),`\n`,_jsxs(_components.p,{children:[`تدمج أداة `,_jsx(_components.code,{children:`StagehandTool`}),` إطار عمل `,_jsx(_components.a,{href:`https://docs.stagehand.dev/get_started/introduction`,children:`Stagehand`}),` مع CrewAI، مما يتيح للوكلاء التفاعل مع المواقع الإلكترونية وأتمتة مهام المتصفح باستخدام تعليمات بلغة طبيعية.`]}),`\n`,_jsx(Heading,{level:`2`,id:`نظرة-عامة-2`,children:`نظرة عامة`}),`\n`,_jsx(_components.p,{children:`Stagehand هو إطار عمل قوي لأتمتة المتصفح تم تطويره بواسطة Browserbase ويتيح لوكلاء الذكاء الاصطناعي:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`التنقل إلى المواقع الإلكترونية`}),`\n`,_jsx(_components.li,{children:`النقر على الأزرار والروابط والعناصر الأخرى`}),`\n`,_jsx(_components.li,{children:`ملء النماذج`}),`\n`,_jsx(_components.li,{children:`استخراج البيانات من صفحات الويب`}),`\n`,_jsx(_components.li,{children:`مراقبة العناصر وتحديدها`}),`\n`,_jsx(_components.li,{children:`تنفيذ سير عمل معقدة`}),`\n`]}),`\n`,_jsx(_components.p,{children:`تغلف أداة StagehandTool حزمة Stagehand Python SDK لتزويد وكلاء CrewAI بإمكانيات التحكم في المتصفح من خلال ثلاثة عمليات أساسية:`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Act`}),`: تنفيذ إجراءات مثل النقر والكتابة والتنقل`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Extract`}),`: استخراج بيانات منظمة من صفحات الويب`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Observe`}),`: تحديد العناصر وتحليلها في الصفحة`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`المتطلبات-الأساسية`,children:`المتطلبات الأساسية`}),`\n`,_jsx(_components.p,{children:`قبل استخدام هذه الأداة، تأكد من توفر ما يلي:`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`حساب على `,_jsx(_components.a,{href:`https://www.browserbase.com/`,children:`Browserbase`}),` مع مفتاح API ومعرف المشروع`]}),`\n`,_jsx(_components.li,{children:`مفتاح API لنموذج لغوي كبير (OpenAI أو Anthropic Claude)`}),`\n`,_jsx(_components.li,{children:`تثبيت حزمة Stagehand Python SDK`}),`\n`]}),`\n`,_jsx(_components.p,{children:`قم بتثبيت التبعية المطلوبة:`}),`\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:`الاستخدام`,children:`الاستخدام`}),`\n`,_jsx(Heading,{level:`3`,id:`التنفيذ-الأساسي`,children:`التنفيذ الأساسي`}),`\n`,_jsx(_components.p,{children:`يمكن تنفيذ أداة StagehandTool بطريقتين:`}),`\n`,_jsx(Heading,{level:`4`,id:`1-استخدام-مدير-السياق-موصى-به`,children:`1. استخدام مدير السياق (موصى به)`}),`\n`,_jsx(Tip,{children:_jsx(_components.p,{children:`يُوصى باستخدام مدير السياق لأنه يضمن التنظيف السليم للموارد حتى في حالة حدوث استثناءات.`})}),`\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-إدارة-الموارد-يدوياً`,children:`2. إدارة الموارد يدوياً`}),`\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:`أنواع-الأوامر`,children:`أنواع الأوامر`}),`\n`,_jsx(_components.p,{children:`تدعم أداة StagehandTool ثلاثة أنواع مختلفة من الأوامر لمهام أتمتة الويب المحددة:`}),`\n`,_jsx(Heading,{level:`3`,id:`1-أمر-act`,children:`1. أمر Act`}),`\n`,_jsxs(_components.p,{children:[`يتيح نوع الأمر `,_jsx(_components.code,{children:`act`}),` (الافتراضي) التفاعل مع صفحات الويب مثل النقر على الأزرار وملء النماذج والتنقل.`]}),`\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-أمر-extract`,children:`2. أمر Extract`}),`\n`,_jsxs(_components.p,{children:[`يسترجع نوع الأمر `,_jsx(_components.code,{children:`extract`}),` بيانات منظمة من صفحات الويب.`]}),`\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-أمر-observe`,children:`3. أمر Observe`}),`\n`,_jsxs(_components.p,{children:[`يحدد نوع الأمر `,_jsx(_components.code,{children:`observe`}),` عناصر صفحات الويب ويحللها.`]}),`\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:`خيارات-الإعداد`,children:`خيارات الإعداد`}),`\n`,_jsx(_components.p,{children:`يمكنك تخصيص سلوك أداة StagehandTool باستخدام المعاملات التالية:`}),`\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:`أفضل-الممارسات`,children:`أفضل الممارسات`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`كن محدداً`}),`: قدم تعليمات مفصلة للحصول على نتائج أفضل`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`اختر نوع الأمر المناسب`}),`: حدد نوع الأمر الصحيح لمهمتك`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`استخدم المحددات`}),`: استفد من محددات CSS لتحسين الدقة`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`قسّم المهام المعقدة`}),`: قسّم سير العمل المعقدة إلى عدة استدعاءات للأداة`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`طبّق معالجة الأخطاء`}),`: أضف معالجة الأخطاء للمشكلات المحتملة`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`استكشاف-الأخطاء-وإصلاحها`,children:`استكشاف الأخطاء وإصلاحها`}),`\n`,_jsx(_components.p,{children:`المشكلات الشائعة وحلولها:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`مشكلات الجلسة`}),`: تحقق من مفاتيح API لكل من Browserbase ومزود النموذج اللغوي`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`العنصر غير موجود`}),`: قم بزيادة قيمة `,_jsx(_components.code,{children:`dom_settle_timeout_ms`}),` للصفحات البطيئة`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`فشل الإجراء`}),`: استخدم `,_jsx(_components.code,{children:`observe`}),` لتحديد العناصر الصحيحة أولاً`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`بيانات غير مكتملة`}),`: حسّن التعليمات أو قدم محددات محددة`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`موارد-إضافية`,children:`موارد إضافية`}),`\n`,_jsx(_components.p,{children:`للأسئلة حول تكامل CrewAI:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`انضم إلى مجتمع Stagehand على `,_jsx(_components.a,{href:`https://stagehand.dev/slack`,children:`Slack`})]}),`\n`,_jsxs(_components.li,{children:[`افتح مشكلة في `,_jsx(_components.a,{href:`https://github.com/browserbase/stagehand`,children:`مستودع Stagehand`})]}),`\n`,_jsxs(_components.li,{children:[`قم بزيارة `,_jsx(_components.a,{href:`https://docs.stagehand.dev/`,children:`وثائق 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":"أداة Stagehand","description":"أداة أتمتة الويب التي تدمج Stagehand مع CrewAI للتفاعل مع المتصفح وأتمتة المهام","icon":"hand","mode":"wide","href":"/v1.15.22/ar/tools/web-scraping/stagehandtool"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"نظرة عامة","slug":"نظرة-عامة","depth":1,"children":[]},{"title":"نظرة عامة","slug":"نظرة-عامة-2","depth":2,"children":[]},{"title":"المتطلبات الأساسية","slug":"المتطلبات-الأساسية","depth":2,"children":[]},{"title":"الاستخدام","slug":"الاستخدام","depth":2,"children":[{"title":"التنفيذ الأساسي","slug":"التنفيذ-الأساسي","depth":3,"children":[]},{"title":"1. استخدام مدير السياق (موصى به)","slug":"1-استخدام-مدير-السياق-موصى-به","depth":4,"children":[]},{"title":"2. إدارة الموارد يدوياً","slug":"2-إدارة-الموارد-يدوياً","depth":4,"children":[]}]},{"title":"أنواع الأوامر","slug":"أنواع-الأوامر","depth":2,"children":[{"title":"1. أمر Act","slug":"1-أمر-act","depth":3,"children":[]},{"title":"2. أمر Extract","slug":"2-أمر-extract","depth":3,"children":[]},{"title":"3. أمر Observe","slug":"3-أمر-observe","depth":3,"children":[]}]},{"title":"خيارات الإعداد","slug":"خيارات-الإعداد","depth":2,"children":[]},{"title":"أفضل الممارسات","slug":"أفضل-الممارسات","depth":2,"children":[]},{"title":"استكشاف الأخطاء وإصلاحها","slug":"استكشاف-الأخطاء-وإصلاحها","depth":2,"children":[]},{"title":"موارد إضافية","slug":"موارد-إضافية","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":"أداة Stagehand - CrewAI","navMaps":{"firstHrefInVersion":{"Edge":{"href":"/edge/ar/tools/web-scraping/stagehandtool","matchLevel":1},"v1.15.30":{"href":"/v1.15.30/ar/tools/web-scraping/stagehandtool","matchLevel":1},"v1.15.29":{"href":"/v1.15.29/ar/tools/web-scraping/stagehandtool","matchLevel":1},"v1.15.28":{"href":"/v1.15.28/ar/tools/web-scraping/stagehandtool","matchLevel":1},"v1.15.27":{"href":"/v1.15.27/ar/tools/web-scraping/stagehandtool","matchLevel":1},"v1.15.26":{"href":"/v1.15.26/ar/tools/web-scraping/stagehandtool","matchLevel":1},"v1.15.25":{"href":"/v1.15.25/ar/tools/web-scraping/stagehandtool","matchLevel":1},"v1.15.24":{"href":"/v1.15.24/ar/tools/web-scraping/stagehandtool","matchLevel":1},"v1.15.23":{"href":"/v1.15.23/ar/tools/web-scraping/stagehandtool","matchLevel":1},"v1.15.22":{"href":"/v1.15.22/ar/tools/web-scraping/stagehandtool","matchLevel":0},"v1.15.21":{"href":"/v1.15.21/ar/tools/web-scraping/stagehandtool","matchLevel":1},"v1.15.20":{"href":"/v1.15.20/ar/tools/web-scraping/stagehandtool","matchLevel":1},"v1.15.19":{"href":"/v1.15.19/ar/tools/web-scraping/stagehandtool","matchLevel":1},"v1.15.18":{"href":"/v1.15.18/ar/tools/web-scraping/stagehandtool","matchLevel":1},"v1.15.17":{"href":"/v1.15.17/ar/tools/web-scraping/stagehandtool","matchLevel":1},"v1.15.16":{"href":"/v1.15.16/ar/tools/web-scraping/stagehandtool","matchLevel":1},"v1.15.15":{"href":"/v1.15.15/ar/tools/web-scraping/stagehandtool","matchLevel":1},"v1.15.14":{"href":"/v1.15.14/ar/tools/web-scraping/stagehandtool","matchLevel":1},"v1.15.13":{"href":"/v1.15.13/ar/tools/web-scraping/stagehandtool","matchLevel":1},"v1.15.12":{"href":"/v1.15.12/ar/tools/web-scraping/stagehandtool","matchLevel":1},"v1.15.11":{"href":"/v1.15.11/ar/tools/web-scraping/stagehandtool","matchLevel":1},"v1.15.10":{"href":"/v1.15.10/ar/tools/web-scraping/stagehandtool","matchLevel":1},"v1.15.9":{"href":"/v1.15.9/ar/tools/web-scraping/stagehandtool","matchLevel":1},"v1.15.8":{"href":"/v1.15.8/ar/tools/web-scraping/stagehandtool","matchLevel":1},"v1.15.7":{"href":"/v1.15.7/ar/tools/web-scraping/stagehandtool","matchLevel":1},"v1.15.6":{"href":"/v1.15.6/ar/tools/web-scraping/stagehandtool","matchLevel":1},"v1.15.5":{"href":"/v1.15.5/ar/tools/web-scraping/stagehandtool","matchLevel":1},"v1.15.4":{"href":"/v1.15.4/ar/tools/web-scraping/stagehandtool","matchLevel":1},"v1.15.3":{"href":"/v1.15.3/ar/tools/web-scraping/stagehandtool","matchLevel":1},"v1.15.2":{"href":"/v1.15.2/ar/tools/web-scraping/stagehandtool","matchLevel":1},"v1.15.1":{"href":"/v1.15.1/ar/tools/web-scraping/stagehandtool","matchLevel":1},"v1.15.0":{"href":"/v1.15.0/ar/tools/web-scraping/stagehandtool","matchLevel":1},"v1.14.7":{"href":"/v1.14.7/ar/tools/web-scraping/stagehandtool","matchLevel":1},"v1.14.6":{"href":"/v1.14.6/ar/tools/web-scraping/stagehandtool","matchLevel":1},"v1.14.5":{"href":"/v1.14.5/ar/tools/web-scraping/stagehandtool","matchLevel":1},"v1.14.4":{"href":"/v1.14.4/ar/tools/web-scraping/stagehandtool","matchLevel":1},"v1.14.3":{"href":"/v1.14.3/ar/tools/web-scraping/stagehandtool","matchLevel":1},"v1.14.2":{"href":"/v1.14.2/ar/tools/web-scraping/stagehandtool","matchLevel":1},"v1.14.1":{"href":"/v1.14.1/ar/tools/web-scraping/stagehandtool","matchLevel":1},"v1.14.0":{"href":"/v1.14.0/ar/tools/web-scraping/stagehandtool","matchLevel":1},"v1.13.0":{"href":"/v1.13.0/ar/tools/web-scraping/stagehandtool","matchLevel":1},"v1.12.2":{"href":"/v1.12.2/ar/tools/web-scraping/stagehandtool","matchLevel":1},"v1.12.1":{"href":"/v1.12.1/ar/tools/web-scraping/stagehandtool","matchLevel":1},"v1.12.0":{"href":"/v1.12.0/ar/tools/web-scraping/stagehandtool","matchLevel":1},"v1.11.1":{"href":"/index","matchLevel":4},"v1.11.0":{"href":"/index","matchLevel":4},"v1.10.1":{"href":"/index","matchLevel":4},"v1.10.0":{"href":"/index","matchLevel":4}},"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":1},"ko":{"href":"/v1.15.22/ko/tools/web-scraping/stagehandtool","matchLevel":1},"ar":{"href":"/v1.15.22/ar/tools/web-scraping/stagehandtool","matchLevel":0}}},"lastModified":"2026-09-16T22:28:06.504Z","originalFileLocation":"v1.15.22/ar/tools/web-scraping/stagehandtool.mdx","locale":"ar"},"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=\"أداة أتمتة الويب التي تدمج Stagehand مع CrewAI للتفاعل مع المتصفح وأتمتة المهام\">\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=\"أداة Stagehand - CrewAI\">\u003cmeta data-mint-head property=\"og:description\" content=\"أداة أتمتة الويب التي تدمج Stagehand مع CrewAI للتفاعل مع المتصفح وأتمتة المهام\">\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/ar/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=\"أداة Stagehand - CrewAI\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"أداة أتمتة الويب التي تدمج Stagehand مع CrewAI للتفاعل مع المتصفح وأتمتة المهام\">\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/ar/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/ar/tools/web-scraping/stagehandtool.md\">\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=\"en\" href=\"https://docs.crewai.com/v1.15.22/en/tools/web-scraping/stagehandtool\">\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=\"ko\" href=\"https://docs.crewai.com/v1.15.22/ko/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/ar/tools/web-scraping/stagehandtool#webpage\",\"url\":\"https://docs.crewai.com/v1.15.22/ar/tools/web-scraping/stagehandtool\",\"name\":\"أداة Stagehand\",\"description\":\"أداة أتمتة الويب التي تدمج Stagehand مع CrewAI للتفاعل مع المتصفح وأتمتة المهام\",\"dateModified\":\"2026-09-16T22:28:06.504Z\",\"isPartOf\":{\"@id\":\"https://docs.crewai.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.crewai.com/v1.15.22/ar/tools/web-scraping/stagehandtool#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.crewai.com/v1.15.22/ar/tools/web-scraping/stagehandtool#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"الأدوات\",\"item\":\"https://docs.crewai.com/v1.15.22/ar/tools/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"استخراج بيانات الويب\",\"item\":\"https://docs.crewai.com/v1.15.22/ar/tools/web-scraping/overview\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"أداة Stagehand\",\"item\":\"https://docs.crewai.com/v1.15.22/ar/tools/web-scraping/stagehandtool\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.crewai.com/v1.15.22/ar/tools/web-scraping/stagehandtool#article\",\"headline\":\"أداة Stagehand\",\"name\":\"أداة Stagehand\",\"description\":\"أداة أتمتة الويب التي تدمج Stagehand مع CrewAI للتفاعل مع المتصفح وأتمتة المهام\",\"url\":\"https://docs.crewai.com/v1.15.22/ar/tools/web-scraping/stagehandtool\",\"mainEntityOfPage\":{\"@id\":\"https://docs.crewai.com/v1.15.22/ar/tools/web-scraping/stagehandtool#webpage\"},\"image\":\"https://docs.crewai.com/images/crew_only_logo.png\",\"dateModified\":\"2026-09-16T22:28:06.504Z\",\"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","pages":[{"title":"pt-BR","href":"/v1.15.22/pt-BR/tools/web-scraping/stagehandtool"}]},{"language":"ko","pages":[{"title":"ko","href":"/v1.15.22/ko/tools/web-scraping/stagehandtool"}]},{"language":"ar","versions":[{"version":"Edge","tag":"Edge","pages":[{"title":"Edge","href":"/edge/ar/tools/web-scraping/stagehandtool"}]},{"version":"v1.15.30","default":true,"tag":"Latest","pages":[{"title":"v1.15.30","href":"/v1.15.30/ar/tools/web-scraping/stagehandtool"}]},{"version":"v1.15.29","pages":[{"title":"v1.15.29","href":"/v1.15.29/ar/tools/web-scraping/stagehandtool"}]},{"version":"v1.15.28","pages":[{"title":"v1.15.28","href":"/v1.15.28/ar/tools/web-scraping/stagehandtool"}]},{"version":"v1.15.27","pages":[{"title":"v1.15.27","href":"/v1.15.27/ar/tools/web-scraping/stagehandtool"}]},{"version":"v1.15.26","pages":[{"title":"v1.15.26","href":"/v1.15.26/ar/tools/web-scraping/stagehandtool"}]},{"version":"v1.15.25","pages":[{"title":"v1.15.25","href":"/v1.15.25/ar/tools/web-scraping/stagehandtool"}]},{"version":"v1.15.24","pages":[{"title":"v1.15.24","href":"/v1.15.24/ar/tools/web-scraping/stagehandtool"}]},{"version":"v1.15.23","pages":[{"title":"v1.15.23","href":"/v1.15.23/ar/tools/web-scraping/stagehandtool"}]},{"version":"v1.15.22","tabs":[{"tab":"الرئيسية","icon":"house","pages":[{"title":"الرئيسية","href":"/v1.15.22/ar"}]},{"tab":"التقنية التوثيق","icon":"book-open","groups":[{"group":"البدء","pages":[{"title":"مقدمة","icon":"handshake","mode":"wide","href":"/v1.15.22/ar/introduction"},{"title":"البناء باستخدام الذكاء الاصطناعي","icon":"robot","mode":"wide","href":"/v1.15.22/ar/guides/coding-tools/build-with-ai"},{"title":"Skills","icon":"wand-magic-sparkles","mode":"wide","href":"/v1.15.22/ar/skills"},{"title":"التثبيت","icon":"wrench","mode":"wide","href":"/v1.15.22/ar/installation"},{"title":"البدء السريع","icon":"rocket","mode":"wide","href":"/v1.15.22/ar/quickstart"}]},{"group":"الأدلّة","pages":[{"group":"الاستراتيجية","icon":"compass","pages":[{"title":"تقييم حالات الاستخدام لـ CrewAI","icon":"scale-balanced","mode":"wide","href":"/v1.15.22/ar/guides/concepts/evaluating-use-cases"}]},{"group":"الوكلاء","icon":"user","pages":[{"title":"صياغة Agents فعّالة","icon":"robot","mode":"wide","href":"/v1.15.22/ar/guides/agents/crafting-effective-agents"}]},{"group":"الطواقم","icon":"users","pages":[{"title":"ابنِ أول Crew","icon":"users-gear","mode":"wide","href":"/v1.15.22/ar/guides/crews/first-crew"}]},{"group":"التدفقات","icon":"code-branch","pages":[{"title":"ابنِ أول Flow لك","icon":"diagram-project","mode":"wide","href":"/v1.15.22/ar/guides/flows/first-flow"},{"title":"إتقان إدارة حالة Flow","icon":"diagram-project","mode":"wide","href":"/v1.15.22/ar/guides/flows/mastering-flow-state"},{"title":"تدفقات المحادثة","icon":"comments","mode":"wide","href":"/v1.15.22/ar/guides/flows/conversational-flows"},{"title":"الانتقال من inputs.id إلى restore_from_state_id","icon":"arrow-right-arrow-left","href":"/v1.15.22/ar/guides/flows/inputs-id-deprecation"}]},{"group":"Frontend","icon":"browser","pages":[{"title":"النظرة العامة على الواجهة الأمامية","icon":"browser","mode":"wide","href":"/v1.15.22/ar/guides/frontend/overview"},{"title":"القنوات","icon":"messages","mode":"wide","href":"/v1.15.22/ar/guides/frontend/channels"}]},{"group":"الأدوات","icon":"wrench","pages":[{"title":"نشر أدوات مخصصة","icon":"box-open","mode":"wide","href":"/v1.15.22/ar/guides/tools/publish-custom-tools"}]},{"group":"أدوات البرمجة","icon":"terminal","pages":[{"title":"أدوات البرمجة","icon":"terminal","mode":"wide","href":"/v1.15.22/ar/guides/coding-tools/agents-md"}]},{"group":"متقدّم","icon":"gear","pages":[{"title":"تخصيص المطالبات","icon":"message-pen","mode":"wide","href":"/v1.15.22/ar/guides/advanced/customizing-prompts"},{"title":"البصمات الرقمية","icon":"fingerprint","mode":"wide","href":"/v1.15.22/ar/guides/advanced/fingerprinting"}]},{"group":"الترحيل","icon":"shuffle","pages":[{"title":"الانتقال من LangGraph إلى CrewAI: دليل عملي للمهندسين","icon":"switch","mode":"wide","href":"/v1.15.22/ar/guides/migration/migrating-from-langgraph"}]}]},{"group":"المفاهيم الأساسية","pages":[{"title":"الوكلاء","icon":"robot","mode":"wide","href":"/v1.15.22/ar/concepts/agents"},{"title":"قدرات الوكيل","icon":"puzzle-piece","mode":"wide","href":"/v1.15.22/ar/concepts/agent-capabilities"},{"title":"المهام","icon":"list-check","mode":"wide","href":"/v1.15.22/ar/concepts/tasks"},{"title":"الأطقم","icon":"people-group","mode":"wide","href":"/v1.15.22/ar/concepts/crews"},{"title":"التدفقات","icon":"arrow-progress","mode":"wide","href":"/v1.15.22/ar/concepts/flows"},{"title":"بنية الإنتاج","icon":"server","mode":"wide","href":"/v1.15.22/ar/concepts/production-architecture"},{"title":"المعرفة","icon":"book","mode":"wide","href":"/v1.15.22/ar/concepts/knowledge"},{"title":"المهارات","icon":"bolt","mode":"wide","href":"/v1.15.22/ar/concepts/skills"},{"title":"نماذج اللغة الكبيرة (LLMs)","icon":"microchip-ai","mode":"wide","href":"/v1.15.22/ar/concepts/llms"},{"title":"الملفات","icon":"file-image","href":"/v1.15.22/ar/concepts/files"},{"title":"العمليات","icon":"bars-staggered","mode":"wide","href":"/v1.15.22/ar/concepts/processes"},{"title":"التعاون","icon":"screen-users","mode":"wide","href":"/v1.15.22/ar/concepts/collaboration"},{"title":"التدريب","icon":"dumbbell","mode":"wide","href":"/v1.15.22/ar/concepts/training"},{"title":"الذاكرة","icon":"database","mode":"wide","href":"/v1.15.22/ar/concepts/memory"},{"title":"الاستدلال","icon":"brain","mode":"wide","href":"/v1.15.22/ar/concepts/reasoning"},{"title":"التخطيط","icon":"ruler-combined","mode":"wide","href":"/v1.15.22/ar/concepts/planning"},{"title":"الاختبار","icon":"vial","mode":"wide","href":"/v1.15.22/ar/concepts/testing"},{"title":"واجهة سطر الأوامر","icon":"terminal","mode":"wide","href":"/v1.15.22/ar/concepts/cli"},{"title":"الأدوات","icon":"screwdriver-wrench","mode":"wide","href":"/v1.15.22/ar/concepts/tools"},{"title":"مستمعو الأحداث","icon":"spinner","mode":"wide","href":"/v1.15.22/ar/concepts/event-listener"},{"title":"Checkpointing","icon":"floppy-disk","mode":"wide","href":"/v1.15.22/ar/concepts/checkpointing"}]},{"group":"تكامل MCP","pages":[{"title":"خوادم MCP كأدوات في CrewAI","icon":"plug","mode":"wide","href":"/v1.15.22/ar/mcp/overview"},{"title":"تكامل MCP DSL","icon":"code","mode":"wide","href":"/v1.15.22/ar/mcp/dsl-integration"},{"title":"نقل Stdio","icon":"server","mode":"wide","href":"/v1.15.22/ar/mcp/stdio"},{"title":"نقل SSE","icon":"wifi","mode":"wide","href":"/v1.15.22/ar/mcp/sse"},{"title":"نقل Streamable HTTP","icon":"globe","mode":"wide","href":"/v1.15.22/ar/mcp/streamable-http"},{"title":"الاتصال بخوادم MCP متعددة","icon":"layer-group","mode":"wide","href":"/v1.15.22/ar/mcp/multiple-servers"},{"title":"اعتبارات أمان MCP","icon":"lock","mode":"wide","href":"/v1.15.22/ar/mcp/security"}]},{"group":"الأدوات","pages":[{"title":"نظرة عامة على الأدوات","icon":"toolbox","mode":"wide","href":"/v1.15.22/ar/tools/overview"},{"group":"الملفات والمستندات","icon":"folder-open","pages":[{"title":"نظرة عامة","icon":"face-smile","mode":"wide","href":"/v1.15.22/ar/tools/file-document/overview"},{"title":"قراءة الملفات","icon":"folders","mode":"wide","href":"/v1.15.22/ar/tools/file-document/filereadtool"},{"title":"كتابة الملفات","icon":"file-pen","mode":"wide","href":"/v1.15.22/ar/tools/file-document/filewritetool"},{"title":"بحث RAG في PDF","icon":"file-pdf","mode":"wide","href":"/v1.15.22/ar/tools/file-document/pdfsearchtool"},{"title":"بحث RAG في DOCX","icon":"file-word","mode":"wide","href":"/v1.15.22/ar/tools/file-document/docxsearchtool"},{"title":"بحث RAG في MDX","icon":"markdown","mode":"wide","href":"/v1.15.22/ar/tools/file-document/mdxsearchtool"},{"title":"بحث RAG في XML","icon":"file-xml","mode":"wide","href":"/v1.15.22/ar/tools/file-document/xmlsearchtool"},{"title":"بحث RAG في TXT","icon":"file-lines","mode":"wide","href":"/v1.15.22/ar/tools/file-document/txtsearchtool"},{"title":"بحث RAG في JSON","icon":"file-code","mode":"wide","href":"/v1.15.22/ar/tools/file-document/jsonsearchtool"},{"title":"بحث RAG في CSV","icon":"file-csv","mode":"wide","href":"/v1.15.22/ar/tools/file-document/csvsearchtool"},{"title":"بحث RAG في المجلدات","icon":"address-book","mode":"wide","href":"/v1.15.22/ar/tools/file-document/directorysearchtool"},{"title":"قراءة المجلدات","icon":"folder-tree","mode":"wide","href":"/v1.15.22/ar/tools/file-document/directoryreadtool"},{"title":"أداة OCR","icon":"image","mode":"wide","href":"/v1.15.22/ar/tools/file-document/ocrtool"},{"title":"أداة كتابة نص PDF","icon":"file-pdf","mode":"wide","href":"/v1.15.22/ar/tools/file-document/pdf-text-writing-tool"}]},{"group":"استخراج بيانات الويب","icon":"globe","pages":[{"title":"نظرة عامة","icon":"face-smile","mode":"wide","href":"/v1.15.22/ar/tools/web-scraping/overview"},{"title":"استخراج الموقع","icon":"magnifying-glass-location","mode":"wide","href":"/v1.15.22/ar/tools/web-scraping/scrapewebsitetool"},{"title":"أداة استخراج عنصر من موقع","icon":"code","mode":"wide","href":"/v1.15.22/ar/tools/web-scraping/scrapeelementfromwebsitetool"},{"title":"أداة استخراج مواقع Scrapfly","icon":"spider","mode":"wide","href":"/v1.15.22/ar/tools/web-scraping/scrapflyscrapetool"},{"title":"أداة استخراج Selenium","icon":"clipboard-user","mode":"wide","href":"/v1.15.22/ar/tools/web-scraping/seleniumscrapingtool"},{"title":"أداة استخراج Scrapegraph","icon":"chart-area","mode":"wide","href":"/v1.15.22/ar/tools/web-scraping/scrapegraphscrapetool"},{"title":"أداة استخراج Spider","icon":"spider-web","mode":"wide","href":"/v1.15.22/ar/tools/web-scraping/spidertool"},{"title":"أداة تحميل Browserbase","icon":"browser","mode":"wide","href":"/v1.15.22/ar/tools/web-scraping/browserbaseloadtool"},{"title":"أداة تحميل Hyperbrowser","description":"أداة `HyperbrowserLoadTool` تتيح استخراج البيانات من الويب والزحف باستخدام Hyperbrowser.","icon":"globe","mode":"wide","href":"/v1.15.22/ar/tools/web-scraping/hyperbrowserloadtool"},{"title":"أداة Stagehand","icon":"hand","mode":"wide","href":"/v1.15.22/ar/tools/web-scraping/stagehandtool"},{"title":"زحف المواقع باستخدام Firecrawl","description":"أداة `FirecrawlCrawlWebsiteTool` مصممة لزحف المواقع وتحويلها إلى markdown نظيف أو بيانات منظمة.","icon":"fire-flame","mode":"wide","href":"/v1.15.22/ar/tools/web-scraping/firecrawlcrawlwebsitetool"},{"title":"استخراج المواقع باستخدام Firecrawl","icon":"fire-flame","mode":"wide","href":"/v1.15.22/ar/tools/web-scraping/firecrawlscrapewebsitetool"},{"title":"أدوات استخراج Oxylabs","icon":"globe","mode":"wide","href":"/v1.15.22/ar/tools/web-scraping/oxylabsscraperstool"},{"title":"أدوات Bright Data","icon":"spider","mode":"wide","href":"/v1.15.22/ar/tools/web-scraping/brightdata-tools"}]},{"group":"البحث والاستكشاف","icon":"magnifying-glass","pages":[{"title":"نظرة عامة","icon":"face-smile","mode":"wide","href":"/v1.15.22/ar/tools/search-research/overview"},{"title":"بحث Google عبر Serper","icon":"google","mode":"wide","href":"/v1.15.22/ar/tools/search-research/serperdevtool"},{"title":"أدوات بحث Brave","icon":"searchengin","mode":"wide","href":"/v1.15.22/ar/tools/search-research/bravesearchtool"},{"title":"أداة بحث Exa","icon":"magnifying-glass","mode":"wide","href":"/v1.15.22/ar/tools/search-research/exasearchtool"},{"title":"أداة بحث Linkup","icon":"link","mode":"wide","href":"/v1.15.22/ar/tools/search-research/linkupsearchtool"},{"title":"بحث Github","icon":"github","mode":"wide","href":"/v1.15.22/ar/tools/search-research/githubsearchtool"},{"title":"البحث في المواقع باستخدام RAG","icon":"globe-stand","mode":"wide","href":"/v1.15.22/ar/tools/search-research/websitesearchtool"},{"title":"البحث في توثيق الكود باستخدام RAG","icon":"code","mode":"wide","href":"/v1.15.22/ar/tools/search-research/codedocssearchtool"},{"title":"البحث في قنوات YouTube باستخدام RAG","icon":"youtube","mode":"wide","href":"/v1.15.22/ar/tools/search-research/youtubechannelsearchtool"},{"title":"البحث في فيديوهات YouTube باستخدام RAG","icon":"youtube","mode":"wide","href":"/v1.15.22/ar/tools/search-research/youtubevideosearchtool"},{"title":"أداة بحث Tavily","icon":"magnifying-glass","mode":"wide","href":"/v1.15.22/ar/tools/search-research/tavilysearchtool"},{"title":"أداة استخراج Tavily","icon":"square-poll-horizontal","mode":"wide","href":"/v1.15.22/ar/tools/search-research/tavilyextractortool"},{"title":"Tavily Research Tool","icon":"flask","mode":"wide","href":"/v1.15.22/ar/tools/search-research/tavilyresearchtool"},{"title":"أداة أوراق arXiv","icon":"box-archive","mode":"wide","href":"/v1.15.22/ar/tools/search-research/arxivpapertool"},{"title":"أداة بحث Google عبر SerpApi","icon":"google","mode":"wide","href":"/v1.15.22/ar/tools/search-research/serpapi-googlesearchtool"},{"title":"أداة تسوق Google عبر SerpApi","icon":"cart-shopping","mode":"wide","href":"/v1.15.22/ar/tools/search-research/serpapi-googleshoppingtool"},{"title":"أداة استعلام Databricks SQL","icon":"trowel-bricks","mode":"wide","href":"/v1.15.22/ar/tools/search-research/databricks-query-tool"}]},{"group":"قواعد البيانات","icon":"database","pages":[{"title":"نظرة عامة","icon":"face-smile","mode":"wide","href":"/v1.15.22/ar/tools/database-data/overview"},{"title":"بحث RAG في MySQL","icon":"database","mode":"wide","href":"/v1.15.22/ar/tools/database-data/mysqltool"},{"title":"بحث RAG في PostgreSQL","icon":"elephant","mode":"wide","href":"/v1.15.22/ar/tools/database-data/pgsearchtool"},{"title":"أداة بحث Snowflake","icon":"snowflake","mode":"wide","href":"/v1.15.22/ar/tools/database-data/snowflakesearchtool"},{"title":"أداة NL2SQL","icon":"language","mode":"wide","href":"/v1.15.22/ar/tools/database-data/nl2sqltool"},{"title":"أداة البحث المتجهي Qdrant","icon":"vector-square","mode":"wide","href":"/v1.15.22/ar/tools/database-data/qdrantvectorsearchtool"},{"title":"بحث متجهي Weaviate","icon":"network-wired","mode":"wide","href":"/v1.15.22/ar/tools/database-data/weaviatevectorsearchtool"},{"title":"أداة البحث المتجهي في MongoDB","icon":"leaf","mode":"wide","href":"/v1.15.22/ar/tools/database-data/mongodbvectorsearchtool"},{"title":"أداة بحث SingleStore","icon":"circle","mode":"wide","href":"/v1.15.22/ar/tools/database-data/singlestoresearchtool"}]},{"group":"الذكاء الاصطناعي والتعلّم الآلي","icon":"brain","pages":[{"title":"نظرة عامة","icon":"face-smile","mode":"wide","href":"/v1.15.22/ar/tools/ai-ml/overview"},{"title":"أداة DALL-E","icon":"image","mode":"wide","href":"/v1.15.22/ar/tools/ai-ml/dalletool"},{"title":"أداة الرؤية","icon":"eye","mode":"wide","href":"/v1.15.22/ar/tools/ai-ml/visiontool"},{"title":"أداة AI Mind","icon":"brain","mode":"wide","href":"/v1.15.22/ar/tools/ai-ml/aimindtool"},{"title":"أداة LlamaIndex","icon":"address-book","mode":"wide","href":"/v1.15.22/ar/tools/ai-ml/llamaindextool"},{"title":"أداة LangChain","icon":"link","mode":"wide","href":"/v1.15.22/ar/tools/ai-ml/langchaintool"},{"title":"أداة RAG","icon":"vector-square","mode":"wide","href":"/v1.15.22/ar/tools/ai-ml/ragtool"},{"title":"مفسّر الكود","icon":"code-simple","mode":"wide","href":"/v1.15.22/ar/tools/ai-ml/codeinterpretertool"}]},{"group":"التخزين السحابي","icon":"cloud","pages":[{"title":"نظرة عامة","icon":"face-smile","mode":"wide","href":"/v1.15.22/ar/tools/cloud-storage/overview"},{"title":"أداة قراءة S3","icon":"aws","mode":"wide","href":"/v1.15.22/ar/tools/cloud-storage/s3readertool"},{"title":"أداة كتابة S3","icon":"aws","mode":"wide","href":"/v1.15.22/ar/tools/cloud-storage/s3writertool"},{"title":"مسترجع قاعدة معرفة Bedrock","icon":"aws","mode":"wide","href":"/v1.15.22/ar/tools/cloud-storage/bedrockkbretriever"}]},{"group":"Integrations","icon":"plug","pages":[{"title":"نظرة عامة","icon":"face-smile","mode":"wide","href":"/v1.15.22/ar/tools/integration/overview"},{"title":"أداة استدعاء وكيل Bedrock","icon":"aws","mode":"wide","href":"/v1.15.22/ar/tools/integration/bedrockinvokeagenttool"},{"title":"أداة تشغيل أتمتة CrewAI","icon":"robot","href":"/v1.15.22/ar/tools/integration/crewaiautomationtool"}]},{"group":"الأتمتة","icon":"bolt","pages":[{"title":"نظرة عامة","icon":"face-smile","mode":"wide","href":"/v1.15.22/ar/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/ar/tools/automation/apifyactorstool"},{"title":"أداة Composio","icon":"gear-code","mode":"wide","href":"/v1.15.22/ar/tools/automation/composiotool"},{"title":"أداة MultiOn","icon":"globe","mode":"wide","href":"/v1.15.22/ar/tools/automation/multiontool"},{"title":"أداة إجراءات Zapier","icon":"bolt","mode":"wide","href":"/v1.15.22/ar/tools/automation/zapieractionstool"}]}]},{"group":"Observability","pages":[{"title":"تتبع CrewAI","icon":"magnifying-glass-chart","mode":"wide","href":"/v1.15.22/ar/observability/tracing"},{"title":"نظرة عامة","icon":"face-smile","mode":"wide","href":"/v1.15.22/ar/observability/overview"},{"title":"Arize Phoenix","icon":"magnifying-glass-chart","mode":"wide","href":"/v1.15.22/ar/observability/arize-phoenix"},{"title":"Braintrust","icon":"magnifying-glass-chart","mode":"wide","href":"/v1.15.22/ar/observability/braintrust"},{"title":"تكامل Datadog","icon":"dog","mode":"wide","href":"/v1.15.22/ar/observability/datadog"},{"title":"Galileo","icon":"telescope","mode":"wide","href":"/v1.15.22/ar/observability/galileo"},{"title":"تكامل LangDB","icon":"database","mode":"wide","href":"/v1.15.22/ar/observability/langdb"},{"title":"تكامل Langfuse","icon":"vials","mode":"wide","href":"/v1.15.22/ar/observability/langfuse"},{"title":"تكامل Langtrace","icon":"chart-line","mode":"wide","href":"/v1.15.22/ar/observability/langtrace"},{"title":"تكامل Maxim","icon":"infinity","mode":"wide","href":"/v1.15.22/ar/observability/maxim"},{"title":"تكامل MLflow","icon":"bars-staggered","mode":"wide","href":"/v1.15.22/ar/observability/mlflow"},{"title":"تكامل Neatlogs","icon":"magnifying-glass-chart","mode":"wide","href":"/v1.15.22/ar/observability/neatlogs"},{"title":"تكامل OpenLIT","icon":"magnifying-glass-chart","mode":"wide","href":"/v1.15.22/ar/observability/openlit"},{"title":"تكامل Opik","icon":"meteor","mode":"wide","href":"/v1.15.22/ar/observability/opik"},{"title":"تقييم Patronus AI","icon":"shield-check","mode":"wide","href":"/v1.15.22/ar/observability/patronus-evaluation"},{"title":"تكامل Portkey","icon":"key","mode":"wide","href":"/v1.15.22/ar/observability/portkey"},{"title":"تكامل Weave","icon":"radar","mode":"wide","href":"/v1.15.22/ar/observability/weave"}]},{"group":"التعلّم","pages":[{"title":"نظرة عامة","icon":"face-smile","mode":"wide","href":"/v1.15.22/ar/learn/overview"},{"title":"دليل اختيار LLM الاستراتيجي","icon":"brain-circuit","mode":"wide","href":"/v1.15.22/ar/learn/llm-selection-guide"},{"title":"المهام الشرطية","icon":"diagram-subtask","mode":"wide","href":"/v1.15.22/ar/learn/conditional-tasks"},{"title":"Agents البرمجة","icon":"rectangle-code","mode":"wide","href":"/v1.15.22/ar/learn/coding-agents"},{"title":"إنشاء أدوات مخصصة","icon":"hammer","mode":"wide","href":"/v1.15.22/ar/learn/create-custom-tools"},{"title":"تنفيذ LLM مخصص","icon":"code","mode":"wide","href":"/v1.15.22/ar/learn/custom-llm"},{"title":"Agent مدير مخصص","icon":"user-shield","mode":"wide","href":"/v1.15.22/ar/learn/custom-manager-agent"},{"title":"تخصيص الـ Agents","icon":"user-pen","mode":"wide","href":"/v1.15.22/ar/learn/customizing-agents"},{"title":"إنشاء الصور باستخدام DALL-E","icon":"image","mode":"wide","href":"/v1.15.22/ar/learn/dalle-image-generation"},{"title":"فرض مخرجات الأداة كنتيجة","icon":"wrench-simple","mode":"wide","href":"/v1.15.22/ar/learn/force-tool-output-as-result"},{"title":"العملية الهرمية","icon":"sitemap","mode":"wide","href":"/v1.15.22/ar/learn/hierarchical-process"},{"title":"الإدخال البشري أثناء التنفيذ","icon":"user-plus","mode":"wide","href":"/v1.15.22/ar/learn/human-input-on-execution"},{"title":"سير عمل التدخل البشري (HITL)","icon":"user-check","mode":"wide","href":"/v1.15.22/ar/learn/human-in-the-loop"},{"title":"التغذية الراجعة البشرية في Flows","icon":"user-check","mode":"wide","href":"/v1.15.22/ar/learn/human-feedback-in-flows"},{"title":"تشغيل الطاقم بشكل غير متزامن","icon":"rocket-launch","mode":"wide","href":"/v1.15.22/ar/learn/kickoff-async"},{"title":"تشغيل الطاقم لكل عنصر","icon":"at","mode":"wide","href":"/v1.15.22/ar/learn/kickoff-for-each"},{"title":"عقد بث وقت التشغيل","icon":"tower-broadcast","mode":"wide","href":"/v1.15.22/ar/learn/streaming-runtime-contract"},{"title":"الاتصال بأي LLM","icon":"brain-circuit","mode":"wide","href":"/v1.15.22/ar/learn/llm-connections"},{"title":"استخدام الوكلاء متعددي الوسائط","icon":"video","mode":"wide","href":"/v1.15.22/ar/learn/multimodal-agents"},{"title":"إعادة تشغيل المهام من آخر تنفيذ للطاقم","icon":"arrow-right","mode":"wide","href":"/v1.15.22/ar/learn/replay-tasks-from-latest-crew-kickoff"},{"title":"العمليات التسلسلية","icon":"forward","mode":"wide","href":"/v1.15.22/ar/learn/sequential-process"},{"title":"استخدام التعليقات التوضيحية في crew.py","icon":"at","mode":"wide","href":"/v1.15.22/ar/learn/using-annotations"},{"title":"نظرة عامة على خطافات التنفيذ","mode":"wide","href":"/v1.15.22/ar/learn/execution-hooks"},{"title":"خطافات استدعاء LLM","mode":"wide","href":"/v1.15.22/ar/learn/llm-hooks"},{"title":"خطافات استدعاء الأدوات","mode":"wide","href":"/v1.15.22/ar/learn/tool-hooks"},{"title":"خطافات حدود التنفيذ","mode":"wide","href":"/v1.15.22/ar/learn/execution-boundary-hooks"}]},{"group":"Telemetry","pages":[{"title":"القياس عن بُعد","icon":"signal-stream","mode":"wide","href":"/v1.15.22/ar/telemetry"}]}]},{"tab":"المؤسسات","icon":"briefcase","href":"https://docs-platform.crewai.com/platform/ar/introduction"},{"tab":"API المرجع","icon":"magnifying-glass","pages":[{"title":"API المرجع","href":"/v1.15.22/ar/api-reference/introduction"}]},{"tab":"أمثلة","icon":"code","pages":[{"title":"أمثلة","href":"/v1.15.22/ar/examples/example"}]},{"tab":"التغييرات السجلات","icon":"clock","pages":[{"title":"التغييرات السجلات","href":"/v1.15.22/ar/changelog"}]}]},{"version":"v1.15.21","pages":[{"title":"v1.15.21","href":"/v1.15.21/ar/tools/web-scraping/stagehandtool"}]},{"version":"v1.15.20","pages":[{"title":"v1.15.20","href":"/v1.15.20/ar/tools/web-scraping/stagehandtool"}]},{"version":"v1.15.19","pages":[{"title":"v1.15.19","href":"/v1.15.19/ar/tools/web-scraping/stagehandtool"}]},{"version":"v1.15.18","pages":[{"title":"v1.15.18","href":"/v1.15.18/ar/tools/web-scraping/stagehandtool"}]},{"version":"v1.15.17","pages":[{"title":"v1.15.17","href":"/v1.15.17/ar/tools/web-scraping/stagehandtool"}]},{"version":"v1.15.16","pages":[{"title":"v1.15.16","href":"/v1.15.16/ar/tools/web-scraping/stagehandtool"}]},{"version":"v1.15.15","pages":[{"title":"v1.15.15","href":"/v1.15.15/ar/tools/web-scraping/stagehandtool"}]},{"version":"v1.15.14","pages":[{"title":"v1.15.14","href":"/v1.15.14/ar/tools/web-scraping/stagehandtool"}]},{"version":"v1.15.13","pages":[{"title":"v1.15.13","href":"/v1.15.13/ar/tools/web-scraping/stagehandtool"}]},{"version":"v1.15.12","pages":[{"title":"v1.15.12","href":"/v1.15.12/ar/tools/web-scraping/stagehandtool"}]},{"version":"v1.15.11","pages":[{"title":"v1.15.11","href":"/v1.15.11/ar/tools/web-scraping/stagehandtool"}]},{"version":"v1.15.10","pages":[{"title":"v1.15.10","href":"/v1.15.10/ar/tools/web-scraping/stagehandtool"}]},{"version":"v1.15.9","pages":[{"title":"v1.15.9","href":"/v1.15.9/ar/tools/web-scraping/stagehandtool"}]},{"version":"v1.15.8","pages":[{"title":"v1.15.8","href":"/v1.15.8/ar/tools/web-scraping/stagehandtool"}]},{"version":"v1.15.7","pages":[{"title":"v1.15.7","href":"/v1.15.7/ar/tools/web-scraping/stagehandtool"}]},{"version":"v1.15.6","pages":[{"title":"v1.15.6","href":"/v1.15.6/ar/tools/web-scraping/stagehandtool"}]},{"version":"v1.15.5","pages":[{"title":"v1.15.5","href":"/v1.15.5/ar/tools/web-scraping/stagehandtool"}]},{"version":"v1.15.4","pages":[{"title":"v1.15.4","href":"/v1.15.4/ar/tools/web-scraping/stagehandtool"}]},{"version":"v1.15.3","pages":[{"title":"v1.15.3","href":"/v1.15.3/ar/tools/web-scraping/stagehandtool"}]},{"version":"v1.15.2","pages":[{"title":"v1.15.2","href":"/v1.15.2/ar/tools/web-scraping/stagehandtool"}]},{"version":"v1.15.1","pages":[{"title":"v1.15.1","href":"/v1.15.1/ar/tools/web-scraping/stagehandtool"}]},{"version":"v1.15.0","pages":[{"title":"v1.15.0","href":"/v1.15.0/ar/tools/web-scraping/stagehandtool"}]},{"version":"v1.14.7","pages":[{"title":"v1.14.7","href":"/v1.14.7/ar/tools/web-scraping/stagehandtool"}]},{"version":"v1.14.6","pages":[{"title":"v1.14.6","href":"/v1.14.6/ar/tools/web-scraping/stagehandtool"}]},{"version":"v1.14.5","pages":[{"title":"v1.14.5","href":"/v1.14.5/ar/tools/web-scraping/stagehandtool"}]},{"version":"v1.14.4","pages":[{"title":"v1.14.4","href":"/v1.14.4/ar/tools/web-scraping/stagehandtool"}]},{"version":"v1.14.3","pages":[{"title":"v1.14.3","href":"/v1.14.3/ar/tools/web-scraping/stagehandtool"}]},{"version":"v1.14.2","pages":[{"title":"v1.14.2","href":"/v1.14.2/ar/tools/web-scraping/stagehandtool"}]},{"version":"v1.14.1","pages":[{"title":"v1.14.1","href":"/v1.14.1/ar/tools/web-scraping/stagehandtool"}]},{"version":"v1.14.0","pages":[{"title":"v1.14.0","href":"/v1.14.0/ar/tools/web-scraping/stagehandtool"}]},{"version":"v1.13.0","pages":[{"title":"v1.13.0","href":"/v1.13.0/ar/tools/web-scraping/stagehandtool"}]},{"version":"v1.12.2","pages":[{"title":"v1.12.2","href":"/v1.12.2/ar/tools/web-scraping/stagehandtool"}]},{"version":"v1.12.1","pages":[{"title":"v1.12.1","href":"/v1.12.1/ar/tools/web-scraping/stagehandtool"}]},{"version":"v1.12.0","pages":[{"title":"v1.12.0","href":"/v1.12.0/ar/tools/web-scraping/stagehandtool"}]}],"global":{"anchors":[{"anchor":"الموقع","icon":"globe","href":"https://crewai.com"},{"anchor":"المنتدى","icon":"discourse","href":"https://community.crewai.com"},{"anchor":"المدوّنة","icon":"newspaper","href":"https://blog.crewai.com"},{"anchor":"CrewGPT","icon":"robot","href":"https://chatgpt.com/g/g-qqTuUWsBY-crewai-assistant"}]}}]},"title":"أداة Stagehand - CrewAI","buildId":"dpl_DFJrtvUi8HS5F9nkooKuDJsuD5BM","deploymentId":"dpl_DFJrtvUi8HS5F9nkooKuDJsuD5BM","dynamics":[],"chunks":[]}