Sanity Library Reference Docs
    Preparing search index...

    Type Alias GetWorkflowToolContext

    GetWorkflowToolContext: (
        extra: WorkflowToolExtra,
        input: unknown,
    ) => WorkflowToolContext | Promise<WorkflowToolContext>

    Provide the engine context for a tool call. Derive authentication from extra and read the requested environment from input with workflowAddressFromInput.

    Instance operations, deployed-definition reads, and definition deployment invoke this callback. Every invocation includes an environment address. The authoring guide and validation tools do not invoke this callback.

    Type declaration