{
  "name": "move_agent_to_root",
  "description": "Move the current agent to a new root workspace directory. Use this after creating a worktree or whenever the conversation should continue from a different workspace root. If the destination was just produced by `cursorfs-clone` (under `~/.cursor/cursorfs-clone/...`), use `move_agent_to_cloned_root` instead — this generic tool runs `git fetch origin <branch>` against the destination and will fail with \"Remote branch not found on origin\" on local-only branches.",
  "arguments": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "anyOf": [
      {
        "type": "object",
        "properties": {
          "rootPath": {
            "description": "Absolute path to the directory that should become the agent root workspace (e.g. \"/Users/name/projects/my-app\")",
            "type": "string",
            "minLength": 1
          }
        },
        "required": [
          "rootPath"
        ],
        "additionalProperties": false
      },
      {
        "type": "object",
        "properties": {
          "rootPaths": {
            "description": "Array of absolute paths used to create/switch to a multi-root workspace.",
            "minItems": 1,
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1
            }
          }
        },
        "required": [
          "rootPaths"
        ],
        "additionalProperties": false
      }
    ]
  }
}