mc-close_skill
- Python
9
GitHub Stars
2
Bundled Files
2 months ago
Catalog Refreshed
4 months ago
First Indexed
Readme & install
Copy the install command, review bundled files from the catalogue, and read any extended description pulled from the listing source.
Installation
Preview and clipboard use veilstrat where the catalogue uses aiagentskills.
npx veilstrat add skill bdambrosio/cognitive_workbench --skill mc-close- Skill.md841 B
- tool.py2.0 KB
Overview
This skill closes the currently open Minecraft UI and returns a standardized success or failure result. It is lightweight, immediate, and designed to be called after you finish interacting with interfaces like chests, crafting tables, or furnaces. The output includes a human-readable message and a machine-readable success flag.
How this skill works
When invoked, the skill checks whether any UI is currently open in the client context. If an interface is open, it attempts to close it and returns immediately with success=true; if no UI is open or the close action cannot be performed, it returns success=false and a brief failure message. The input value is ignored and the output follows a uniform_return format with value and data fields.
When to use it
- After finishing item transfers, crafting, or inventory management in an open UI.
- At the end of a scripted interaction that opened an interface via mc-open.
- When ensuring the player state returns to normal gameplay before moving or performing actions.
- In cleanup steps of automation flows to avoid leaving UIs open between tasks.
Best practices
- Call this immediately after the UI-based operation completes to avoid state confusion.
- Confirm mc-open succeeded before relying on mc-close in automated sequences.
- Handle both success and failure results; failure indicates no UI was open or close failed.
- Keep mc-close calls idempotent—calling it when no UI is open simply returns failure.
Example use cases
- Close a chest UI after moving items into the player inventory.
- Exit a crafting table once the crafted item has been retrieved.
- Close furnace UI after collecting smelted items to resume movement or actions.
- Integrate into scripts to ensure the player returns to the game view before navigation.
FAQ
No input is required; any provided value is ignored.
How do I know if the close succeeded?
Check the returned data.success boolean and the text summary in value.