MCP Fabric (Minecraft)

v1.1.0
io.github.denfry/mcpfabric Checked 3 hours ago Published 5 hours ago

See 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.

ParameterTypeDescription
x *numberX coordinate (east/west).
y *numberY coordinate (height).
z *numberZ coordinate (north/south).
dimensionstringDimension 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.

ParameterTypeDescription
from *objectOne corner of the cuboid.
to *objectOpposite corner of the cuboid.
dimensionstringDimension id, e.g. "minecraft:overworld", "minecraft:the_nether". Defaults to the current/overworld dimension.
includeAirbooleanInclude air blocks in the result.
includeStatebooleanAdd each block's full state, e.g. "minecraft:oak_stairs[facing=east,half=bottom,shape=straight,waterlogged=false]".
maxBlocksintegerOverride 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.

ParameterTypeDescription
blockIds *arrayBlock ids to match, e.g. ["minecraft:diamond_ore","minecraft:ancient_debris"].
center *objectCenter of the search sphere.
radius *integerSearch radius in blocks.
dimensionstringDimension id, e.g. "minecraft:overworld", "minecraft:the_nether". Defaults to the current/overworld dimension.
maxResultsintegerMaximum 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.

ParameterTypeDescription
dimensionstringDimension 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.

ParameterTypeDescription
origin *objectRay start position (usually an eye position).
dimensionstringDimension id, e.g. "minecraft:overworld", "minecraft:the_nether". Defaults to the current/overworld dimension.
directionobjectRay direction vector (need not be normalized). Use this OR yaw/pitch.
includeEntitiesbooleanAlso test entities along the ray.
includeFluidsbooleanTreat fluids as hittable.
maxDistancenumberMaximum ray length in blocks.
pitchnumberPitch in degrees (-90 up .. 90 down).
yawnumberYaw 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).

ParameterTypeDescription
blockId *stringBlock id, optionally with state, e.g. "minecraft:stone" or "minecraft:oak_stairs[facing=east]".
x *numberX coordinate (east/west).
y *numberY coordinate (height).
z *numberZ coordinate (north/south).
dimensionstringDimension 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.

ParameterTypeDescription
blockId *stringBlock id to fill with.
from *object
to *object
dimensionstringDimension 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.

ParameterTypeDescription
time *integerDay-time in ticks (0-24000).

set_weather Set weather

Set the weather. Requires a server.

ParameterTypeDescription
weather *stringTarget weather.
durationSecondsintegerHow 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.

ParameterTypeDescription
centerobjectCenter 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).
dimensionstringDimension id, e.g. "minecraft:overworld", "minecraft:the_nether". Defaults to the current/overworld dimension.
includePlayersboolean
maxResultsinteger
onlyLivingboolean
radiusnumberSearch radius in blocks.
typesarrayEntity 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.

ParameterTypeDescription
uuid *stringEntity UUID.

summon_entity Summon entity

Summon an entity of the given type at a position, optionally with SNBT data. Requires a server.

ParameterTypeDescription
type *stringEntity type id, e.g. "minecraft:armor_stand".
x *numberX coordinate (east/west).
y *numberY coordinate (height).
z *numberZ coordinate (north/south).
dimensionstringDimension id, e.g. "minecraft:overworld", "minecraft:the_nether". Defaults to the current/overworld dimension.
nbtstringOptional SNBT, e.g. '{NoGravity:1b}'.

remove_entity Remove entity

Discard (remove) a non-player entity by UUID. Requires a server.

ParameterTypeDescription
uuid *stringEntity 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.

ParameterTypeDescription
player *stringTarget 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.

ParameterTypeDescription
player *stringTarget player by name or UUID. Use "@all" where broadcasting is meaningful.
x *numberX coordinate (east/west).
y *numberY coordinate (height).
z *numberZ coordinate (north/south).
dimensionstringDimension id, e.g. "minecraft:overworld", "minecraft:the_nether". Defaults to the current/overworld dimension.
pitchnumber
yawnumber

set_gamemode Set player game mode

Set a player's game mode. Requires a server.

ParameterTypeDescription
mode *string
player *stringTarget 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.

ParameterTypeDescription
itemId *stringItem id, e.g. "minecraft:diamond".
player *stringTarget player by name or UUID. Use "@all" where broadcasting is meaningful.
countinteger
nbtstringOptional SNBT components.

apply_effect Apply status effect

Apply a potion/status effect to a player. Requires a server.

ParameterTypeDescription
effectId *stringEffect id, e.g. "minecraft:speed".
player *stringTarget player by name or UUID. Use "@all" where broadcasting is meaningful.
amplifierinteger
durationSecondsinteger
showParticlesboolean

message_player Send system message

Send a system/chat message to a player ("@all" to broadcast). Requires a server.

ParameterTypeDescription
player *stringTarget 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.

ParameterTypeDescription
player *stringTarget player by name or UUID. Use "@all" where broadcasting is meaningful.
reasonstring

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.

ParameterTypeDescription
command *stringCommand 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.

ParameterTypeDescription
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.

ParameterTypeDescription
text *stringThe message.
actionBarbooleanShow it briefly above the hotbar instead of in chat.

get_recent_chat Get recent chat

Return recently observed chat & system messages (most recent last).

ParameterTypeDescription
limitinteger

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.

ParameterTypeDescription
backboolean
forwardboolean
jumpboolean
leftboolean
rightboolean
sneakboolean
sprintboolean

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.

ParameterTypeDescription
deltaPitchnumberRelative pitch change in degrees.
deltaYawnumberRelative yaw change in degrees.
pitchnumberAbsolute pitch in degrees (-90..90).
yawnumberAbsolute yaw in degrees.

look_at Look at a point

Client-only. Rotate the player to face a world coordinate.

ParameterTypeDescription
x *numberX coordinate (east/west).
y *numberY coordinate (height).
z *numberZ 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…

ParameterTypeDescription
steps *arrayThe steps, in order.
timeoutTicksintegerOverall 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).

ParameterTypeDescription
x *numberX coordinate (east/west).
y *numberY coordinate (height).
z *numberZ coordinate (north/south).
modestring

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.

ParameterTypeDescription
x *numberX coordinate (east/west).
y *numberY coordinate (height).
z *numberZ coordinate (north/south).
facestring

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…

ParameterTypeDescription
state *stringWanted block with the properties that matter, e.g. "oak_stairs[facing=north,half=top]" or "wall_torch[facing=east]".
x *numberX coordinate (east/west).
y *numberY coordinate (height).
z *numberZ 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.

ParameterTypeDescription
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.

ParameterTypeDescription
uuid *string

drop_held_item Drop held item

Client-only. Drop the held item (one, or the whole stack).

ParameterTypeDescription
wholeStackboolean

select_hotbar_slot Select hotbar slot

Client-only. Select a hotbar slot (0-8) as the held item.

ParameterTypeDescription
slot *integer

drop_slot Drop a specific slot

Client-only. Drop the contents of a specific inventory slot.

ParameterTypeDescription
slot *integerInventory slot index (0-8 hotbar, 9-35 main, 36-39 armor, 40 offhand).
wholeStackboolean

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).

ParameterTypeDescription
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.

ParameterTypeDescription
marksbooleanLabel 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.

ParameterTypeDescription
maxDistancenumber
rayColumnsinteger
rayRowsinteger

navigate_to Navigate to a position

Client-only. Asynchronously move the player to a target position using A* pathfinding: walks, jumps up 1 block, drops down (at most 3 blocks unless into water), swims at the surface, climbs ladders and vines, and opens wooden doors and fence gates. Unless turned off it also digs through blocks with the best hotbar tool when going around is longer (never next to water or lava, never under its own feet, never bedrock or containers), and pillars up by jumping and placing cobblestone, dirt or similar from the hotbar. Returns immediately with the path's move counts; poll navigation_status (it repor…

ParameterTypeDescription
x *numberX coordinate (east/west).
y *numberY coordinate (height).
z *numberZ coordinate (north/south).
allowDigbooleanBreak blocks in the way when that is shorter than going around.
allowPillarbooleanPillar up on throwaway blocks (cobblestone, dirt, netherrack...) from the hotbar.
allowSwimbooleanSwim across deep water.
reachRadiusnumberStop when within this many blocks of the target.
sprintboolean
timeoutSecondsinteger

navigation_status Navigation status

Client-only. Report whether navigation is active, the target, remaining distance/steps, the current move (walk, jump, fall, swim, climb, door, dig, pillar), and whether the bot appears stuck. When it ended, `state` says why (reached, timeout, dig_failed, unsafe_dig, no_blocks, pillar_failed, step_timeout, stopped).

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.

ParameterTypeDescription
namestringName 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.

stop_navigation Stop navigation

Client-only. Cancel any active navigation and release movement.

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.

ParameterTypeDescription
worldIdstringWorld 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).

ParameterTypeDescription
widget *Widget id from get_ui, or its exact label.
fractionnumberWhere 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).

ParameterTypeDescription
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.

ParameterTypeDescription
direction *string
ticksintegerHow 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).

ParameterTypeDescription
x *integer
y *integer
z *integer
dimensionstringDimension 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).

ParameterTypeDescription
block *stringThe new block, e.g. "minecraft:stone" or "oak_stairs[facing=north]".
expect *stringThe block id that must be there now, e.g. "minecraft:air".
x *integer
y *integer
z *integer
dimensionstringDimension 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.

ParameterTypeDescription
command *stringThe 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.

ParameterTypeDescription
worldId *stringAn 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.

ParameterTypeDescription
worldId *stringThe 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.

ParameterTypeDescription
actionId *stringThe actionId of the open action, e.g. "a3".
acknowledgebooleanClose 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.

ParameterTypeDescription
limitinteger
sinceIdintegerOnly return events with id greater than this.
typesarrayEvent 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.

ParameterTypeDescription
containsstringOnly ids containing this text.
limitinteger
namespacestringOnly ids of this namespace, e.g. a mod id ("create").
registrystringRegistry 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.

ParameterTypeDescription
containsstringOnly entries containing this text, e.g. a mod id or "Exception".
filestring
levelstring
linesintegerHow 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.

ParameterTypeDescription
indexinteger
maxCharsinteger

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.

ParameterTypeDescription
actionstring
ratenumberFor rate: ticks per second.
ticksintegerFor 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.

ParameterTypeDescription
from *objectOne corner of the region.
to *objectThe opposite corner.
dimensionstringDimension id, e.g. "minecraft:overworld", "minecraft:the_nether". Defaults to the current/overworld dimension.
maxChangesinteger
ticksinteger

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).

ParameterTypeDescription
uuid *stringEntity 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.

ParameterTypeDescription
findarrayBlock ids to locate, e.g. ["iron_ore","deepslate_iron_ore"].
radiusintegerScan 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 '?'.

ParameterTypeDescription
radiusintegerRadius 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.

ParameterTypeDescription
findarrayBlock ids to locate as well, e.g. ["oak_log","iron_ore"].
limitintegerLines per section.
radiusintegerSearch 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.

ParameterTypeDescription
title *string
bodystringDetails.
dimensionstring
herebooleanAttach your current position (default: true for places).
importancenumber0..1, default 0.5.
kindstring
tagsarrayShort tags, e.g. ["base"], ["danger","lava"].
xnumber
ynumber
znumber

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.

ParameterTypeDescription
freshbooleanRepeat entries already sent in this session.
idsarrayFetch these entries in full.
includeGonebooleanInclude places marked gone.
kindstring
limitinteger
querystringFree text, e.g. "iron", "village", "where did I leave diamonds".
radiusnumberOnly memories within this many blocks of you.
tagsarray

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').

ParameterTypeDescription
id *integer
bodystring
deleteboolean
importancenumber
statusstring
tagsarray
titlestring

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.

ParameterTypeDescription
idsarray
radiusnumber

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.

ParameterTypeDescription
title *string
activatebooleanMark it active right away.
detailstring
doneWhenstringCheckable completion condition, e.g. "iron_pickaxe in inventory".
parentintegerParent goal id for a subgoal.
priorityintegerHigher 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.

ParameterTypeDescription
id *integer
deleteboolean
detailstring
doneWhenstring
outcomestringWhat happened / why it failed / what was learned.
parentNew parent id, or null to make it a root goal.
priorityinteger
statusstring
titlestring

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.

ParameterTypeDescription
allboolean

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.

ParameterTypeDescription
item *stringItem id, e.g. "iron_pickaxe" or "create:cogwheel".
countinteger
knownOnlybooleanOnly 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.

ParameterTypeDescription
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.

ParameterTypeDescription
countinteger

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…

ParameterTypeDescription
name *string
layersarray
originobject
paletteobject
rotate
spotsarray

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.

ParameterTypeDescription
airstring
filestringFile name in the schematics folder, e.g. "tower.schem".
namestringName of the plan to save.
originobjectLowest 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.

ParameterTypeDescription
file *stringFile name to write, e.g. "tower.schem".
name *stringThe saved plan.
overwriteboolean

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.

ParameterTypeDescription
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.

ParameterTypeDescription
name *string
maxSecondsinteger
methodstring
waitSecondsnumberBlock 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.

ParameterTypeDescription
allowDigbooleanDig through blocks when going around is longer.
allowPillarbooleanPillar up on throwaway blocks from the hotbar.
allowSwimbooleanSwim across water.
placeintegerMemory id of a place to go to instead of coordinates.
reachnumber
sprintboolean
waitSecondsnumberBlock up to this many seconds for the job to finish before returning (default 0: return at once).
xnumber
ynumberDefaults to the mapped surface height there, else your height.
znumber

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.

ParameterTypeDescription
legsintegerHow many frontier targets to visit.
waitSecondsnumberBlock 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.

ParameterTypeDescription
blocks *arrayBlock ids, e.g. ["oak_log","birch_log"] or ["iron_ore","deepslate_iron_ore"].
count *integer
digbooleanTunnel to buried blocks and dig on the way.
maxSecondsinteger
radiusintegerSearch radius in blocks.
waitSecondsnumberBlock 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.

ParameterTypeDescription
item *string
countinteger
waitSecondsnumberBlock 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.

ParameterTypeDescription
idinteger
waitSecondsnumber

job_cancel Cancel the job

Stop the running job and release movement.

ParameterTypeDescription
idinteger

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.

ParameterTypeDescription
x *numberX coordinate.
y *numberY coordinate.
z *numberZ 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.

ParameterTypeDescription
direction *string
countintegerStop once at least this many were moved.
itemstringOnly 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.…

ParameterTypeDescription
code *stringThe program: the body of an async function.
argsJSON value the program reads as mc.args.
timeoutSecondsnumberWall-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.

ParameterTypeDescription
code *stringThe program, as for run_script.
description *stringWhat it does and which args it takes.
name *stringSkill 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.

ParameterTypeDescription
namestringShow 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.

ParameterTypeDescription
name *string
argsJSON value the program reads as mc.args.
timeoutSecondsnumberWall-clock limit of the run in seconds (default 60, max 300).

delete_skill Delete a skill

Delete a saved skill of this world.

ParameterTypeDescription
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.