curl to code
curl-to-codeConverts a curl command into JavaScript fetch, Python requests, Go net/http or PHP code. Returns { language, request: { url, method, headers, data }, code } Price: 2 credits (1 credit = 1 CAD cent) per successful call; input that does not match the schema is rejected before billing.
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": {
"curl": "<curl>"
},
"name": "curl-to-code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| curl | Yes | A curl command line. | |
| language | No | Target language, default javascript. |