curl_to_code_convert
Convert a cURL shell command into clean JavaScript fetch() or Python requests code preserving HTTP method, headers, and request body.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "curl_to_code_convert"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | ||
| target | No | fetch |