import asyncio
import httpx
async def main():
base_url = "http://127.0.0.1:65114"
async with httpx.AsyncClient() as client:
resp = await client.post(
f"{base_url}/messages",
json={
"command": "call_tool",
"name": "fetch_url",
"arguments": {"url": "https://example.com"},
},
)
resp.raise_for_status()
print("Tool response:", resp.json())
asyncio.run(main())