{"version":"2.1.336","anchor":"new-readworkflows-request-and-workflow-reading-with-permissi","canonical_anchor":"new-readworkflows-request-and-workflow-reading-with-permissi","heading":"Workflow scripts get a saved file path and a new way to read them","tier":"use","area":"Workflows","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.336\/e\/new-readworkflows-request-and-workflow-reading-with-permissi","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.336","markdown":"### Workflow scripts get a saved file path and a new way to read them\n\nInline Workflow scripts are now checked and saved to a file with a path, the scriptPath wording changed, and a new ReadWorkflows request reads scripts\n\n**What**\n\nThe Workflow tool is the tool Claude uses to run a multi-step workflow script. A script can be given by `scriptPath`, the path to a file, or inline, meaning written directly into the request. This release changes how both kinds are handled:\n\n- Inline scripts are now checked before launch. When there is no `scriptPath`, Claude Code saves the inline script to a file in the session and returns that file's path. Before, an inline script had no path at all. Scripts run this way also carry a line offset.\n\n- The description Claude reads for `scriptPath` now says \"Takes precedence over `name`. Send it without `script`.\" when a certain check is true. Otherwise it keeps the old text, \"Takes precedence over `script` and `name`.\"\n\n- A new `ReadWorkflows` request lets a host program, meaning an app that runs Claude Code on your behalf, list user and project workflow scripts or read the script at a given `scriptPath`. The read uses a `permission_context`, the permission rules that apply to it. A `permission_context` field was also added elsewhere.\n\n- In a cloud-run session, reading a script is refused with \"This session's cloud environment loads no scriptPath.\"\n\nThe stock Workflow tool description in the capture taken under this release is 3,496 characters at its longest across the model arms. That length is unchanged from the previous release.\n\n**Why**\n\nAn inline workflow now leaves a saved file and a path behind, the same as a workflow given by path. Claude is also told not to send a script and a path together. Programs that host Claude Code can now list and read workflow scripts through the permission rules, except in cloud-run sessions, where the read is refused.\n\n- Area: Workflows\n- Tier: Use it now\n- Useful: 3\/5\n- Signal: 3\/5\n- Scope: individual\n- Heads-up: no"}