Agent 背包操作
mc_agent_inventoryManage agent backpack inventory by counting items, checking space, viewing details, dropping items, transferring between slots, or clearing slots.
Instructions
對 Agent 背包做一件事:count 查槽內數量、space 查剩餘空間、detail 查物品細節、drop 丟出指定數量、dropAll 清空整槽方向、transfer 在槽之間搬移。Agent 是 Education Edition 專屬的機器人,必須先用 mc_agent_create 召喚。方向是相對 Agent 自身面向,不是世界方位。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slot | No | count/space/detail/drop 需要 | |
| action | Yes | ||
| quantity | No | drop/transfer 需要 | |
| direction | No | drop/dropAll 需要 | |
| destinationSlot | No | transfer 需要 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| data | Yes | ||
| elapsedMs | Yes | ||
| statusCode | Yes | ||
| commandLine | Yes | ||
| statusMessage | Yes |