get_angle_mode
Retrieve the current trigonometric angle mode (degrees or radians) used by the calculator. Ensures correct interpretation of angle values in subsequent calculations.
Instructions
Get current trig angle mode.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- cruncher.js:2020-2023 (handler)Handler function for get_angle_mode tool. Returns the current global angle mode (degrees or radians) as a JSON-stringified object.
/** Get the current global angle mode. */ get_angle_mode: () => { return JSON.stringify({ mode: angleMode }); }, - cruncher.js:1012-1023 (schema)Input schema definition for get_angle_mode tool. Has no required properties (no inputs needed) and returns the current trig angle mode.
{ 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:81-81 (registration)Registration of get_angle_mode in the 'standard' tool tier, making it available when CRUNCHER_TOOL_SET is 'standard' (default).
"set_angle_mode", "get_angle_mode", - cruncher.js:138-138 (registration)get_angle_mode is listed in MAIN_THREAD_TOOLS set, meaning it runs directly in the main thread without worker overhead.
"set_angle_mode", "get_angle_mode", - cruncher.js:108-109 (helper)Global angleMode state variable initialized to 'degrees', used by get_angle_mode handler.
// --- Angle Mode State --- let angleMode = "degrees"; // Default unit for trigonometric functions