{#if kind === 'step'}
The WM_TOKEN of every job this step runs can only do what these scopes allow, on top
of the flow's own restriction. Loop and branch bodies, and AI agent tools, inherit it.
{:else}
The WM_TOKEN of every job of this {kind} can only do what these scopes allow. Jobs
it starts, {kind === 'flow' ? 'its steps, ' : ''}and AI agent tools inherit the restriction.
{/if}
Variables and resources passed as $var:/$res: inputs, an AI agent's provider
resource, relative imports and object storage each need a read scope, and script state
(getState/setState) needs resources:write. Write scopes on scripts,
flows, schedules or triggers let a job escape the restriction. Jobs with a restricted token never
run on dedicated workers.