stacksize
Get the current PARI stack size in bytes to monitor memory allocation during number theory computations.
Instructions
Get the current PARI stack size in bytes.
Returns: Current stack size.
Example: >>> stacksize() 8000000
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": "stacksize"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |