rec
Convert polar coordinates (r, θ) to rectangular coordinates (x, y) with adjustable angle mode for degrees or radians.
Instructions
When: convert polar (r,θ) to rectangular (x,y). Params: r, theta; angle_mode for θ (default deg). Example: r=2, theta=90, angle_mode="deg".
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": {
"r": "<r>",
"theta": "<theta>"
},
"name": "rec"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| r | Yes | ||
| theta | Yes | ||
| angle_mode | No | deg |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |