Build a connector
build_connectorGenerate a tested, documented connector between two APIs from a one-sentence integration description. Plans, researches both APIs, writes tests and a README, then verifies in a sandbox with repair attempts.
Instructions
Describe an integration in one sentence ("When X happens in A, do Y in B"). patchbay plans it, researches both APIs, generates a connector with tests and a README, then verifies it in a sandbox with up to N repair attempts. Default language is TypeScript (vitest); set lang: "py" for Python 3.12 (pytest). Falls back to the recorded TypeScript replay run when live API keys are missing.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"prompt": "<prompt>"
},
"name": "build_connector"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lang | No | Target language. "ts" (default) emits TypeScript+vitest; "py" emits Python 3.12+pytest. Live keys required for "py". | |
| prompt | Yes | One-sentence integration description | |
| maxAttempts | No | Repair attempts, default from PATCHBAY_MAX_ATTEMPTS |