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 f6e5b93
Browse filesBrowse the repository at this point in the historyBrowse files
refactor(tools): derive tool inputSchemas from arktype types
Hand-written JSON Schema for web_fetch, web_search and delete_file
duplicated the arktype arg types and had already drifted (no minLength,
documented timeout intent living outside the schema). The types are now
the single source via toJsonSchema with descriptions carried as arktype
metadata; served shape keeps its exact key set (dialect: null) and
generated-vs-hand diffs are pinned in tests.
arktype moves 2.2.3 -> 2.2.8; an override keeps the first-party and
vendored consumers on one type identity (two arktype versions in one
program defeat portable type naming).
"Fetch a public web page (docs, articles) and return it as markdown by default. For a URL on a host a connected MCP server covers, use that server via tool_search first; web_fetch is for public pages, not authenticated apps.",
81
-
inputSchema: {
82
-
type: "object",
83
-
properties: {
84
-
url: {type: "string",description: "URL to fetch (http or https only)"},
85
-
format: {
86
-
type: "string",
87
-
enum: ["text","markdown","html"],
88
-
description: "Output format. Defaults to markdown.",
89
-
},
90
-
timeout: {
91
-
type: "number",
92
-
description: `Timeout in seconds (default ${DEFAULT_TIMEOUT_S}, max ${MAX_TIMEOUT_S}).`,
0 commit comments