log_clear
Clear session logs to start fresh for new tasks in the iCloud Mail MCP server, ensuring organized email management.
Instructions
Clear the session log and start fresh. Use this at the start of a new task.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- lib/session.js:25-28 (handler)The implementation of the `logClear` tool, which clears the session log by resetting it to an empty array.
export function logClear() { writeFileSync(LOG_FILE, JSON.stringify({ steps: [], startedAt: null }, null, 2)); return { cleared: true }; }