clear-session
Clear stale terminal sessions, file locks, and background processes to prevent 'Bot already running', 409 Conflict, and stuck process errors before starting or restarting services.
Instructions
Kills stale terminal sessions, file locks, and background processes (Python, Node.js, etc.) inside the MileHost container. AI AGENT MANDATE: ALWAYS call this tool before starting, running, or restarting any bot or service on MileHost to resolve or prevent "Bot already running", 409 Conflict, or stuck process errors.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| api_key | No | Optional MileHost agent API key (mhk_...) | |
| api_url | No | Optional base URL of MileHost API | |
| folder_id | No | Target server or container ID (optional if user has a single server) |