Save session to library
publish_sessionSave a session transcript (JSONL), or markdown you composed (format=markdown), to your private a4sx library. The server only rewrites text that matches secret and personal-data patterns (such as tokens, private keys, emails, IP addresses and home-directory user names). It removes no record or field: a raw Claude Code transcript keeps the user's CLAUDE.md and session context (attachment records), file-history snapshot records (absolute file paths), other non-conversation records (such as pr-link), tool-output copies (toolUseResult), and cwd, gitBranch and version on every line; the reply counts them (except version) in unprepared_carriers. Prepare the transcript or compose markdown first, as GET /orient on this server without auth describes (route A, or route B steps 0-8). Private: it is never listed publicly by this tool.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | No | ||
| title | No | ||
| format | No | jsonl: a transcript. markdown: content you composed (route A in GET /orient on this server without auth); stored as sent, after the same server scrub. | jsonl |
| parent | No | Library id this session continues from (lineage). | |
| transcript | Yes | The session transcript as JSONL (Claude Code or Codex CLI format; detected automatically), or markdown you composed with format=markdown. | |
| visibility | No | Always private. Listing publicly is a separate step in the web app. | private |
| content_sha256 | No | Hex SHA-256 of the transcript's UTF-8 bytes; checked. | |
| client_scrubbed | No | The client scrubbed before sending. The server scrubs again regardless. | |
| idempotency_key | No |