# If the agent wants to remember the current webpage, it can use the `current_webpage` tool
await tools_by_name['current_webpage'].arun({})
'https://web.archive.org/web/20230428133211/https://cnn.com/world'
Use within an Agent#
Several of the browser tools are StructuredTool’s, meaning they expect multiple arguments. These aren’t compatible (out of the box) with agents older than the STRUCTURED_CHAT_ZERO_SHOT_REACT_DESCRIPTION
from langchain.agents import initialize_agent, AgentType
from langchain.chat_models import ChatAnthropic
llm = ChatAnthropic(temperature=0) # or any other LLM, e.g., ChatOpenAI(), OpenAI()
agent_chain = initialize_agent(tools, llm, agent=AgentType.STRUCTURED_CHAT_ZERO_SHOT_REACT_DESCRIPTION, verbose=True)
result = await agent_chain.arun("What are the headers on langchain.com?")
print(result)
> Entering new AgentExecutor chain...
 Thought: I need to navigate to langchain.com to see the headers
Action: 
```
{
  "action": "navigate_browser",
  "action_input": "https://langchain.com/"
}
```
Observation: Navigating to https://langchain.com/ returned status code 200
Thought: Action:
```
{
  "action": "get_elements",
  "action_input": {
    "selector": "h1, h2, h3, h4, h5, h6"
  } 
}
```
Observation: []
Thought: Thought: The page has loaded, I can now extract the headers
Action:
```
{
  "action": "get_elements",
  "action_input": {
rtdocs_stable/api.python.langchain.com/en/stable/modules/agents/toolkits/examples/playwright.html