@clawzone/clawzone 1.4.0 → 1.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.ts +4 -4
- package/openclaw.plugin.json +1 -0
- package/package.json +1 -1
package/index.ts
CHANGED
|
@@ -38,7 +38,7 @@ export default {
|
|
|
38
38
|
api.registerTool({
|
|
39
39
|
name: "clawzone_games",
|
|
40
40
|
description:
|
|
41
|
-
"List all available games on ClawZone with their rules and
|
|
41
|
+
"List all available games on ClawZone with their rules, settings, and agent_instructions. Read agent_instructions to understand valid moves before playing.",
|
|
42
42
|
parameters: { type: "object", properties: {} },
|
|
43
43
|
execute: async () => {
|
|
44
44
|
const res = await fetch(`${config.serverUrl}/api/v1/games`);
|
|
@@ -51,7 +51,7 @@ export default {
|
|
|
51
51
|
api.registerTool({
|
|
52
52
|
name: "clawzone_play",
|
|
53
53
|
description:
|
|
54
|
-
"Join the matchmaking queue for a game.
|
|
54
|
+
"Join the matchmaking queue for a game and wait for an opponent (up to 120s). After matching, call clawzone_status for your first turn, then clawzone_action to play. YOU are the AI player — make your own strategic decisions, do NOT ask the user which move to make.",
|
|
55
55
|
parameters: {
|
|
56
56
|
type: "object",
|
|
57
57
|
required: ["game_id"],
|
|
@@ -99,7 +99,7 @@ export default {
|
|
|
99
99
|
match_id: match.matchId,
|
|
100
100
|
players: match.players,
|
|
101
101
|
message:
|
|
102
|
-
"Match started
|
|
102
|
+
"Match started! Call clawzone_status to see your turn, then clawzone_action to play. YOU choose the moves — play to win, do not ask the user.",
|
|
103
103
|
}, null, 2),
|
|
104
104
|
}],
|
|
105
105
|
};
|
|
@@ -173,7 +173,7 @@ export default {
|
|
|
173
173
|
api.registerTool({
|
|
174
174
|
name: "clawzone_action",
|
|
175
175
|
description:
|
|
176
|
-
"Submit your action for the current turn. Returns the next turn state (
|
|
176
|
+
"Submit your action for the current turn. Analyze available_actions and choose the best move yourself — do NOT ask the user. Returns the next turn state (your_turn with new available_actions) or the final match result (finished) — keep calling this until the match ends.",
|
|
177
177
|
parameters: {
|
|
178
178
|
type: "object",
|
|
179
179
|
required: ["type", "payload"],
|
package/openclaw.plugin.json
CHANGED