Convert a cURL command to code
curl_to_codeTurn a cURL command (bash, Windows cmd or PowerShell, as copied from browser devtools) into the same request in Python requests, JavaScript fetch or axios, Go, Java, C#, PHP, or a tidy cURL command. Headers, body, auth, timeouts and redirects are carried over.
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": {
"command": "<command>",
"language": "<language>"
},
"name": "curl_to_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | The cURL command. | |
| language | Yes |