Reference
Sessions and files
How Artiwright keeps documents between calls, and where finished files are saved.
A session is one conversation’s workspace. Its documents persist between tool calls, so an agent can build in one
call, look and check in the next, and fix and finish later. Every tool takes a session id; use one per conversation
or task, such as your chat’s id or a LangGraph thread id.
The Python helpers do this for you: the ADK Artiwright agent derives the session from the ADK user and session, and
LangGraph’s get_tools(session=thread_id) sets it per thread.
An app’s local server picks the session itself: one per conversation (see server options), so two conversations open at once never edit the same deck.
The sessions folder
Section titled “The sessions folder”Each session’s work lives in the sessions folder: the one you pass as --root, or, for an app’s local server
started without it, the system’s folder for app data.
Directoryartiwright-sessions/
Directoryq3-review/ one session
- session.json status and published outputs
Directorydocuments/
- deck.ops.json the deck as a replayable log of changes
- deck.source.pptx an opened deck’s original (never changed)
- workbook.workbook.json a workbook’s states, for undo
- workbook.source.xlsx an opened workbook’s original (never changed)
Directoryoutputs/ finished files and their manifests
- …
Directorypreviews/ rendered images
- …
Directory.artiwright/
Directoryreceipts/ a record of each finalize’s checks
- …
- Finished files are in
outputs/, named by the agent or<document>-v<version>.pptx. An app’s local server started without--rootalso saves each one where the user works (see artiwright_finalize). - Originals are never changed. Opening a file copies it into the session; finishing writes a new file.
- Receipts record what finalize checked and the file’s SHA-256, without the file’s content.