view_battle_log
Display detailed combat logs from your dungeon exploration to analyze battles, track progress, and review encounter outcomes in the idle dungeon crawler game.
Instructions
探索中のダンジョンの詳細な戦闘ログを表示します。
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| save_key | Yes | セーブキー |
Implementation Reference
- src/tools/dungeon.ts:542-577 (handler)The actual implementation of the view_battle_log tool logic.
export async function viewBattleLog(saveKey: string): Promise<string> { const data = await storage.load(saveKey); if (!data.player.name) { return "プレイヤーが見つかりません。"; } if (!data.player.currentDungeon || data.player.currentDungeon.battleLog.length === 0) { return "表示できる戦闘ログがありません。"; } const battleLog = data.player.currentDungeon.battleLog; let output = `=== 戦闘ログ ===\n\n`; for (const battle of battleLog) { const icon = battle.victory ? '✅' : '❌'; output += `${icon} ${battle.floor}階: ${battle.enemyName}\n`; output += ` 与ダメージ: ${battle.damageDealt} / 被ダメージ: ${battle.damageTaken}\n`; output += ` クリティカル: ${battle.criticalHits}回 / 回避: ${battle.dodges}回\n`; if (battle.herbUsed) { output += ` 薬草使用: ✅ (HP回復)\n`; } if (battle.victory) { output += ` ゴールド: +${battle.goldEarned}\n`; if (battle.itemsDropped.length > 0) { output += ` ドロップ: ${battle.itemsDropped.map(i => i.name).join(', ')}\n`; } } output += '\n'; } return output; } - src/index.ts:192-198 (registration)Registration of the 'view_battle_log' tool with its schema.
name: 'view_battle_log', description: '探索中のダンジョンの詳細な戦闘ログを表示します。', inputSchema: { type: 'object', properties: { save_key: { type: 'string',