{
  "environment": "Linux; real T3 HTTP server; isolated fresh database; authenticated MCP HTTP client; no provider turn",
  "guide": "Launches one ordinary top-level thread through the app's launch service. Use an\nexplicit `workspaceStrategy` to create a new worktree (`worktree` with `baseRef`),\nattach an existing checkout (`existing_worktree` with `worktreePath`), or use the\nproject root (`root`, also the default). The thread is bound to that workspace\nbefore the agent starts. Creating a worktree in the task prompt does not update\nthis binding.\n\nPass the task in `message`. Project, model, and modes inherit when omitted;\nworkspace does not. `scratch: true` launches without a project, in a folder of\nits own under the environment's Scratch project. A new worktree with `startFromOrigin` omitted follows the new-worktree setting. For stacked PRs, use the parent branch as `baseRef` with\n`startFromOrigin: false`. The new thread may not run with broader runtime or\ninteraction modes than the caller. As for `delegate_task`, a runtime mode the\nprovider does not offer is refused, and an inherited or default one steps down\nto the broadest mode it offers. `create_threads` remains the batch option for a\nshared checkout.\n\nSet `clientRequestId` on the initial launch to make it retryable. After an error\nor a lost reply, resend the same request with the same key from the same\nprovider session. This reuses any thread already created by that request. If the\ninitial request had no key, check for the thread before launching again.",
  "initialize": {
    "jsonrpc": "2.0",
    "id": 1,
    "result": {
      "protocolVersion": "2025-06-18",
      "capabilities": {
        "logging": {},
        "tools": {
          "listChanged": true
        },
        "completions": {}
      },
      "serverInfo": {
        "name": "T3 Code",
        "version": "0.1.10"
      }
    }
  },
  "advertisedTool": {
    "name": "t3_thread_launch",
    "description": "Create one new top-level thread, bound to its workspace before the agent starts. Task in `message`. Omit `projectId`, model and modes to inherit yours (outside a thread, pass `projectId` or `scratch`); modes cannot exceed yours. After an error or lost reply, retry with the same `clientRequestId`. Follow it with `t3_thread_read` or `t3_thread_wait`. Mention it with its `link`.",
    "inputSchema": {
      "type": "object",
      "properties": {
        "environmentId": {
          "type": "string"
        },
        "projectId": {
          "type": "string"
        },
        "scratch": {
          "type": "boolean",
          "description": "No project: a new Scratch folder. Not with `projectId` or `workspaceStrategy`."
        },
        "title": {
          "type": "string"
        },
        "modelSelection": {
          "type": "object",
          "properties": {
            "provider": {},
            "instanceId": {},
            "model": {},
            "options": {}
          },
          "required": [
            "model"
          ]
        },
        "runtimeMode": {
          "type": "string",
          "enum": [
            "approval-required",
            "auto-accept-edits",
            "auto",
            "full-access"
          ]
        },
        "interactionMode": {
          "type": "string",
          "enum": [
            "default",
            "plan"
          ]
        },
        "workspaceStrategy": {
          "type": "object",
          "properties": {
            "type": {
              "type": "string",
              "enum": [
                "root",
                "existing_worktree",
                "worktree"
              ]
            },
            "branch": {
              "type": "string"
            },
            "worktreePath": {
              "type": "string"
            },
            "baseRef": {
              "type": "string"
            },
            "startFromOrigin": {
              "type": "boolean"
            }
          },
          "required": [
            "type"
          ],
          "description": "'worktree': new checkout from `baseRef`. Honor a requested base. Otherwise, independent work uses the default branch as `remote/branch` (e.g. `origin/main`) with `startFromOrigin: true`; with no remote, use the local default branch. Required unpublished commits and dependent or stacked work use their local base with `startFromOrigin: false`. 'existing_worktree': bind `worktreePath`, a project worktree. 'root': project checkout, the default, not your worktree. Uncommitted edits are not copied."
        },
        "message": {
          "type": "string",
          "maxLength": 120000,
          "description": "First prompt. Omit it and `attachments` for idle."
        },
        "attachments": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "image",
                  "file"
                ]
              },
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "mimeType": {
                "type": "string"
              },
              "sizeBytes": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 10485760
                  },
                  {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 52428800
                  }
                ]
              },
              "source": {
                "type": "object",
                "properties": {
                  "_tag": {
                    "type": "string",
                    "enum": [
                      "pasted-text"
                    ]
                  }
                },
                "required": [
                  "_tag"
                ]
              }
            },
            "required": [
              "type",
              "id",
              "name",
              "mimeType",
              "sizeBytes"
            ]
          },
          "maxItems": 8
        },
        "clientRequestId": {
          "type": "string"
        },
        "delegatedFrom": {
          "type": "object",
          "properties": {
            "environmentId": {
              "type": "string"
            },
            "threadId": {
              "type": "string"
            },
            "title": {
              "type": "string"
            }
          },
          "required": [
            "environmentId",
            "threadId",
            "title"
          ]
        }
      },
      "required": [
        "title"
      ]
    },
    "outputSchema": {
      "type": "object",
      "properties": {
        "threadId": {
          "type": "string"
        },
        "link": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "projectId": {
          "type": "string"
        },
        "modelSelection": {
          "type": "object",
          "properties": {
            "provider": {
              "anyOf": [
                {},
                {
                  "type": "null"
                }
              ]
            },
            "instanceId": {
              "anyOf": [
                {},
                {
                  "type": "null"
                }
              ]
            },
            "model": {},
            "options": {
              "anyOf": [
                {},
                {
                  "type": "null"
                }
              ]
            }
          },
          "required": [
            "model"
          ],
          "additionalProperties": true
        },
        "runId": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "status": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "preparing",
                "queued",
                "starting",
                "running",
                "waiting",
                "completed",
                "interrupted",
                "failed",
                "cancelled",
                "rolled_back"
              ]
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "threadId",
        "projectId",
        "modelSelection",
        "runId",
        "status"
      ],
      "additionalProperties": true
    },
    "annotations": {
      "readOnlyHint": false,
      "destructiveHint": true,
      "idempotentHint": false,
      "openWorldHint": true
    }
  }
}
