Save to Library
save_to_librarySave the current session workbook to the user's Library as a durable named version, creating a new file or updating an existing one for later reopening and version history.
Instructions
Save the session's workbook to the user's Library for durable storage. If the session was loaded from the Library or was previously saved, this creates a new version of that file. Otherwise it creates a new Library file. Each save is a named version in the Library's history: pass message, or it takes the latest commit_session message since the last save. commit_session checkpoints themselves stay in the session, so save after each step you want kept as a version. Returns {library_file_id, version_id, name, message, created, noop}; noop is true when nothing changed since the last version. Open the file again later with create_session's library_file_id; list_library_files finds it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | File name for a new Library file (defaults to the session's document label); not used when saving a new version | |
| message | No | Name for this version in the Library, e.g. "23 — revised exit cap" (defaults to the latest commit_session message) | |
| session_id | Yes | Session ID returned by create_session (list_sessions shows the open ones) |