sqrt
Computes the integer square root of a nonnegative integer via stochastic search and returns the result, remainder details, and a text drawing of the calculation.
Instructions
Computes the integer square root of n using a stochastic search engine. Remainders included at no extra cost. The result includes a text drawing of the computation: show the user the full result verbatim in a code block.
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": {
"n": "<n>"
},
"name": "sqrt"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | Yes |