twist_threads_unstar
Remove a thread from your starred items in Twist to clean up your workspace and focus on current priorities.
Instructions
Unstars a thread.
Args: id: The id of the thread
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes |
Implementation Reference
- src/threads.py:205-225 (handler)The main handler function for the 'twist_threads_unstar' tool. It takes a thread ID, constructs parameters, and calls the Twist API endpoint 'threads/unstar' via twist_request to unstar the thread. Handles logging and errors appropriately.def twist_threads_unstar( ctx: Context, id: int ) -> str: """Unstars a thread. Args: id: The id of the thread """ all_params = locals() token = ctx.request_context.lifespan_context.twist_token params = {k: v for k, v in all_params.items() if k != 'ctx' and v is not None} try: logger.info(f"Unstarring thread with ID: {id}") twist_request("threads/unstar", params=params, token=token, method="POST") logger.info(f"Successfully unstarred thread with ID: {id}") return f"Successfully unstarred thread with ID: {id}" except Exception as error: logger.error(f"Error unstarring thread: {error}") return f"Error unstarring thread: {str(error)}"