xonecas.io
60255
Zn

Zoea-Nova / commit a7d2a78

fix: return zoea_claim_account as JSON instead of instructional text

Before: 'Use the game's login tool with these credentials:\nusername: ...'
After: '{"username":"...","password":"..."}'

LLMs can now extract data directly instead of parsing instructional text.

xonecas2026-02-07 a7d2a780c6a88dff206d7526c554b073740cfbf6 parent 17d3094

1 file changed

internal/mcp/tools.go+5−2
@@ -367,9 +367,12 @@ func RegisterOrchestratorTools(proxy *Proxy, orchestrator Orchestrator) {
367367 }, nil
368368 }
369369
370- message := fmt.Sprintf("Use the game's login tool with these credentials:\nusername: %s\npassword: %s", account.Username, account.Password)
370+ data, _ := json.Marshal(map[string]string{
371+ "username": account.Username,
372+ "password": account.Password,
373+ })
371374 return &ToolResult{
372- Content: []ContentBlock{{Type: "text", Text: message}},
375+ Content: []ContentBlock{{Type: "text", Text: string(data)}},
373376 }, nil
374377 },
375378 )