Skip to content

Ptah Tools

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.

ToolPurposeTypical use case
ptah_workspace_analyzeProduce 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_filesFast file search across the workspace with glob + content filtersLocate files by name or content without shelling out
ptah_get_diagnosticsPull current diagnostics (TS errors, linter warnings) from the editor”What’s broken right now?” before proposing fixes
ptah_get_dirty_filesList unsaved or modified filesSync model context with the user’s in-flight edits
ptah_count_tokensCount tokens for a string or file against the active model’s tokenizerBudget prompt size before a large call
ToolPurposeTypical use case
ptah_lsp_referencesFind all references to a symbolRefactoring impact analysis
ptah_lsp_definitionsJump to a symbol’s definitionTrace where a function or type is declared
ToolPurposeTypical use case
ptah_web_searchQuery 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.

ToolPurposeTypical use case
ptah_browser_navigateOpen a URL in the managed browserStart a browsing session
ptah_browser_contentExtract the page’s rendered text or HTMLRead documentation, forum posts
ptah_browser_clickClick an element by selector or textDrive a UI to a specific state
ptah_browser_typeType into an inputFill forms, search boxes
ptah_browser_screenshotCapture a screenshotVisual debugging, design review
ptah_browser_evaluateRun JavaScript in page contextRead computed values, inspect the DOM
ptah_browser_networkInspect recent network requestsDebug API calls
ptah_browser_record_start / ptah_browser_record_stopRecord a browser session to videoProduce repro clips for bugs
ptah_browser_statusQuery browser stateCheck whether a page has finished loading
ptah_browser_closeClose the browserRelease resources

See Browser Automation for the full workflow.

Spawn, monitor, and control sub-agents from within a session.

ToolPurposeTypical use case
ptah_agent_listList available agentsDiscover which specialists are installed
ptah_agent_readRead an agent’s definitionInspect the prompt before spawning
ptah_agent_spawnSpawn a sub-agent with a taskParallelize multi-file work or delegate to a specialist
ptah_agent_statusCheck a running agent’s statusPoll for completion
ptah_agent_steerSend a mid-flight instruction to a running agentNudge a long-running task
ptah_agent_stopTerminate a running agentAbort runaway work

Keep experiments isolated without cluttering your main checkout.

ToolPurposeTypical use case
ptah_git_worktree_addCreate a new worktree for a branchSpin up an isolated sandbox for a refactor
ptah_git_worktree_listList existing worktreesAudit active experiments
ptah_git_worktree_removeRemove a worktreeClean up after merging
ToolPurposeTypical use case
ptah_json_validateValidate JSON against a schemaCheck config files before writing
ptah_harness_create_skillCreate a new skill under ~/.ptah/skills/ or workspace .claude/skills/Capture a reusable workflow on the fly
ptah_harness_search_skillsSearch the skill registry by keywordFind a skill by intent rather than name
ptah_harness_search_mcp_registrySearch the public MCP server registryDiscover third-party tools to plug in
harness_list_installed_mcpList every MCP server configured in the harnessAudit what’s connected
ToolPurposeTypical use case
execute_codeRun code in the sandboxed runtime with scoped file and network accessTransform data, verify a snippet, run quick scripts
approval_promptRequest explicit user approval mid-executionGate side-effectful steps