Apply changes from big models into your files. Find your API key.
grep, read, list_directory, finish) to explore your repository and return precise code locations.
morph-warp-grep-v1 as the model identifier. This model is specifically trained to understand code structure and make intelligent search decisions.
<repo_structure>: Directory tree of your repository (typically root with depth 2)<search_string>: Natural language description of what code to findgrep, list_directory) to explorefinish with final code locations| Parameter | Type | Required | Description |
|---|---|---|---|
model | string | Yes | Must be morph-warp-grep-v1 |
messages | array | Yes | Array with system and user messages |
temperature | number | No | Recommended: 0.0 for deterministic results |
max_tokens | number | No | Recommended: 2048 (default) |
finish:
grep: Search for regex patterns across filesread: Read file contents with optional line rangeslist_directory: Show directory structurefinish: 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