Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat(server): cut T3's agent instructions and tool copy by 60% #24850

Mergedt3dotgg(GitHub profile, opens in a new tab)merged 6 commits intomain fromrefs/pull/24850/headmerged by t3dotgg(GitHub profile, opens in a new tab) View on GitHub

Showing 33 changed files with 12 additions and 14 deletions (loading 30).

x
0 of 33 viewed, 33 left
3 additions and 4 deletionsapps/server/src/mcp/toolkits/attachment/tools.tsModified
View file
@@ -33,21 +33,20 @@
const AttachmentUploadTool = Tool.make("t3_attachment_prepare_upload", {
...shared,
description:
- "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.",
+ "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`.",
parameters: Schema.Struct({ upload: AttachmentCreateUploadUrlInput }),
success: AttachmentCreateUploadUrlResult,
}).annotate(Tool.Destructive, true);
const AttachmentDiscardTool = Tool.make("t3_attachment_discard", {
...shared,
- description:
- "Discard a pending upload. Already-delivered thread attachments are never deleted by this operation.",
+ description: "Discard a pending upload (not a sent attachment).",
parameters: AttachmentDeleteInput,
success: Schema.Struct({}),
}).annotate(Tool.Destructive, true);
const AttachmentSendTool = Tool.make("t3_thread_send_attachments", {
...shared,
description:
- "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.",
+ "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.",
parameters: Schema.Struct({
threadId: Schema.optional(ThreadId),
message: Schema.optional(Schema.String.check(Schema.isMaxLength(120000))),
7 additions and 8 deletionsapps/server/src/mcp/toolkits/device/tools.tsModified
View file
@@ -29,8 +29,9 @@