Apply changes from big models into your files. Find your API key.
grep_search, read, list_directory, glob, and finish tools.
morph-warp-grep-v2.1 as the model identifier.
<repo_structure>: Flat list of absolute paths — repo root first, then all files/directories to depth 2. No indentation, no tree characters, no trailing / on directories.<search_string>: Natural language description of what code to findgrep_search, list_directory, glob) to explorefinish with code locations{role: "tool", tool_call_id: "...", content: "..."} messages.
| Parameter | Type | Required | Description |
|---|---|---|---|
model | string | Yes | Must be morph-warp-grep-v2.1 |
messages | array | Yes | Array of conversation messages |
tools | array | Yes | Tool definitions (see Direct API guide) |
temperature | number | No | Recommended: 0.0 for deterministic results |
max_tokens | number | No | Recommended: 2048 |
tool_calls:
finish.
grep_search: Search for regex patterns across filesread: Read file contents with optional line rangeslist_directory: Explore directory structureglob: Find files by name/extension pattern (sorted by mtime)finish: Submit final answer with code locationsBearer authentication header of the form Bearer <token>, where <token> is your auth token.
Chat completion request for Apply or Warp Grep (OpenAI-compatible)
ID of the model to use
morph-v3-fast, morph-v3-large, auto "morph-v3-fast"
Array containing a single user message with structured content using instruction-guided format
Enable streaming response
false
Maximum number of tokens to generate
150
Sampling temperature (0.0 for deterministic output)
0
Chat completion response
Unique identifier for the completion
"chatcmpl-123"
Object type
"chat.completion"
Unix timestamp of when the completion was created
1677652288
List of completion choices
Usage statistics for the completion request