Skip to main content
Use the unified MorphClient to access all tools, or import individual clients for advanced use.

Fast Apply

Apply LLM edits to files at 10,500 tokens/s. Handles lazy edits with // ... existing code ... markers.
When to use: Agent needs to edit code files Returns: Unified diff + change stats (lines added/removed/modified) Speed: 10,500+ tokens/s (40% faster than search-and-replace)
Path security: SDK validates all file paths are within baseDir to prevent directory traversal attacks.

WarpGrep

A code search subagent that runs grep and file reads in a separate context window. No embeddings, no indexing.
When to use: Agent needs to find relevant code Returns: Matching files with the code that answers the query Speed: Under 6 seconds, 3.8 steps on average
Requires ripgrep on the machine running the search. See WarpGrep for GitHub search, streaming, and sandbox execution.

Git Operations

Remote repository storage for agent-built projects.
When to use: Agent builds apps and needs version control Returns: Standard git operations (init, clone, push, pull, etc.)
Fast push response: Git push returns in 200ms.

Browser Automation

Natural language browser testing with session recording and error detection.

Basic Usage

With Video Recording

When to use: Agent needs to test web applications Returns: Test results + optional session video + console logs + error screenshots Recording format: WebM video, 7-day presigned S3 URLs, auto-deleted after 30 days
Works with e2b.dev URLs: The browser worker can access e2b.dev preview environments and other publicly accessible URLs.
Max video length: Videos are limited to 3 minutes. For longer tests, use recordVideo: false.

Standalone Clients (Advanced)

Need custom configuration per tool? Use standalone clients instead of MorphClient:
When to use: You need tool-specific configuration that differs from defaults (e.g., custom URLs, different timeouts per tool).

Next Steps

Examples

See real-world agent patterns

API Reference

Complete function signatures