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 5f6fbdb
Browse filesBrowse the repository at this point in the historyBrowse files
feat(server): cut T3's agent instructions and tool copy by 60%
Each rule is stated once, where the agent reads it when it decides, and
rules T3 now enforces itself are gone. Same-provider subagents that finish
within the turn default to the harness's native tool; delegate_task covers
other providers, explicit settings, worktrees, and background work.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
"Create the app's signed upload URL. POST the exact bytes to relativeUrl on this MCP server's HTTP origin, then pass the attachment metadata and returned ID to t3_thread_send_attachments. Upload is separate from sending; provider attachment support is decided by its adapter.",
36
+
"Get an upload URL. POST the file's exact bytes to `relativeUrl` on this MCP server's HTTP origin, then send via `t3_thread_send_attachments` with the returned `attachmentId`.",
"Send uploaded attachments to this thread or any other thread in this environment. Each call is a new message, without a retry key. Acceptance does not mean the provider can consume the attachment or has finished the turn. The target cannot have broader permission modes than the caller; failures retain claimed files when dispatch outcome is uncertain.",
49
+
"Send uploaded attachments as a new message to a thread. No retry key. Target modes cannot exceed yours. Success does not mean the provider read them or finished.",
"List iOS Simulators and Android Emulators on this environment's device hosts, which platforms each host can run, and which devices are already open in this thread's Device panel. Call this before device_open when you do not know a device id.",
33
-
// Empty Struct emits object|array, which can make providers reject every server tool.
32
+
"List iOS Simulators and Android Emulators here, what each host can run, and what is open in this thread's Device panel. Call before `device_open` when you do not know a device id.",
33
+
// An empty struct serializes as `anyOf [object, array]`, which some
34
+
// providers reject and then drop every tool on the server with it.
34
35
parameters: Schema.Struct({
35
36
hostId: Schema.optional(
36
37
Schema.String.annotate({description: "Limit to one device host. Defaults to all hosts."}),
"Open a simulator or emulator for this thread: boots it if needed, starts its live stream, and shows it in the user's Device panel so they can watch. Returns the agent-device CLI invocation pinned to the device; drive the device with that CLI afterwards.",
52
+
"Open a simulator or emulator for this thread. Boots it if neededand shows it in the user's Device panel. Returns the `agent-device` CLI call pinned to that device. Drive the device with that CLI.",
"Read this server's identity and selected environment preferences. Provider/model availability is exposed by orchestrator_capabilities. Writing instructions are limited to 4,000 characters.",
43
+
"Read this server's identity and preferences. Providers and models: `orchestrator_capabilities`.",
"Update selected environment-wide preferences through normal settings persistence and notifications. Requires a live full-access/default calling thread. Omitted fields are preserved; empty customInstructionsclears them.",
57
+
"Update environment-wide preferences. Live full-access or default caller thread only. Omitted fields are unchanged; `customInstructions: ''` clears it.",
Copy file name to clipboardExpand all lines: apps/server/src/mcp/toolkits/html/tools.ts
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -21,20 +21,20 @@ const Html = Schema.String.check(Schema.isMinLength(1), Schema.isMaxLength(512_0
21
21
});
22
22
23
23
constPAGE_RULES=
24
-
'Write one self-contained document with inline <style> and <script>. Local images written as absolute file paths (src="/abs/shot.png", CSS url(/abs/bg.webp), or a JS string) are inlined automatically; remote http(s) URLs, such as a CDN chart library, load as-is.';
24
+
"Inline <style> and <script>. Local images as absolute paths are inlined. Remote URLsload as-is.";
description: `Render an HTML page in T3's headless browser and get back a PNG screenshot, contentHeight (the height the page needs at this width), and its console output: log, info, warning, error, and uncaught exceptions, with stack traces pointing into page.html. console.log is a fine way to report your own checks. Use it to check and iterate on a page before html_render. The first preview on a machine can report that T3 is still installing its preview browser; call again a minute later. ${PAGE_RULES}The page gets the theme variables and layout described in html_render.`,
27
+
description: `Check an HTML page before html_render. Returns PNG, contentHeight, and console output. If it says the browser is still installing, call again in a minute. ${PAGE_RULES}Theme and layout rules are in html_render.`,
28
28
parameters: Schema.Struct({
29
29
html: Html,
30
30
width: Schema.optional(
31
31
Schema.Int.annotate({
32
-
description: `Viewport width in CSS pixels, 240-1600. Defaults to ${HTML_RENDER_COLUMN_WIDTH}, the reply column; use about 390 to check phones.`,
32
+
description: `CSS pixels, 240 to 1600. Default ${HTML_RENDER_COLUMN_WIDTH}. Use about 390 for phones.`,
33
33
}),
34
34
),
35
35
appearance: Schema.optional(
36
36
Schema.Literals(["dark","light"]).annotate({
37
-
description: "Theme to preview. Defaults to dark.",
description: `Show a finished HTML page (chart, table, diagram, collage, mockup) inline in this thread, above your final text reply; call it before writing that reply. The reader already sees the page, so the reply should not announce it, say where it is, or restate it: add only what the page doesn't say. Preview with html_preview first. T3 fits the frame to the page's height at each reader's width. On mobile, a height below the page's contentHeight caps the frame there, and the rest scrolls inside it; web and desktop fit the whole page, up to ${HTML_RENDER_MAX_FIT_HEIGHT}px. ${PAGE_RULES}${HTML_RENDER_LAYOUT_GUIDE}${HTML_RENDER_THEME_GUIDE}`,
74
+
description: `Show a finished HTML page inline in this thread, above your final reply. Do not announce or restate the page. Frame fits height to ${HTML_RENDER_MAX_FIT_HEIGHT}px. On mobile, content past the given height scrolls.${HTML_RENDER_LAYOUT_GUIDE}${HTML_RENDER_THEME_GUIDE}`,
75
75
parameters: Schema.Struct({
76
76
html: Html,
77
77
title: Schema.String.check(
78
78
Schema.isMinLength(1),
79
79
Schema.isMaxLength(HTML_RENDER_MAX_TITLE_LENGTH),
80
-
).annotate({description: "Short name for the page."}),
80
+
),
81
81
height: Schema.Int.annotate({
82
-
description: `The frame height in CSS pixels, ${HTML_RENDER_MIN_HEIGHT}-${HTML_RENDER_MAX_HEIGHT}. Use html_preview's contentHeight. A lower height makes long content scroll inside the frame on mobile only.`,
82
+
description: `Frame height in CSS pixels, ${HTML_RENDER_MIN_HEIGHT} to ${HTML_RENDER_MAX_HEIGHT}. Use the contentHeight from html_preview.`,
0 commit comments