{"version":"2.1.331","anchor":"new-sessionredact-method-and-upload-if-larger-request-field","canonical_anchor":"new-sessionredact-method-and-upload-if-larger-request-field","heading":"Sessions can redact text, and file reads can upload large files","tier":"internal","area":"Sessions","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.331\/e\/new-sessionredact-method-and-upload-if-larger-request-field","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.331","markdown":"### Sessions can redact text, and file reads can upload large files\n\nThe session interface gains a way to redact given text, and file-read requests gain an option to upload a file when it is larger than a limit\n\n**Unclear.** It is not clear whether users can call these or only the services that run hosted sessions.\n\n**What**\n\nTwo additions to the interface Claude Code uses to talk to a session:\n\n- `session.redact`: a request that takes a piece of text and asks the session to redact it, which means hide or remove it.\n\n- `upload_if_larger`: a new field on a request to read a file. It asks for the file to be uploaded when it is bigger than a given size.\n\n**Why**\n\nBoth give hosted and remote sessions new abilities, one for hiding text and one for handling large files.\n\n- Area: Sessions\n- Tier: Under the hood\n- Useful: 3\/5\n- Signal: 3\/5\n- Scope: individual\n- Heads-up: no"}