# Get Session Logs

> Get current session system logs. IMPORTANT - when commands fail, encounter errors, or need to understand previous operation results, call this tool. Logs contain command details, error info, system status.

- Skill: `gabrielmoreira/get-session-logs` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add gabrielmoreira/get-session-logs`
- Raw SKILL.md: https://api.skillmd.com/api/skills/gabrielmoreira/get-session-logs/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: gabrielmoreira (https://skillmd.com/u/gabrielmoreira)
- Updated: 2026-09-21
- Page: https://skillmd.com/skills/gabrielmoreira/get-session-logs

---


# Get Session Logs

获取当前会话的系统日志。

## Parameters

| 参数 | 类型 | 必填 | 说明 |
|-----|------|-----|------|
| count | integer | 否 | 返回的日志条数，默认 20，最大 200 |
| level | string | 否 | 过滤日志级别：DEBUG, INFO, WARNING, ERROR |

## When to Use

1. 命令返回错误码
2. 操作没有预期效果
3. 需要了解之前发生了什么

## Returns

- 命令执行详情
- 错误信息
- 系统状态


