MCP Fabric (Minecraft)
v1.1.0See and play Minecraft: Java Edition through the mcpfabric mod (Fabric and NeoForge).
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
get_status Server/client status
Get the current state of the running game: mod & Minecraft version, which side this bridge runs on (client / dedicated_server), whether an integrated server is present, whether the player is in a world, current dimension, and the list of available capability groups. Call this first to learn what you can do right now.
list_capabilities List capabilities
List every capability group and whether it is currently available on this side (e.g. control/interact/vision/nav are client-only; players/command admin need a server). Useful to decide which tools will work.
get_block Get block at position
Read the block at an exact integer position: its block id, blockstate properties, whether it is air/fluid/solid, light levels, and hardness. Requires a loaded chunk.
| Parameter | Type | Description |
|---|---|---|
x * | number | X coordinate (east/west). |
y * | number | Y coordinate (height). |
z * | number | Z coordinate (north/south). |
dimension | string | Dimension id, e.g. "minecraft:overworld", "minecraft:the_nether". Defaults to the current/overworld dimension. |
get_blocks_region Scan a cuboid region
Scan all blocks in the cuboid between two corners (inclusive) and return their ids. Regions above 16,777,216 positions (e.g. 256x256x256) are refused to protect the server: split larger areas. The answer is capped at maxBlocks (default 32768, truncated=true when hit); air is omitted unless includeAir is true. With includeState each block also has 'state', the id with its properties (facing, half, open, ...), to check that what was built faces the right way.
| Parameter | Type | Description |
|---|---|---|
from * | object | One corner of the cuboid. |
to * | object | Opposite corner of the cuboid. |
dimension | string | Dimension id, e.g. "minecraft:overworld", "minecraft:the_nether". Defaults to the current/overworld dimension. |
includeAir | boolean | Include air blocks in the result. |
includeState | boolean | Add each block's full state, e.g. "minecraft:oak_stairs[facing=east,half=bottom,shape=straight,waterlogged=false]". |
maxBlocks | integer | Override the per-call block cap. |
find_blocks Find nearby blocks by id
Search a spherical radius around a center point for blocks matching any of the given ids (e.g. minecraft:diamond_ore). Searches outward from the center, so the nearest blocks are always covered; a scan budget of 250,000 positions may stop it early (truncated=true, searchedRadius tells how far it got). Returns matches sorted by distance. Only searches loaded chunks.
| Parameter | Type | Description |
|---|---|---|
blockIds * | array | Block ids to match, e.g. ["minecraft:diamond_ore","minecraft:ancient_debris"]. |
center * | object | Center of the search sphere. |
radius * | integer | Search radius in blocks. |
dimension | string | Dimension id, e.g. "minecraft:overworld", "minecraft:the_nether". Defaults to the current/overworld dimension. |
maxResults | integer | Maximum matches to return. |
get_time_and_weather Time & weather
Get the current day-time (0-24000), total game-time, day count, and weather (raining/thundering) for a dimension.
| Parameter | Type | Description |
|---|---|---|
dimension | string | Dimension id, e.g. "minecraft:overworld", "minecraft:the_nether". Defaults to the current/overworld dimension. |
list_dimensions List dimensions
List all dimensions present on the server and which one the player is currently in.
raycast Raycast from a point
Cast a ray and report the first block and/or entity it hits. Blocks are hit by their outline shape, as the crosshair sees them (a ray above a bottom slab passes), and the ray stops at unloaded chunks. Provide either an explicit direction vector or yaw/pitch angles. Great for 'what am I looking at' and line-of-sight checks.
| Parameter | Type | Description |
|---|---|---|
origin * | object | Ray start position (usually an eye position). |
dimension | string | Dimension id, e.g. "minecraft:overworld", "minecraft:the_nether". Defaults to the current/overworld dimension. |
direction | object | Ray direction vector (need not be normalized). Use this OR yaw/pitch. |
includeEntities | boolean | Also test entities along the ray. |
includeFluids | boolean | Treat fluids as hittable. |
maxDistance | number | Maximum ray length in blocks. |
pitch | number | Pitch in degrees (-90 up .. 90 down). |
yaw | number | Yaw in degrees (Minecraft convention). Use with pitch instead of direction. |
set_block Set a block
Place/replace the block at an exact position with the given block id (optionally with blockstate properties as a string like 'minecraft:oak_log[axis=y]'). Properties left out take their defaults. 'state' is the block read back afterwards, with all its properties. Requires a server (integrated client or dedicated).
| Parameter | Type | Description |
|---|---|---|
blockId * | string | Block id, optionally with state, e.g. "minecraft:stone" or "minecraft:oak_stairs[facing=east]". |
x * | number | X coordinate (east/west). |
y * | number | Y coordinate (height). |
z * | number | Z coordinate (north/south). |
dimension | string | Dimension id, e.g. "minecraft:overworld", "minecraft:the_nether". Defaults to the current/overworld dimension. |
fill_blocks Fill a region with a block
Fill the cuboid between two corners with one block id. Volume is capped for safety. Requires a server.
| Parameter | Type | Description |
|---|---|---|
blockId * | string | Block id to fill with. |
from * | object | |
to * | object | |
dimension | string | Dimension id, e.g. "minecraft:overworld", "minecraft:the_nether". Defaults to the current/overworld dimension. |
set_time Set time of day
Set the day-time (0-24000; 0=dawn, 6000=noon, 12000=dusk, 18000=midnight). Requires a server.
| Parameter | Type | Description |
|---|---|---|
time * | integer | Day-time in ticks (0-24000). |
set_weather Set weather
Set the weather. Requires a server.
| Parameter | Type | Description |
|---|---|---|
weather * | string | Target weather. |
durationSeconds | integer | How long the weather should last. |
query_entities Query entities
List entities, optionally filtered by a sphere (center+radius), entity type ids, living-only, and whether to include players. Returns position, type, name, health and key flags for each.
| Parameter | Type | Description |
|---|---|---|
center | object | Center of the search sphere; omit to use the position of the only player in that dimension (the world spawn when there is none or several; centerSource says which). |
dimension | string | Dimension id, e.g. "minecraft:overworld", "minecraft:the_nether". Defaults to the current/overworld dimension. |
includePlayers | boolean | |
maxResults | integer | |
onlyLiving | boolean | |
radius | number | Search radius in blocks. |
types | array | Entity type ids to match, e.g. ["minecraft:zombie","minecraft:cow"]. |
get_entity Get entity details
Get detailed info about a single entity by UUID: type, position, velocity, health, equipment, NBT-derived attributes.
| Parameter | Type | Description |
|---|---|---|
uuid * | string | Entity UUID. |
summon_entity Summon entity
Summon an entity of the given type at a position, optionally with SNBT data. Requires a server.
| Parameter | Type | Description |
|---|---|---|
type * | string | Entity type id, e.g. "minecraft:armor_stand". |
x * | number | X coordinate (east/west). |
y * | number | Y coordinate (height). |
z * | number | Z coordinate (north/south). |
dimension | string | Dimension id, e.g. "minecraft:overworld", "minecraft:the_nether". Defaults to the current/overworld dimension. |
nbt | string | Optional SNBT, e.g. '{NoGravity:1b}'. |
remove_entity Remove entity
Discard (remove) a non-player entity by UUID. Requires a server.
| Parameter | Type | Description |
|---|---|---|
uuid * | string | Entity UUID to remove. |
list_players List online players
List all online players with name, UUID, position, dimension, health, food, game mode and ping. Requires a server.
get_player Get player details
Get detailed state for one online player. Requires a server.
| Parameter | Type | Description |
|---|---|---|
player * | string | Target player by name or UUID. Use "@all" where broadcasting is meaningful. |
teleport_player Teleport player
Teleport a player to coordinates (and optionally another dimension / facing). Requires a server.
| Parameter | Type | Description |
|---|---|---|
player * | string | Target player by name or UUID. Use "@all" where broadcasting is meaningful. |
x * | number | X coordinate (east/west). |
y * | number | Y coordinate (height). |
z * | number | Z coordinate (north/south). |
dimension | string | Dimension id, e.g. "minecraft:overworld", "minecraft:the_nether". Defaults to the current/overworld dimension. |
pitch | number | |
yaw | number |
set_gamemode Set player game mode
Set a player's game mode. Requires a server.
| Parameter | Type | Description |
|---|---|---|
mode * | string | |
player * | string | Target player by name or UUID. Use "@all" where broadcasting is meaningful. |
give_item Give item to player
Give an item stack to a player. Requires a server.
| Parameter | Type | Description |
|---|---|---|
itemId * | string | Item id, e.g. "minecraft:diamond". |
player * | string | Target player by name or UUID. Use "@all" where broadcasting is meaningful. |
count | integer | |
nbt | string | Optional SNBT components. |
apply_effect Apply status effect
Apply a potion/status effect to a player. Requires a server.
| Parameter | Type | Description |
|---|---|---|
effectId * | string | Effect id, e.g. "minecraft:speed". |
player * | string | Target player by name or UUID. Use "@all" where broadcasting is meaningful. |
amplifier | integer | |
durationSeconds | integer | |
showParticles | boolean |
message_player Send system message
Send a system/chat message to a player ("@all" to broadcast). Requires a server.
| Parameter | Type | Description |
|---|---|---|
player * | string | Target player by name or UUID. Use "@all" where broadcasting is meaningful. |
text * | string |
kick_player Kick player
Kick a player from the server. Requires a dedicated server.
| Parameter | Type | Description |
|---|---|---|
player * | string | Target player by name or UUID. Use "@all" where broadcasting is meaningful. |
reason | string |
run_command Run a server command
Execute an arbitrary Minecraft command at operator permission level 4 (do NOT include the leading slash) and capture its feedback output. This is extremely powerful (/setblock, /summon, /give, /tp, /gamerule, /execute, datapacks, ...). Requires a server.
| Parameter | Type | Description |
|---|---|---|
command * | string | Command without the leading slash, e.g. "time set day". |
send_chat Send chat message
Send a chat message. On a client this is sent as the local player (a leading '/' runs a command as that player, and needs enableCommands); on a dedicated server it is broadcast.
| Parameter | Type | Description |
|---|---|---|
message * | string |
show_message Show a message to the player
Client only. Show the local player a message from you, prefixed [AI], in their chat or on the action bar. Nothing is sent to the server or other players, so use it rather than send_chat to talk to the player. It works while the player has paused you (get_status reports aiPaused); formatting codes are removed and text is cut at 512 characters.
| Parameter | Type | Description |
|---|---|---|
text * | string | The message. |
actionBar | boolean | Show it briefly above the hotbar instead of in chat. |
get_recent_chat Get recent chat
Return recently observed chat & system messages (most recent last).
| Parameter | Type | Description |
|---|---|---|
limit | integer |
get_self Get local player state
Client-only. Full state of YOUR player: position, yaw/pitch, motion, health, food, saturation, air, XP, game mode, on-ground, in-fluid, selected hotbar slot, dimension.
get_inventory Get inventory
Client-only. Full inventory: main slots, hotbar, armor, offhand, and the selected slot. Each item reports id, count and durability.
get_equipment Get equipment
Client-only. Currently equipped items: main hand, off hand, helmet, chestplate, leggings, boots.
get_status_effects Get active effects
Client-only. Active status effects on your player with amplifier and remaining duration.
set_movement Set movement input
Client-only. Set held movement inputs as booleans; they persist until changed (like holding keys). Any omitted field is left unchanged. Combine with look/look_at to walk somewhere. Use stop_movement to release everything.
| Parameter | Type | Description |
|---|---|---|
back | boolean | |
forward | boolean | |
jump | boolean | |
left | boolean | |
right | boolean | |
sneak | boolean | |
sprint | boolean |
stop_movement Release all movement
Client-only. Release all movement inputs (stop walking/jumping/sneaking/sprinting).
look Set/adjust look angles
Client-only. Set absolute yaw/pitch, or apply relative deltas. Yaw: 0=south,-90=east,90=west,180=north. Pitch: -90=up, 90=down.
| Parameter | Type | Description |
|---|---|---|
deltaPitch | number | Relative pitch change in degrees. |
deltaYaw | number | Relative yaw change in degrees. |
pitch | number | Absolute pitch in degrees (-90..90). |
yaw | number | Absolute yaw in degrees. |
look_at Look at a point
Client-only. Rotate the player to face a world coordinate.
| Parameter | Type | Description |
|---|---|---|
x * | number | X coordinate (east/west). |
y * | number | Y coordinate (height). |
z * | number | Z coordinate (north/south). |
run_sequence Run a timed input sequence
Client-only. Run a short timed sequence of input steps in the client tick loop, so each press lasts an exact number of ticks and bridge latency stays out of the timing. Each step is either {input, down} (set one of forward/back/left/right/jump/sneak/sprint/use/attack down or up), {input, tap: true} (down for two ticks, then up), or {waitTicks} (1-1200). At most 64 steps after tap expansion; timeoutTicks (default 200, max 2400) bounds the whole sequence, and anything held is released when it ends, times out, is stopped, or the game pauses. Answers with the sequence receipt; poll sequence_status…
| Parameter | Type | Description |
|---|---|---|
steps * | array | The steps, in order. |
timeoutTicks | integer | Overall bound for the sequence, in ticks. |
sequence_status Timed sequence status
Client-only. The receipt of the current or last timed input sequence (run_sequence): whether it is active, its id, start/end ticks, whether it timed out, and the actual key transitions with tick stamps.
jump Jump once
Client-only. Perform a single jump.
start_using_item Start using held item
Client-only. Begin using/holding the right-click action of the held item (eat, draw bow, block with shield, etc.). Waits up to a second for the use to start: answers 'using' once it holds, or ok:false with result NOT_STARTED when the item has no hold action or the server cancelled the use (the use key is then released).
stop_using_item Stop using held item
Client-only. Let go of the right-click use action like releasing the use key: a drawn bow looses its arrow, a fully charged crossbow is loaded, eating stops. Answers 'not using an item' when nothing was in use.
break_block Break a block
Client-only. Break the block at a position. mode 'instant' breaks it at once: in creative through the normal break packet; in survival only on an integrated server with world writes enabled (the server breaks it). 'broke' is what the integrated server reports (null on a remote server). 'survival' performs realistic timed mining (must be reachable, ~within 5 blocks); it stops by itself when the block cannot break and reports a mining_finished event (see poll_events).
| Parameter | Type | Description |
|---|---|---|
x * | number | X coordinate (east/west). |
y * | number | Y coordinate (height). |
z * | number | Z coordinate (north/south). |
mode | string |
place_block Place held block
Client-only. Place the currently held block against the given position/face. Out of reach, nothing is sent (result OUT_OF_REACH). 'result' is the client's prediction; 'placed' is what the integrated server did (null on a remote server); target.serverState is the placed block with its properties (facing, half, ...), which follow the player's look direction and the clicked spot, so check them. Equip the desired block first with select_hotbar_slot.
| Parameter | Type | Description |
|---|---|---|
x * | number | X coordinate (east/west). |
y * | number | Y coordinate (height). |
z * | number | Z coordinate (north/south). |
face | string |
place_block_at Place held block with a given state
Client-only. Place the held block INTO the given cell so that it gets the properties you ask for (facing, half, axis, hinge, type...): the bridge tries every click within reach (which neighbour and face, which spot on it, which way to turn) against the block's own placement rules and uses one that gives that state, turning the player first. Properties left out are free. Answers with NO_SUPPORT (nothing next to the cell to place against), OUT_OF_REACH, OCCUPIED, CANNOT_PLACE, or NO_CLICK_GIVES_THAT_STATE with 'reachable' (the states possible from here: walk around or add a support block); on an…
| Parameter | Type | Description |
|---|---|---|
state * | string | Wanted block with the properties that matter, e.g. "oak_stairs[facing=north,half=top]" or "wall_torch[facing=east]". |
x * | number | X coordinate (east/west). |
y * | number | Y coordinate (height). |
z * | number | Z coordinate (north/south). |
use_item Use item / right-click
Client-only. Perform a right-click with the held item like the use key does: on the entity or block under the crosshair first, then the item on its own (e.g. eat, throw). 'target' says which one acted (entity, block or air).
attack_entity Attack entity
Client-only. Attack (left-click) an entity by UUID. Out of reach, nothing is sent (result OUT_OF_REACH). With an integrated server, the answer reports what the server did: removed, and for living targets damaged and serverHealth.
| Parameter | Type | Description |
|---|---|---|
uuid * | string |
use_entity Interact with entity
Client-only. Right-click/interact with an entity by UUID (e.g. trade with a villager, mount a horse, open a plugin NPC's menu). Like a player, it turns to look at the middle of the entity and clicks the spot it looks at. Out of reach, nothing is sent (result OUT_OF_REACH); otherwise 'result' is the client's prediction. Plugin NPCs often have a separate name-tag armor stand or text display above them: use the UUID of the NPC itself.
| Parameter | Type | Description |
|---|---|---|
uuid * | string |
drop_held_item Drop held item
Client-only. Drop the held item (one, or the whole stack).
| Parameter | Type | Description |
|---|---|---|
wholeStack | boolean |
select_hotbar_slot Select hotbar slot
Client-only. Select a hotbar slot (0-8) as the held item.
| Parameter | Type | Description |
|---|---|---|
slot * | integer |
drop_slot Drop a specific slot
Client-only. Drop the contents of a specific inventory slot.
| Parameter | Type | Description |
|---|---|---|
slot * | integer | Inventory slot index (0-8 hotbar, 9-35 main, 36-39 armor, 40 offhand). |
wholeStack | boolean |
swap_slots Swap two inventory slots
Client-only. Swap the items in two inventory slots via container clicks (player inventory must be the active screen-less context).
| Parameter | Type | Description |
|---|---|---|
slotA * | integer | |
slotB * | integer |
screenshot Capture screenshot
Client-only. Capture the current game framebuffer as a PNG image (at the game's current resolution) so a vision-capable model can literally see what the player sees. With marks: true, mobs and players in view get numbered labels (#1, #2, ...) on the image and a legend maps each number to its entity uuid, type and distance, so you can act on "#2" with attack_entity or use_entity.
| Parameter | Type | Description |
|---|---|---|
marks | boolean | Label the mobs and players in view with numbers and list them. |
describe_scene Describe visible scene
Client-only. Produce a structured, text description of what is visible: the block/entity directly under the crosshair, a grid of raycasts across the field of view, and nearby visible entities. A cheap alternative to a screenshot for non-vision models.
| Parameter | Type | Description |
|---|---|---|
maxDistance | number | |
rayColumns | integer | |
rayRows | integer |
start_recording Record the player
Client-only; needs enablePlayerControl. Start recording what the player does by hand: where they walk, hotbar choices, blocks broken and placed, blocks, items and entities used, containers opened (and what the inventory gained or lost) and their own chat. The player is told in chat. Ask the player to show you a task, then call stop_recording to get the steps (learn by demonstration) and a draft test. Stops by itself after 500 steps, 30 minutes or on leaving the world.
stop_recording Stop recording
Client-only. Stop the recording and return its steps (kind: start, move, select, break, place, use_block, use_item, use_entity, attack, open_container, close_container, chat, end; with positions, block states, items and t in ms) and `draft`, a mcpfabric-test file that replays them. Commands the player typed and clicks inside menus are not recorded.
| Parameter | Type | Description |
|---|---|---|
name | string | Name of the test in the draft. |
recording_status Recording status
Client-only. Whether a recording runs, how many steps it has, for how long, and why it stopped.
get_screen Current screen
Client-only. Report where the client is: inWorld, the open screen as a coarse kind (none, pause, chat, container, death, title, multiplayer, singleplayer, disconnected, connecting, loading, other), whether the game is paused, whether join_world can run now (canJoin), and the id of the world joined last in this game run. Call it when client tools fail with no_client_player or the player stops reacting.
close_screen Close the open screen
Client-only, in a world. Close the open screen: leaves the pause menu, chat or a container, and respawns the player on the death screen. Fails while a world is loading and outside a world (use join_world there).
list_worlds List worlds and servers
Client-only. List what join_world can join: saved singleplayer worlds (worldId sp:<folder>, name, lastPlayed in ms, joinable), newest first, and the server list entries as opaque mp: ids (the same ids session/agent memory uses; addresses and entry names are never returned). Also returns lastWorldId, the world joined last in this game run.
join_world Join a world or server
Client-only, from the menus (title, multiplayer, disconnected, ... screens). Open a singleplayer world or connect to a server by worldId from list_worlds; without worldId, rejoin the world played last in this game run (after a kick, a server restart or a lost connection). Only servers in the server list, or the one played last, can be joined. Returns immediately: poll get_screen until inWorld is true.
| Parameter | Type | Description |
|---|---|---|
worldId | string | World id from list_worlds or get_screen, e.g. "sp:New World" or "mp:3f2a...". Omit to rejoin the last world. |
get_ui List the widgets of the open screen
Client-only, needs enableUiControl. List the widgets of the open screen in focus order: id, type (button, checkbox, cycle, slider, text_field, text, other), text, active, checked (checkboxes), value (text fields) and position in GUI coordinates. Works on the pause, title, death, options, advancements, statistics and confirmation screens, container screens and screens added by other mods; with enableMenuUiControl also on the first-start accessibility screen, the world list and the create world screen. The server, chat, link, command block and other sensitive screens are refused (ui_refused). Cu…
click_widget Click a widget
Client-only, needs enableUiControl. Left-click a widget of the open screen, by id from get_ui or by its exact label (case-insensitive, must be unique). Returns the screen after the click. Refuses disabled widgets and the Quit Game, Realms and Reset Demo World buttons, and the world list's Delete, Edit and Re-Create. For sliders, fraction picks the position (0 = left, 1 = right).
| Parameter | Type | Description |
|---|---|---|
widget * | Widget id from get_ui, or its exact label. | |
fraction | number | Where to click across the widget, 0..1 (default 0.5); sets a slider's value. |
set_text_field Type into a text field
Client-only, needs enableUiControl. Replace the text of a text field on the open screen (by id from get_ui or by label), for example a search box or an anvil's name field. Returns the value the field accepted (fields can cut or filter text).
| Parameter | Type | Description |
|---|---|---|
text * | string | |
widget * | Widget id from get_ui, or its exact label. |
supervised_status Supervised mode status
Needs enableSupervisedControl. Report the supervised mode: which operations can run on this side right now (with the reason when one cannot), open actions that must be reconciled before anything else, the latest actions and their outcomes, the approved saves, the allowed command roots, the keys supervised input holds, and the limits (grant lifetime, longest input sample).
supervised_stop Stop supervised actions
STOP for the supervised mode; always available. No grant issued before this call admits anything any more, and any supervised input is released. It does not roll back effects that were already admitted.
supervised_input One supervised input sample
Client-only, needs enableSupervisedControl. Hold one movement key (forward, back, left or right) for a few ticks (1-10, 20 ticks = 1 s), then release it. One call is one approved action: a new move needs a new call. Refused while the player holds that key, a screen is open, or movement/navigation runs. Answers with outcome applied, not_applied, interrupted (STOP, the key was released, the world or dimension changed) or uncertain, plus the position before and after.
| Parameter | Type | Description |
|---|---|---|
direction * | string | |
ticks | integer | How long to hold the key, in client ticks. |
supervised_read_block Supervised block readback
Needs enableSupervisedControl and an integrated or dedicated server. Read one block at an exact position as one supervised action. Answers with outcome applied and the block, or not_applied with the reason (for example an unloaded chunk).
| Parameter | Type | Description |
|---|---|---|
x * | integer | |
y * | integer | |
z * | integer | |
dimension | string | Dimension id, e.g. "minecraft:overworld", "minecraft:the_nether". Defaults to the current/overworld dimension. |
supervised_set_block Supervised block change
Needs enableSupervisedControl and an integrated or dedicated server. Replace one block at an exact position, only if the block there is `expect` right now. Block state is allowed (oak_stairs[facing=north]), block data ({...}) is not. Answers with outcome applied (read back), not_applied (precondition failed, nothing changed) or uncertain (call supervised_reconcile, which reads the block again; the change is never retried automatically).
| Parameter | Type | Description |
|---|---|---|
block * | string | The new block, e.g. "minecraft:stone" or "oak_stairs[facing=north]". |
expect * | string | The block id that must be there now, e.g. "minecraft:air". |
x * | integer | |
y * | integer | |
z * | integer | |
dimension | string | Dimension id, e.g. "minecraft:overworld", "minecraft:the_nether". Defaults to the current/overworld dimension. |
supervised_command Supervised command
Needs enableSupervisedControl and an integrated or dedicated server. Run one server command whose first word is in supervisedCommands in mcpfabric.config.json (time and weather by default); see supervised_status for the list. Command data ({...}) is refused. Answers with outcome applied or not_applied and the command output; uncertain if the server did not answer in time.
| Parameter | Type | Description |
|---|---|---|
command * | string | The command without or with a leading slash, e.g. "time set day". |
supervised_enter_world Enter an approved save
Client-only, from the menus, needs enableSupervisedControl. Open a singleplayer save listed in supervisedWorlds in mcpfabric.config.json (worldId sp:<folder>, see supervised_status). Joining runs in the background: the outcome is pending, so call supervised_reconcile once get_screen shows inWorld (or after a few seconds) before doing anything else.
| Parameter | Type | Description |
|---|---|---|
worldId * | string | An approved save, e.g. "sp:Test World". |
supervised_leave_world Save and leave the world
Client-only, needs enableSupervisedControl. Save and quit the singleplayer world the player is in, like the pause menu's Save and Quit; worldId must name that world. The outcome is pending until supervised_reconcile sees the title screen; that the save reached the disk is not verified.
| Parameter | Type | Description |
|---|---|---|
worldId * | string | The world the player is in, as get_screen reports it (lastWorldId). |
supervised_reconcile Reconcile a supervised action
Needs enableSupervisedControl. Settle a supervised action whose outcome is pending or uncertain: reads the game again (the block, the world joined or left, the finished input sample) and reports the outcome. While any action is open, no other supervised action runs. If the outcome cannot be read back (a command), pass acknowledge: true to accept that it is unknown.
| Parameter | Type | Description |
|---|---|---|
actionId * | string | The actionId of the open action, e.g. "a3". |
acknowledge | boolean | Close the action as acknowledged when the readback cannot settle it. |
poll_events Poll recent game events
Return recently observed game events from the in-mod ring buffer (damage taken, entity spawn/death, block break/place, chat, dimension change, etc.). Filter by type and/or pass sinceId to get only events newer than one you've already seen.
| Parameter | Type | Description |
|---|---|---|
limit | integer | |
sinceId | integer | Only return events with id greater than this. |
types | array | Event type filter, e.g. ["chat","player_damage","entity_death"]. |
list_mods List loaded mods
Needs enableDevTools. The mods the loader has loaded (the game and the loader included): id, name and version, sorted by id.
list_registry List registry ids
Needs enableDevTools. Without a registry: every built-in registry with its size. With one (item, block, entity_type, mymod:machine...): its ids, sorted, filtered by namespace (a mod id) and/or a substring. Data-driven registries (biomes, enchantments) are not included.
| Parameter | Type | Description |
|---|---|---|
contains | string | Only ids containing this text. |
limit | integer | |
namespace | string | Only ids of this namespace, e.g. a mod id ("create"). |
registry | string | Registry id, e.g. "item" or "minecraft:block". Leave out to list the registries. |
read_log Read the game log
Needs enableDevTools. The newest entries of logs/latest.log (or debug.log) of this game: an entry is a log line with its stack trace. Filter by minimum level (WARN keeps WARN, ERROR and FATAL) and/or a substring. IP addresses, server addresses and the home folder are replaced; the log can still hold chat and player names.
| Parameter | Type | Description |
|---|---|---|
contains | string | Only entries containing this text, e.g. a mod id or "Exception". |
file | string | |
level | string | |
lines | integer | How many of the newest matching entries. |
read_crash_report Read a crash report
Needs enableDevTools. The newest crash report of this game folder (index 0; 1 is the one before), with the list of the ten newest. Addresses and the home folder are replaced.
| Parameter | Type | Description |
|---|---|---|
index | integer | |
maxChars | integer |
tick_control Freeze, step or speed up the game
Needs enableDevTools; changing it also needs enableCommands (it is what /tick does), and an integrated or dedicated server. query: rate, frozen, sprinting. freeze / unfreeze the world; step N ticks while frozen; sprint N ticks as fast as possible (crops grow, furnaces finish), stop_sprint; rate sets ticks per second (20 is normal). Affects every player on the server.
| Parameter | Type | Description |
|---|---|---|
action | string | |
rate | number | For rate: ticks per second. |
ticks | integer | For step and sprint. |
watch_blocks Watch blocks change
Needs enableDevTools and an integrated or dedicated server. Samples a region (up to 32x32x32) once per tick for the given number of ticks (at most 10 seconds of real time) and lists every block that changed: position, state before and after, and the tick it was seen. Use it to see what a redstone circuit, a farm or a machine from a mod actually does. A change undone within the same tick is not seen.
| Parameter | Type | Description |
|---|---|---|
from * | object | One corner of the region. |
to * | object | The opposite corner. |
dimension | string | Dimension id, e.g. "minecraft:overworld", "minecraft:the_nether". Defaults to the current/overworld dimension. |
maxChanges | integer | |
ticks | integer |
inspect_mob_brain Inspect a mob's AI
Needs enableDevTools and an integrated or dedicated server. What a living entity is thinking: its target, where it is walking, its goals by priority (running or not) and target goals, and for brain-driven mobs (villagers, piglins, axolotls...) the active activities, running behaviors and current memories. Get the uuid from query_entities. On Fabric before Minecraft 26.1, vanilla goal names appear as obfuscated class names (class_1234).
| Parameter | Type | Description |
|---|---|---|
uuid * | string | Entity UUID. |
agent_brief Agent brief (resume here)
One-call situation report for resuming work after a restart or context loss: world id, your position/vitals/inventory, the active goal path, the running job, saved script skills, remembered places nearby and a small map. Call this first in a new session.
observe Observe surroundings
Scan the loaded chunks around you (client-side, works in multiplayer) and update long-term state: the chunk map, remembered workstations/containers/portals/beds (new ones are added, vanished ones marked gone) and ore/wood counts. Optionally locate specific blocks with `find`. Cheap; call it after moving somewhere new.
| Parameter | Type | Description |
|---|---|---|
find | array | Block ids to locate, e.g. ["iron_ore","deepslate_iron_ore"]. |
radius | integer | Scan radius in chunks (clamped to what is loaded). |
map_view Show the explored map
North-up ASCII map of explored chunks around you (1 character = 1 chunk) with remembered places overlaid: base, deaths, portals, storage, workstations, rare ores. Unexplored chunks show as '?'.
| Parameter | Type | Description |
|---|---|---|
radius | integer | Radius in chunks. |
surroundings What is around me, relative to my view
Nearby mobs, players, dropped items and points of interest (containers, workstations, beds, portals), and optionally blocks you name, described relative to where you look: "zombie: 5 ahead, 2 right · 5.4 m (1 o'clock)". Easier to act on than world coordinates; each line still ends with the coordinates for tools that need them. Client side, works in multiplayer; needs enableVision.
| Parameter | Type | Description |
|---|---|---|
find | array | Block ids to locate as well, e.g. ["oak_log","iron_ore"]. |
limit | integer | Lines per section. |
radius | integer | Search radius in blocks. |
remember Remember something
Store a long-term memory for this world: a note (facts, player requests, plans), a place worth returning to (base, village, cave entrance — tag 'base' marks home on the map), an event, or a skill (a procedure that worked). Places default to your current position.
| Parameter | Type | Description |
|---|---|---|
title * | string | |
body | string | Details. |
dimension | string | |
here | boolean | Attach your current position (default: true for places). |
importance | number | 0..1, default 0.5. |
kind | string | |
tags | array | Short tags, e.g. ["base"], ["danger","lava"]. |
x | number | |
y | number | |
z | number |
recall Search memory
Search long-term memory (full-text, BM25) ranked with proximity, recency and importance. Also reports chunks where matching ores/logs were counted and storage holding matching items. Without a query, lists what is remembered near you. Pass ids for full entries. Entries this session already received are listed as 'already sent' — pass fresh:true to repeat them.
| Parameter | Type | Description |
|---|---|---|
fresh | boolean | Repeat entries already sent in this session. |
ids | array | Fetch these entries in full. |
includeGone | boolean | Include places marked gone. |
kind | string | |
limit | integer | |
query | string | Free text, e.g. "iron", "village", "where did I leave diamonds". |
radius | number | Only memories within this many blocks of you. |
tags | array |
memory_update Edit or delete a memory
Correct, re-tag, re-rate or delete a memory by id (e.g. mark a note obsolete, tag a place 'base').
| Parameter | Type | Description |
|---|---|---|
id * | integer | |
body | string | |
delete | boolean | |
importance | number | |
status | string | |
tags | array | |
title | string |
memory_verify Verify remembered places
Check remembered positions against the live world (like re-validating cached evidence): each place with a recorded block is reported valid, changed or gone; unloaded ones cannot be checked from here. Defaults to everything within 96 blocks.
| Parameter | Type | Description |
|---|---|---|
ids | array | |
radius | number |
goal_add Add a goal
Add a goal or a subgoal (with parent) to the persistent goal tree. Break big goals into concrete subgoals with a checkable doneWhen. Goals persist across sessions.
| Parameter | Type | Description |
|---|---|---|
title * | string | |
activate | boolean | Mark it active right away. |
detail | string | |
doneWhen | string | Checkable completion condition, e.g. "iron_pickaxe in inventory". |
parent | integer | Parent goal id for a subgoal. |
priority | integer | Higher runs first among siblings. |
goal_update Update a goal
Change a goal's status (pending/active/blocked/done/failed/dropped), record its outcome, edit it, move it under another parent, or delete it with its subgoals. Returns the next goal to work on.
| Parameter | Type | Description |
|---|---|---|
id * | integer | |
delete | boolean | |
detail | string | |
doneWhen | string | |
outcome | string | What happened / why it failed / what was learned. |
parent | New parent id, or null to make it a root goal. | |
priority | integer | |
status | string | |
title | string |
goal_list List goals
The persistent goal tree with statuses; the goal to work on next is marked. Closed goals are hidden unless all=true.
| Parameter | Type | Description |
|---|---|---|
all | boolean |
plan_craft Plan a craft
Expand an item into craft/smelt steps over the game's own recipes (vanilla and modded), using your current inventory, and list the raw materials still missing — plus remembered storage that holds them. On 1.21.2+ multiplayer only unlocked recipes are visible; singleplayer sees all.
| Parameter | Type | Description |
|---|---|---|
item * | string | Item id, e.g. "iron_pickaxe" or "create:cogwheel". |
count | integer | |
knownOnly | boolean | Only use recipes you have unlocked (what craft_item can execute). |
get_recipes Get recipes for an item
Recipes that produce an item, as reported by the game (crafting, smelting, stonecutting, smithing; vanilla and modded), with ingredient alternatives and whether you have unlocked each one.
| Parameter | Type | Description |
|---|---|---|
item * | string |
explore_next Suggest where to explore
Best unexplored frontier chunks from the map (nearest, keeping the previous exploring direction, avoiding water) with a walkable target for each. Does not move; use travel_to, or the explore job to walk there automatically.
| Parameter | Type | Description |
|---|---|---|
count | integer |
build_plan Save a build plan
Save a structure as a plan before building it, and check the plan: palette characters map to blocks with the properties that matter ("S": "oak_stairs[facing=north,half=bottom]"), layers go bottom-up, each layer is rows north → south and each row is columns west → east. ' ' = any block (not checked), '.' = must stay empty (doorways, head room, the cell a door opens into, windows). Only the properties you write are checked later, so pin facing/half/axis/hinge where they matter. A stair climbs toward its facing: on a roof every stair faces the ridge (the north slope faces south), half=top tur…
| Parameter | Type | Description |
|---|---|---|
name * | string | |
layers | array | |
origin | object | |
palette | object | |
rotate | ||
spots | array |
import_schematic Import a schematic as a plan
Turn a Sponge schematic (.schem from WorldEdit or FastAsyncWorldEdit, up to 64x64x64) from the schematics folder into a saved build plan, then answer like build_plan (size, materials vs inventory, warnings). Blocks only: chest contents, sign text and entities are not imported. Properties the game sets from the neighbours (fence and wall connections, stair corners) are left free. air: 'any' (default) leaves air cells alone, 'empty' makes them cells that must stay empty (the build then clears them). Without file, lists the schematics in the folder.
| Parameter | Type | Description |
|---|---|---|
air | string | |
file | string | File name in the schematics folder, e.g. "tower.schem". |
name | string | Name of the plan to save. |
origin | object | Lowest north-west corner in the world after turning. |
rotate |
export_schematic Export a plan as a schematic
Write a saved build plan to the schematics folder as a Sponge schematic (version 2, .schem) that WorldEdit can //schem load. Unturned (the plan as written); cells not checked become structure voids, cells that must stay empty become air.
| Parameter | Type | Description |
|---|---|---|
file * | string | File name to write, e.g. "tower.schem". |
name * | string | The saved plan. |
overwrite | boolean |
build_verify Check a build against its plan
Compare a saved plan with the world: every block (id and the properties the plan pins, e.g. facing), every cell that must stay empty, and whether each spot can be walked to from the first one — when one cannot, it names the fewest blocks in the way. Call it after building and after every fix; build_structure repairs the plan cells itself.
| Parameter | Type | Description |
|---|---|---|
name * | string |
build_structure Build a plan (job)
Background job: build or repair a saved plan. It first clears cells that must be empty and blocks that are wrong (wrong block, or the right one facing the wrong way), then places the blocks bottom-up with the exact properties of the plan (choosing where to stand and how to click), the hanging and standing ones (torches, doors, ladders, beds) last, then runs build_verify. method 'place' builds like a player from the inventory (fails up front when materials are missing); 'set' writes blocks on the server (needs enableWorldWrite) without items.
| Parameter | Type | Description |
|---|---|---|
name * | string | |
maxSeconds | integer | |
method | string | |
waitSeconds | number | Block up to this many seconds for the job to finish before returning (default 0: return at once). |
travel_to Travel to a position (job)
Background job: go to a position (or a remembered place by id) in path-finding segments, routing around obstacles and stopping if health gets low. Walks, swims, climbs ladders, opens doors, and where needed digs through blocks and pillars up on cobblestone/dirt from the hotbar. Longer range than navigate_to. Returns a job id at once.
| Parameter | Type | Description |
|---|---|---|
allowDig | boolean | Dig through blocks when going around is longer. |
allowPillar | boolean | Pillar up on throwaway blocks from the hotbar. |
allowSwim | boolean | Swim across water. |
place | integer | Memory id of a place to go to instead of coordinates. |
reach | number | |
sprint | boolean | |
waitSeconds | number | Block up to this many seconds for the job to finish before returning (default 0: return at once). |
x | number | |
y | number | Defaults to the mapped surface height there, else your height. |
z | number |
explore Explore (job)
Background job: repeatedly walk to the best frontier of the map, observing as it goes (moving like travel_to, digging and pillaring where needed), and report new chunks, places and ores. Unreachable frontiers are remembered and skipped.
| Parameter | Type | Description |
|---|---|---|
legs | integer | How many frontier targets to visit. |
waitSeconds | number | Block up to this many seconds for the job to finish before returning (default 0: return at once). |
collect_blocks Collect blocks (job)
Background job: find the nearest exposed blocks of the given types, walk to them, pick the best hotbar tool, mine them and pick up the drops, until `count` are broken. When none are exposed, tunnels to buried ones up to 16 blocks away (dig: false turns that off). Refuses blocks your tools cannot harvest.
| Parameter | Type | Description |
|---|---|---|
blocks * | array | Block ids, e.g. ["oak_log","birch_log"] or ["iron_ore","deepslate_iron_ore"]. |
count * | integer | |
dig | boolean | Tunnel to buried blocks and dig on the way. |
maxSeconds | integer | |
radius | integer | Search radius in blocks. |
waitSeconds | number | Block up to this many seconds for the job to finish before returning (default 0: return at once). |
craft_item Craft an item (job)
Background job: plan and craft an item including intermediates (planks → sticks → tool) with the recipe book, using the 2×2 grid or a crafting table (walks to a nearby one, or places one from the inventory). Fails with the plan if materials are missing or a smelting step is needed.
| Parameter | Type | Description |
|---|---|---|
item * | string | |
count | integer | |
waitSeconds | number | Block up to this many seconds for the job to finish before returning (default 0: return at once). |
job_status Job status
Status, progress and log of the running (or last) job. Waits up to waitSeconds for it to finish first.
| Parameter | Type | Description |
|---|---|---|
id | integer | |
waitSeconds | number |
job_cancel Cancel the job
Stop the running job and release movement.
| Parameter | Type | Description |
|---|---|---|
id | integer |
open_container Open a container
Open the chest/barrel/furnace/crafting table/modded machine at a position within reach, list its contents and remember them (so recall and plan_craft know what is stored where). Items with a custom name or lore are listed with it, as untrusted text from the game. Leaves the screen open for container_transfer; close_container when done.
| Parameter | Type | Description |
|---|---|---|
x * | number | X coordinate. |
y * | number | Y coordinate. |
z * | number | Z coordinate. |
container_transfer Move items in/out of the open container
With a container open: take items from it into your inventory, or put items from your inventory into it (whole stacks, shift-click style). Filter by item id and stop after roughly `count` items. Updates the remembered contents.
| Parameter | Type | Description |
|---|---|---|
direction * | string | |
count | integer | Stop once at least this many were moved. |
item | string | Only this item id (default: everything). |
close_container Close the open container
Close the currently open container / crafting screen.
run_script Run a script
Run a short JavaScript program (ES2023 in a QuickJS sandbox: no Node, files, network or timers) that drives the game through the bridge, instead of many tool calls; top-level await and return work. API: `await mc.call(method, params)` calls a bridge tool by name or RPC method (mc.call("get_self") = mc.call("player.getState")); every bridge tool is also a helper with the same parameters and checks, e.g. `await mc.get_self()`, `await mc.find_blocks({ center, radius, blockIds })`, `await mc.break_block({ x, y, z })`. supervised_* tools are refused. A failed call throws an Error with `code` (e.g.…
| Parameter | Type | Description |
|---|---|---|
code * | string | The program: the body of an async function. |
args | JSON value the program reads as mc.args. | |
timeoutSeconds | number | Wall-clock limit of the run in seconds (default 60, max 300). |
save_skill Save a script as a skill
Keep a program that worked as a named skill of this world, to run again with run_skill and new args (read them from mc.args). The code is compiled first; a syntax error is refused. Saving under an existing name replaces it.
| Parameter | Type | Description |
|---|---|---|
code * | string | The program, as for run_script. |
description * | string | What it does and which args it takes. |
name * | string | Skill name, e.g. mine_vein or build_wall. |
list_skills List skills
The saved skills of this world with their descriptions and last outcome. With name, also that skill's code.
| Parameter | Type | Description |
|---|---|---|
name | string | Show this skill's code too. |
run_skill Run a skill
Run a saved skill with args (its mc.args), under the same sandbox and limits as run_script.
| Parameter | Type | Description |
|---|---|---|
name * | string | |
args | JSON value the program reads as mc.args. | |
timeoutSeconds | number | Wall-clock limit of the run in seconds (default 60, max 300). |
delete_skill Delete a skill
Delete a saved skill of this world.
| Parameter | Type | Description |
|---|---|---|
name * | string |
open_dashboard Open the agent dashboard
Show the user a live panel of the agent: position, health and food, the running job, the explored map, the goal tree and the inventory, with a STOP button. It refreshes itself while open. In hosts without MCP Apps it returns a short text summary.
dashboard_state Dashboard state
Current snapshot for the open dashboard (called by the panel).
dashboard_stop Stop the agent
The dashboard's STOP button: cancel the running job and release movement, navigation, mining and supervised input.