get_angle_mode
Retrieve the current trigonometric angle mode setting for calculations. Identifies whether angle inputs are interpreted as degrees or radians.
Instructions
Get current trig angle mode.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- cruncher.js:1006-1017 (schema)Schema definition for the get_angle_mode tool: name, annotations, description, and inputSchema (empty object with no required params).
{ name: "get_angle_mode", annotations: { title: "Get Angle Mode", readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false, }, description: "Get current trig angle mode.", inputSchema: { type: "object", properties: {}, required: [] } }, - cruncher.js:130-133 (registration)Registration of get_angle_mode in MAIN_THREAD_TOOLS set, marking it as an instant tool that runs in the main thread (no worker overhead).
const MAIN_THREAD_TOOLS = new Set([ // Angle management "set_angle_mode", "get_angle_mode", // Trigonometry (instant Math calls) - cruncher.js:75-76 (registration)Registration in the 'standard' tool tier — get_angle_mode is available in both standard and full tool sets.
"set_angle_mode", "get_angle_mode", "sum", "avg", "min", "max", "count", "variance", "std_dev", - cruncher.js:1990-1993 (handler)Handler function for get_angle_mode — returns the current global angle mode as a JSON string containing the 'mode' property (either 'degrees' or 'radians').
/** Get the current global angle mode. */ get_angle_mode: () => { return JSON.stringify({ mode: angleMode }); }, - cruncher.js:102-103 (helper)Global state variable 'angleMode' that get_angle_mode reads from. Initialized to 'degrees' by default.
// --- Angle Mode State --- let angleMode = "degrees"; // Default unit for trigonometric functions