You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 0b7fb52
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: src/fetch/README.md
+20Lines changed: 20 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,6 +24,7 @@ The markdown of an HTML page opens with the page's title as a `#` heading (its `
24
24
-`max_length` (integer, optional): Maximum number of characters to return (default: 5000)
25
25
-`start_index` (integer, optional): Start content from this character index (default: 0)
26
26
-`raw` (boolean, optional): Get raw content without markdown conversion (default: false)
27
+
-`timeout_ms` (integer, optional): HTTP request timeout for this call, in milliseconds, from 100 to 600000 (default: the server's timeout, 30000 unless configured; see [Customization - Timeout](#customization---timeout))
27
28
- Annotations: `readOnlyHint: true`, `destructiveHint: false`, `idempotentHint: true`, `openWorldHint: true` (it only reads, and it reaches arbitrary hosts on the internet)
# subscriptions=False: the tool and prompt lists never change and there are
687
699
# no resources to watch, so `subscriptions/listen` is not served and the
@@ -735,6 +747,15 @@ async def fetch(
735
747
strict=True,
736
748
),
737
749
] =False,
750
+
timeout_ms: Annotated[
751
+
int,
752
+
Field(
753
+
description="How long to wait, in milliseconds, to connect to the server and for each read of its response before giving up. Raise it for a slow server or a large download; lower it to fail fast.",
# #4448: the server-wide timeout is the advertised default.
191
+
"timeout_ms": {
192
+
"default": 30000,
193
+
"description": "How long to wait, in milliseconds, to connect to the server and for each read of its response before giving up. Raise it for a slow server or a large download; lower it to fail fast.",
0 commit comments