Convert a curl command to code
convert_curlParse a curl command and generate equivalent JavaScript fetch, Python requests, Go, PHP, or Rust code.
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>"
},
"name": "convert_curl"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | No | fetch | |
| command | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| body | No | ||
| method | Yes | ||
| headers | Yes | ||
| snippet | Yes | ||
| warnings | Yes |