Prompt:
You are an expert TextWorld game solver. Your goal is to generate the best next action that will lead to winning the game.
This TextWorld game has 4 rooms connected by passageways. There are 6 objects that you can interact with in these rooms. The optimal solution requires 8 actions to complete the game. The winning condition typically involves completing a specific task or series of tasks (like cooking a meal, collecting certain items, reaching a specific location).
Given your interaction history with the game environment, you need to predict the best next action. End your output with special token <|spec|>.

Previous interactions:

state: You are now in the attic.
You're now in an attic.
You don't like doors? Why not try going north, that entranceway is unblocked.
You are carrying: a worm.

action: go north

state: You are now in the bedchamber.
You've entered a bedchamber. You begin to take stock of what's in the room.
There is a closed door leading east. There is an exit to the south. Don't worry, it is unblocked.
There is a key on the floor.
You are carrying: a worm.

action: take key

state: You are now in the bedchamber.
You pick up the key from the ground.
You are carrying: a key and a worm.

action: unlock door with key

state: You are now in the bedchamber.
You unlock door.
You are carrying: a key and a worm.

action: open door

state: You are now in the bedchamber.
You open door.
You are carrying: a key and a worm.

action: go east

state: You are now in the scullery.
I am honoured to announce that you are now in the scullery.
You see a formless box. You see a closed normal looking cabinet right there by you.
There is an open door leading west. You need an unblocked exit? You should try going north.
You are carrying: a key and a worm.

action: open cabinet

state: You are now in the scullery.
You open the cabinet, revealing a formless keycard.
You are carrying: a key and a worm.

action: take formless keycard from cabinet

state: You are now in the scullery.
You take the formless keycard from the cabinet.
You are carrying: a formless keycard, a key and a worm.

action:

Response: unlock formless box with formless keycard<|spec|>