heim_clear
Clear the local cache of the Heim runtime to stop it and remove all applications, logs, and metrics. Use this tool to reset the runtime environment effectively.
Instructions
Clears the local cache of the Heim runtime which will attempt to stop the runtime and remove all applications, logs, metrics, etc. from the runtime.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools.ts:229-247 (handler)The handler function that executes the 'heim clear --force' command to clear the local Heim runtime cache and returns the output or error.async () => { const execPromise = util.promisify(exec); try { const { stdout, stderr } = await execPromise("heim clear --force"); return { content: [ { type: "text", text: `stdout:\n${stdout}\nstderr:\n${stderr}`, }, ], }; } catch (err: any) { return { content: [{ type: "text", text: `Error: ${err.message}` }], isError: true, }; } }
- src/tools.ts:219-248 (registration)Registers the 'heim_clear' tool using server.tool method, specifying its description, title, and operational hints like destructiveHint.server.tool( "heim_clear", "Clears the local cache of the Heim runtime which will attempt to stop the runtime and remove all applications, logs, metrics, etc. from the runtime.", { title: "Clear Heim Runtime", destructiveHint: true, readOnlyHint: false, idempotentHint: false, openWorldHint: false, }, async () => { const execPromise = util.promisify(exec); try { const { stdout, stderr } = await execPromise("heim clear --force"); return { content: [ { type: "text", text: `stdout:\n${stdout}\nstderr:\n${stderr}`, }, ], }; } catch (err: any) { return { content: [{ type: "text", text: `Error: ${err.message}` }], isError: true, }; } } );