{
  "server": "commonshell",
  "tools": [
    {
      "_meta": {
        "anthropic/alwaysLoad": false
      },
      "description": "Create a goal. With plan=true, also break it into tasks with the planner.",
      "inputSchema": {
        "additionalProperties": false,
        "properties": {
          "description": {
            "type": "string"
          },
          "plan": {
            "default": false,
            "type": "boolean"
          },
          "title": {
            "type": "string"
          }
        },
        "required": [
          "title"
        ],
        "type": "object"
      },
      "name": "create_goal"
    },
    {
      "_meta": {
        "anthropic/alwaysLoad": false
      },
      "description": "Break a goal into tasks and subtasks with dependencies and acceptance criteria. replace=true replans the unfinished tasks of an already planned goal.",
      "inputSchema": {
        "additionalProperties": false,
        "properties": {
          "goal_id": {
            "description": "Goal id, e.g. k3x9qa",
            "type": "string"
          },
          "reason": {
            "description": "With replace: why the old plan was wrong (used for learning)",
            "type": "string"
          },
          "replace": {
            "default": false,
            "type": "boolean"
          }
        },
        "required": [
          "goal_id"
        ],
        "type": "object"
      },
      "name": "plan_goal"
    },
    {
      "_meta": {
        "anthropic/alwaysLoad": false
      },
      "description": "List goals with their tasks.",
      "inputSchema": {
        "additionalProperties": false,
        "properties": {
          "include_done": {
            "default": false,
            "type": "boolean"
          }
        },
        "required": [],
        "type": "object"
      },
      "name": "list_goals"
    },
    {
      "_meta": {
        "anthropic/alwaysLoad": false
      },
      "description": "Get the next actionable tasks: open, unblocked, dependencies finished. In-progress tasks come first.",
      "inputSchema": {
        "additionalProperties": false,
        "properties": {
          "count": {
            "default": 1,
            "maximum": 20,
            "minimum": 1,
            "type": "integer"
          },
          "goal_id": {
            "description": "Goal id, e.g. k3x9qa",
            "type": "string"
          }
        },
        "required": [],
        "type": "object"
      },
      "name": "get_next_task"
    },
    {
      "_meta": {
        "anthropic/alwaysLoad": false
      },
      "description": "Get one task with its acceptance criteria and dependencies.",
      "inputSchema": {
        "additionalProperties": false,
        "properties": {
          "task_id": {
            "description": "Task id, e.g. k3x9qa",
            "type": "string"
          }
        },
        "required": [
          "task_id"
        ],
        "type": "object"
      },
      "name": "get_task"
    },
    {
      "_meta": {
        "anthropic/alwaysLoad": false
      },
      "description": "Change a task's status. Use complete_task to finish it. Pass context whenever you start, pause or block a task, so it can be resumed later by you or anyone else.",
      "inputSchema": {
        "additionalProperties": false,
        "properties": {
          "context": {
            "description": "Replaces the task's context: where it stands, the files involved, how to check it, what's left and what it's waiting on",
            "type": "string"
          },
          "status": {
            "enum": [
              "todo",
              "in_progress",
              "blocked",
              "cancelled"
            ],
            "type": "string"
          },
          "task_id": {
            "description": "Task id, e.g. k3x9qa",
            "type": "string"
          }
        },
        "required": [
          "task_id",
          "status"
        ],
        "type": "object"
      },
      "name": "set_task_status"
    },
    {
      "_meta": {
        "anthropic/alwaysLoad": false
      },
      "description": "Record the result of working on a task. pass closes it (and its parent/goal when nothing is left); fail records the attempt and keeps it in the queue. Returns the next task.",
      "inputSchema": {
        "additionalProperties": false,
        "properties": {
          "notes": {
            "description": "What was done, or why it failed",
            "type": "string"
          },
          "result": {
            "enum": [
              "pass",
              "fail"
            ],
            "type": "string"
          },
          "task_id": {
            "description": "Task id, e.g. k3x9qa",
            "type": "string"
          }
        },
        "required": [
          "task_id",
          "result"
        ],
        "type": "object"
      },
      "name": "complete_task"
    },
    {
      "_meta": {
        "anthropic/alwaysLoad": false
      },
      "description": "Teach a reusable rule. The planner sees relevant patterns when planning future goals.",
      "inputSchema": {
        "additionalProperties": false,
        "properties": {
          "guidance": {
            "description": "What to do, e.g. 'wait for #app[data-ready] before asserting'",
            "type": "string"
          },
          "scope": {
            "default": "global",
            "enum": [
              "global",
              "repo",
              "language",
              "site"
            ],
            "type": "string"
          },
          "scope_value": {
            "description": "Repo name, language or domain for non-global scopes",
            "type": "string"
          },
          "trigger": {
            "description": "When it applies, e.g. 'testing pages on shop.example.com'",
            "type": "string"
          }
        },
        "required": [
          "trigger",
          "guidance"
        ],
        "type": "object"
      },
      "name": "add_pattern"
    },
    {
      "_meta": {
        "anthropic/alwaysLoad": false
      },
      "description": "Test a web page (headless Chrome by default) or a phone app. Give url + verify to have a Selenium IDE test written and run (saved to tests/commonshell/ when it passes), or side_path to run an existing .side file. target picks where it runs: microbrowser (the browser in Commonshell, the user watches), headless, external (a tab of the user's own Chrome through the Commonshell extension; the user must click Allow in Chrome, so tell them first) or android/ios (through Appium; native apps need side_path). Captures screenshots, console errors and failed requests; with a Claude key, also checks the screenshots. Results feed the learning loop; with task_id the task is completed as pass/fail.",
      "inputSchema": {
        "additionalProperties": false,
        "properties": {
          "app": {
            "description": "target android/ios: native app (.apk/.app/.ipa path or URL, or an installed app's id); without it, the phone's browser",
            "type": "string"
          },
          "appium_url": {
            "description": "target android/ios: the Appium server (default http://127.0.0.1:4723)",
            "type": "string"
          },
          "device": {
            "description": "target android/ios: device or simulator name (iOS simulators need one)",
            "type": "string"
          },
          "mobile": {
            "default": false,
            "description": "Test the mobile web: phone-sized screen, touch, mobile user agent",
            "type": "boolean"
          },
          "shared_browser": {
            "default": false,
            "description": "Same as target microbrowser",
            "type": "boolean"
          },
          "side_path": {
            "description": "Path to a .side file to run instead",
            "type": "string"
          },
          "tab": {
            "description": "target external: the tab the user must pick on the Allow page (its id or the start of its URL); the run fails if they pick another",
            "type": "string"
          },
          "target": {
            "default": "headless",
            "description": "Where to run: microbrowser (the browser the user has open in Commonshell, so they watch and can take over), headless, external (a tab of the user's own Chrome through the Commonshell extension, after they click Allow there), android or ios (Appium)",
            "enum": [
              "microbrowser",
              "headless",
              "external",
              "android",
              "ios"
            ],
            "type": "string"
          },
          "task_id": {
            "description": "Task id, e.g. k3x9qa",
            "type": "string"
          },
          "test_name": {
            "description": "With side_path: run only this test",
            "type": "string"
          },
          "url": {
            "type": "string"
          },
          "verify": {
            "description": "What must be true on the page",
            "type": "string"
          },
          "visual": {
            "default": true,
            "type": "boolean"
          }
        },
        "required": [],
        "type": "object"
      },
      "name": "run_web_test"
    },
    {
      "_meta": {
        "anthropic/alwaysLoad": false
      },
      "description": "Find learned patterns relevant to a situation (uses the current repo and languages for scoped patterns).",
      "inputSchema": {
        "additionalProperties": false,
        "properties": {
          "limit": {
            "default": 5,
            "maximum": 20,
            "minimum": 1,
            "type": "integer"
          },
          "query": {
            "type": "string"
          }
        },
        "required": [
          "query"
        ],
        "type": "object"
      },
      "name": "search_patterns"
    },
    {
      "description": "Record a learning in Commonshell's learning memory: an approach that worked, one that failed and why, a decision, or an environment fact. A failed learning must give `why` (what made it fail) and should give `instead` when known; it is kept even after a later fix. Use space=private by default; team only for learnings the whole team should reuse (team episodes are shared with your teammates peer to peer).",
      "inputSchema": {
        "additionalProperties": false,
        "properties": {
          "instead": {
            "description": "kind=failed: what worked or should be done instead",
            "type": "string"
          },
          "kind": {
            "enum": [
              "worked",
              "failed",
              "decision",
              "environment",
              "note"
            ],
            "type": "string"
          },
          "project": {
            "description": "Defaults to the current repository",
            "type": "string"
          },
          "space": {
            "default": "private",
            "enum": [
              "private",
              "team"
            ],
            "type": "string"
          },
          "supersedes": {
            "description": "IDs of learnings this one replaces (from memory_search or a memory_record reply's similar list): they rank as older and stop being recalled",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "team": {
            "description": "space=team: which team (name), when you're in several",
            "type": "string"
          },
          "text": {
            "description": "Self-contained: approach taken, outcome, and why",
            "type": "string"
          },
          "why": {
            "description": "kind=failed (required): what made the approach fail",
            "type": "string"
          }
        },
        "required": [
          "text",
          "kind"
        ],
        "type": "object"
      },
      "name": "memory_record"
    },
    {
      "description": "Search Commonshell's learning memory (what worked and what didn't, and why, in this and other projects, yours and your team's) for learnings relevant to a question. Results marked older have a newer learning on the same topic. entities=true also returns entity summaries when the optional memory graph is on.",
      "inputSchema": {
        "additionalProperties": false,
        "properties": {
          "entities": {
            "default": false,
            "type": "boolean"
          },
          "limit": {
            "default": 10,
            "maximum": 30,
            "minimum": 1,
            "type": "integer"
          },
          "query": {
            "description": "What you want to know, e.g. 'how to run the tests in demo-app'",
            "type": "string"
          },
          "space": {
            "description": "Only this space (default: both)",
            "enum": [
              "private",
              "team"
            ],
            "type": "string"
          }
        },
        "required": [
          "query"
        ],
        "type": "object"
      },
      "name": "memory_search"
    },
    {
      "_meta": {
        "anthropic/alwaysLoad": false
      },
      "description": "Before researching something on the web, check whether it was researched before: earlier research (the question, sources and conclusion, dated) from this and other sessions. Use it if it answers the question and is recent enough; search again if it may be out of date.",
      "inputSchema": {
        "additionalProperties": false,
        "properties": {
          "limit": {
            "default": 3,
            "maximum": 5,
            "minimum": 1,
            "type": "integer"
          },
          "query": {
            "description": "What you are about to research",
            "type": "string"
          }
        },
        "required": [
          "query"
        ],
        "type": "object"
      },
      "name": "prior_work"
    },
    {
      "_meta": {
        "anthropic/alwaysLoad": false
      },
      "description": "Search the team library: files and codebases your team shared, indexed by meaning and by text. Returns collection, path, line range and a snippet. Nothing is downloaded; use library_read for the file.",
      "inputSchema": {
        "additionalProperties": false,
        "properties": {
          "collection": {
            "description": "Only this collection",
            "type": "string"
          },
          "limit": {
            "default": 10,
            "maximum": 50,
            "minimum": 1,
            "type": "integer"
          },
          "query": {
            "description": "What you are looking for, in words or identifiers",
            "type": "string"
          }
        },
        "required": [
          "query"
        ],
        "type": "object"
      },
      "name": "library_search"
    },
    {
      "_meta": {
        "anthropic/alwaysLoad": false
      },
      "description": "Read a file from the team library (downloaded on first read, verified, then cached). At most 2000 lines per call; use start_line/end_line for long files.",
      "inputSchema": {
        "additionalProperties": false,
        "properties": {
          "collection": {
            "type": "string"
          },
          "end_line": {
            "minimum": 1,
            "type": "integer"
          },
          "path": {
            "type": "string"
          },
          "start_line": {
            "minimum": 1,
            "type": "integer"
          }
        },
        "required": [
          "collection",
          "path"
        ],
        "type": "object"
      },
      "name": "library_read"
    },
    {
      "_meta": {
        "anthropic/alwaysLoad": false
      },
      "description": "List the collections in the team library (id, title, author, file count).",
      "inputSchema": {
        "additionalProperties": false,
        "properties": {},
        "required": [],
        "type": "object"
      },
      "name": "library_list"
    },
    {
      "_meta": {
        "anthropic/alwaysLoad": false
      },
      "description": "Drive a browser on another computer that is paired with Commonshell through the Commonshell browser extension (end-to-end encrypted, peer to peer). Actions: list (connected browsers), tabs, open {url}, navigate {url}, back, forward, reload, activate {tab}, close {tab}, read (page text plus numbered interactive elements), click {ref|selector|text}, type {ref|selector, text, submit?}, select {ref|selector, value}, key {key, e.g. Enter}, scroll {y | ref}, wait {selector|text, timeout_ms}, screenshot, eval {code}. Most take an optional `tab` (id from tabs); the default is the active tab. Use read before click or type, and act on its refs.",
      "inputSchema": {
        "additionalProperties": false,
        "properties": {
          "action": {
            "enum": [
              "list",
              "tabs",
              "open",
              "navigate",
              "back",
              "forward",
              "reload",
              "activate",
              "close",
              "read",
              "click",
              "type",
              "select",
              "key",
              "scroll",
              "wait",
              "screenshot",
              "eval"
            ],
            "type": "string"
          },
          "args": {
            "description": "The action's arguments, e.g. {\"url\": \"https://example.com\"} or {\"ref\": 12}",
            "type": "object"
          },
          "browser": {
            "description": "Which browser (id or name from list); optional when only one is connected",
            "type": "string"
          }
        },
        "required": [
          "action"
        ],
        "type": "object"
      },
      "name": "remote_browser"
    },
    {
      "_meta": {
        "anthropic/alwaysLoad": false
      },
      "description": "Send the user a notification on their Mac and paired phone. Use it ONLY when the user asked to be notified (e.g. \"tell me when it's done\", \"ping me if the tests fail\"), when that moment comes. Don't use it to ask a question: questions and permission prompts notify the user by themselves.",
      "inputSchema": {
        "additionalProperties": false,
        "properties": {
          "message": {
            "description": "What happened, in one or two short sentences",
            "type": "string"
          },
          "title": {
            "description": "Optional; defaults to the session's name",
            "type": "string"
          }
        },
        "required": [
          "message"
        ],
        "type": "object"
      },
      "name": "notify_user"
    }
  ]
}