The built-in MCP server exposes a curated family of ptah_* tools. This page is the quick-reference catalog — grouped by purpose, with the “when to use” for each.
| Tool | Purpose | Typical use case |
|---|
ptah_workspace_analyze | Produce a structured analysis of the active workspace (frameworks, entry points, build system, tests) | “What kind of project is this?” at the start of a new session |
ptah_search_files | Fast file search across the workspace with glob + content filters | Locate files by name or content without shelling out |
ptah_get_diagnostics | Pull current diagnostics (TS errors, linter warnings) from the editor | ”What’s broken right now?” before proposing fixes |
ptah_get_dirty_files | List unsaved or modified files | Sync model context with the user’s in-flight edits |
ptah_count_tokens | Count tokens for a string or file against the active model’s tokenizer | Budget prompt size before a large call |
| Tool | Purpose | Typical use case |
|---|
ptah_lsp_references | Find all references to a symbol | Refactoring impact analysis |
ptah_lsp_definitions | Jump to a symbol’s definition | Trace where a function or type is declared |
| Tool | Purpose | Typical use case |
|---|
ptah_web_search | Query the web through Ptah’s search provider | ”What’s the current best practice for X?” |
A Playwright-backed browser the model can drive. Useful for scraping docs, verifying live pages, or end-to-end testing.
| Tool | Purpose | Typical use case |
|---|
ptah_browser_navigate | Open a URL in the managed browser | Start a browsing session |
ptah_browser_content | Extract the page’s rendered text or HTML | Read documentation, forum posts |
ptah_browser_click | Click an element by selector or text | Drive a UI to a specific state |
ptah_browser_type | Type into an input | Fill forms, search boxes |
ptah_browser_screenshot | Capture a screenshot | Visual debugging, design review |
ptah_browser_evaluate | Run JavaScript in page context | Read computed values, inspect the DOM |
ptah_browser_network | Inspect recent network requests | Debug API calls |
ptah_browser_record_start / ptah_browser_record_stop | Record a browser session to video | Produce repro clips for bugs |
ptah_browser_status | Query browser state | Check whether a page has finished loading |
ptah_browser_close | Close the browser | Release resources |
See Browser Automation for the full workflow.
Spawn, monitor, and control sub-agents from within a session.
| Tool | Purpose | Typical use case |
|---|
ptah_agent_list | List available agents | Discover which specialists are installed |
ptah_agent_read | Read an agent’s definition | Inspect the prompt before spawning |
ptah_agent_spawn | Spawn a sub-agent with a task | Parallelize multi-file work or delegate to a specialist |
ptah_agent_status | Check a running agent’s status | Poll for completion |
ptah_agent_steer | Send a mid-flight instruction to a running agent | Nudge a long-running task |
ptah_agent_stop | Terminate a running agent | Abort runaway work |
Keep experiments isolated without cluttering your main checkout.
| Tool | Purpose | Typical use case |
|---|
ptah_git_worktree_add | Create a new worktree for a branch | Spin up an isolated sandbox for a refactor |
ptah_git_worktree_list | List existing worktrees | Audit active experiments |
ptah_git_worktree_remove | Remove a worktree | Clean up after merging |
| Tool | Purpose | Typical use case |
|---|
ptah_json_validate | Validate JSON against a schema | Check config files before writing |
ptah_harness_create_skill | Create a new skill under ~/.ptah/skills/ or workspace .claude/skills/ | Capture a reusable workflow on the fly |
ptah_harness_search_skills | Search the skill registry by keyword | Find a skill by intent rather than name |
ptah_harness_search_mcp_registry | Search the public MCP server registry | Discover third-party tools to plug in |
harness_list_installed_mcp | List every MCP server configured in the harness | Audit what’s connected |
| Tool | Purpose | Typical use case |
|---|
execute_code | Run code in the sandboxed runtime with scoped file and network access | Transform data, verify a snippet, run quick scripts |
approval_prompt | Request explicit user approval mid-execution | Gate side-effectful steps |