What
The 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:
- 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. - The description Claude reads for
scriptPathnow says "Takes precedence overname. Send it withoutscript." when a certain check is true. Otherwise it keeps the old text, "Takes precedence overscriptandname." - A new
ReadWorkflowsrequest 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 givenscriptPath. The read uses apermission_context, the permission rules that apply to it. Apermission_contextfield was also added elsewhere. - In a cloud-run session, reading a script is refused with "This session's cloud environment loads no scriptPath."
The 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.
Why
An 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.