Additional Toolkits
Web Tools
Expand shortened URLs and return their final destinations with WebTools.
Was this page helpful?
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Expand shortened URLs and return their final destinations with WebTools.
from agno.agent import Agent
from agno.tools.webtools import WebTools
agent = Agent(
instructions=[
"You are a web utility assistant that helps with URL operations",
"Expand shortened URLs to show their final destinations",
"Help users understand where links lead before visiting them",
"Provide clear information about URL expansions and redirects",
],
tools=[WebTools()],
)
agent.print_response("Expand this shortened URL: https://tinyurl.com/57bmajz4", stream=True)
| Parameter | Type | Default | Description |
|---|---|---|---|
retries | int | 3 | Number of retry attempts for URL operations. |
enable_expand_url | bool | True | Enable URL expansion functionality. |
all | bool | False | Enable all functions. |
| Function | Description |
|---|---|
expand_url | Expand shortened URLs to their final destination. |
Was this page helpful?