DAIMONMCP sandbox, kernel-isolated
by Linux nsjail
Python SDK

Web

Fetch web pages through the sandbox's controlled HTTP client.

async web.fetch(url, *, timeout_ms=None, max_bytes=None, follow_same_host_redirects=None) -> WebFetchResult
ParameterTypeDefaultDescription
urlstrURL to fetch.
timeout_msint | NoneNoneRequest timeout in milliseconds.
max_bytesint | NoneNoneMaximum response body size.
follow_same_host_redirectsbool | NoneNoneFollow same-host redirects.
page = await client.web.fetch("https://example.com")
print(page.status_code)
print(page.content[:200])