Parameters
string
Optional. Specific session folder name (e.g.,
authentication-implementation) or filename to retrieve. If not provided, lists all sessions.string
Optional. Filter sessions by date (YYYY-MM-DD format). Only used when listing sessions.
string
default:"auto"
Output format:
"json" for JSON, "toon" for TOON format (~40% token reduction), "auto" to automatically choose best format. Default: "auto".number
Optional. Limit number of sessions returned when listing. Default: no limit.
Response
Get Specific Session
boolean
required
Always
true on success.object
required
Session object with content.
string
required
Session folder name (e.g.,
authentication-implementation).string
required
Session topic.
string
required
ISO date string.
string
required
Full path to session file (prefers
full.md when available).string
required
Session content (markdown format).
Message[]
Parsed messages array (if format is ‘messages’).
string
Format used:
"json" or "toon".List Sessions
boolean
required
Always
true on success.SessionInfo[]
required
Array of session metadata.
string
required
Session folder name (e.g.,
authentication-implementation).string
required
Session topic.
string
required
ISO date string.
string
required
Full path to session file (prefers
full.md when available).number
File size in bytes.
number
required
Total number of sessions returned.
string
Format used:
"json" or "toon".Error
boolean
required
Always
false.string
required
Error code (see below).
string
required
Human-readable error message.
Error Codes
Examples
Get Specific Session
List All Sessions
List Sessions by Date
TOON Format
Theget_session tool supports TOON (Token-Oriented Object Notation) format, which provides ~40% token reduction compared to JSON for uniform data structures like message arrays and session lists.
When TOON is Used
- Automatic (
auto): TOON is used when data is uniform (e.g., arrays of messages with same structure) - Manual (
toon): Force TOON format (may fallback to JSON if data isn’t uniform) - JSON (
json): Always use JSON format
Benefits
- ~40% token reduction for uniform data structures
- Lower API costs when sending to LLMs
- Faster processing with fewer tokens
- Automatic fallback to JSON for non-uniform data
Session Retrieval
Folder-based sessions (v0.1.5+):- Sessions are stored in topic-named folders with
summary.mdandfull.md - When retrieving by folder name (without suffix), system automatically prefers
full.mdfor complete context - You can also specify
-summary.mdor-full.mdexplicitly if needed
- System automatically handles both old flat-file format and new folder-based format
- Old sessions are still accessible and will be listed correctly
Storage Location
Always retrieves from:~/.codearchitect/sessions/
- Windows:
C:\Users\YourName\.codearchitect\sessions\ - Linux/Mac:
~/.codearchitect/sessions/ - No project detection - all sessions are in main folder