kind: tool-call

agentRole: orchestrator

toolName: nodes

content:
/**
 * Manual Trigger Node - Version 1
 * Runs the flow on clicking a button in n8n
 */

export interface ManualTriggerV1Params {
}

interface ManualTriggerV1NodeBase {
  type: 'n8n-nodes-base.manualTrigger';
  version: 1;
  isTrigger: true;
}

export type ManualTriggerV1ParamsNode = ManualTriggerV1NodeBase & {
  config: NodeConfig<ManualTriggerV1Params>;
};

export type ManualTriggerV1Node = ManualTriggerV1ParamsNode;

builderHint: There can only be one manual trigger node per workflow

content:
/**
 * Wait Node - Version 1.1
 * Wait before continue with execution
 */

export interface WaitV11Params {
/**
 * Determines the waiting mode to use before the workflow continues
 * @builderHint For user approval workflows, consider using nodes with operation: "sendAndWait" (e.g., email, Slack) instead of Wait node. If using "webhook", the URL will be generated at runtime and can be referenced with {{ $execution.resumeUrl }}.
 * @default timeInterval
 */
    resume?: 'timeInterval' | 'specificTime' | 'webhook' | 'form' | Expression<string>;
/**
 * If and how incoming resume-webhook-requests to $execution.resumeFormUrl should be authenticated for additional security
 * @displayOptions.show { resume: ["form"] }
 * @default none
 */
    incomingAuthentication?: 'basicAuth' | 'none' | Expression<string>;
/**
 * The date and time to wait for before continuing
 * @displayOptions.show { resume: ["specificTime"] }
 */
    dateTime: string | Expression<string>;
/**
 * The time to wait
 * @displayOptions.show { resume: ["timeInterval"] }
 * @default 5
 */
    amount?: number | Expression<number>;
/**
 * The time unit of the Wait Amount value
 * @displayOptions.show { resume: ["timeInterval"] }
 * @default seconds
 */
    unit?: 'seconds' | 'minutes' | 'hours' | 'days' | Expression<string>;
/**
 * Shown at the top of the form
 * @displayOptions.show { resume: ["form"] }
 */
    formTitle: string | Expression<string>;
/**
 * Shown underneath the Form Title. Can be used to prompt the user on how to complete the form. Accepts HTML. Does not accept

error: Node 'n8n-nodes-base.set' requires mode discriminator. Available modes: manual, raw.


content:
/**
 * Edit Fields (Set) Node - Version 3.4
 * Discriminator: mode=manual
 */

// Helper types for special n8n fields
/**
 * Assignment type determines how the value is interpreted.
 * - string: Direct string value or expression evaluating to string
 * - number: Direct number value or expression evaluating to number
 * - boolean: Direct boolean value or expression evaluating to boolean
 * - array: Expression that evaluates to an array, e.g. ={{ [1, 2, 3] }} or ={{ $json.items }}
 * - object: Expression that evaluates to a plain object (not an array — use the array type for arrays), e.g. ={{ { key: 'value' } }} or ={{ $json.data }}
 * - binary: Property name of binary data in the input item, or expression to access binary data from previous nodes, e.g. ={{ $('Node').item.binary.data }}
 */
type AssignmentType = 'string' | 'number' | 'boolean' | 'array' | 'object' | 'binary';
type AssignmentCollectionValue = { assignments: Array<{ id: string; name: string; value: unknown; type: AssignmentType }> };

/** Edit item fields one by one */
export type SetV34ManualParams = {
  mode: 'manual';
/**
 * Whether this item should be duplicated a set number of times
 * @default false
 */
    duplicateItem?: boolean | Expression<boolean>;
/**
 * How many times the item should be duplicated, mainly used for testing and debugging
 * @displayOptions.show { duplicateItem: [true] }
 * @default 0
 */
    duplicateCount?: number | Expression<number>;
/**
 * Fields to Set
 * @default {}
 */
    assignments?: AssignmentCollectionValue;
/**
 * Whether to pass to the output all the input fields (along with the fields set in 'Fields to Set')
 * @default false
 */
    includeOtherFields?: boolean | Expression<boolean>;
/**
 * How to select the fields you want to include in your output items
 * @displayOptions.hide { /includeOtherFields: [false] }
 * @default all
 */
    include?: 'all' | 'selected' | 'except' | Expression<string>;
/**
 * Comma-separated list of the field names you want to include in the output. You can drag the selected fields from the input panel.
 * @displayOptions.show { include: ["selected"], /includeOtherFields: [true] }
 */
    includeFields?: string | Expression<string>;
/**
 * Comma-separated list of the field names you want to exclude from the output. You can drag the selected fields from the input panel.
 * @displayOptions.show { include: ["except"], /includeOtherFields: [true] }
 */
    excludeFields?: string | Expression<string>;
  options?: {
    /** Whether binary data should be included if present in the input item
     * @default true
     */
    includeBinary?: boolean | Expression<boolean>;
    /** Whether binary data should be stripped from the input item. Only applies when "Include Other Input Fields" is enabled.
     * @displayOptions.show { /includeOtherFields: [true] }
     * @default true
     */
    stripBinary?: boolean | Expression<boolean>;
    /** Whether to ignore field type errors and apply a less strict type conversion
     * @default false
     */
    ignoreConversionErrors?: boolean | Expression<boolean>;
    /** By default, dot-notation is used in property names. This means that "a.b" will set the property "b" underneath "a" so { "a": { "b": value} }. If that is not intended this can be deactivated, it will then set { "a.b": value } instead.
     * @default true
     */
    dotNotation?: boolean | Expression<boolean>;
  };
};

export type SetV34ManualNode = {
  type: 'n8n-nodes-base.set';
  version: 3.4;
  config: NodeConfig<SetV34ManualParams>;
};


toolName: build-workflow

errors:
Transform failed with 1 error:
/home/user/workspace/src/workflows/running-state-test.workflow.ts:11:34: ERROR: Expected "}" but found "Test"

guidance: Edit the workspace source file using filePath, then call build-workflow again with the same filePath.


toolName: verify-built-workflow

nodesExecuted:
When clicking 'Test workflow'
Wait
running state test

preview:
<untrusted_data source="execution-output" label="node:When clicking 'Test workflow'">
[
  {}
]
</untrusted_data>

preview:
<untrusted_data source="execution-output" label="node:Wait">
[
  {}
]
</untrusted_data>

preview:
<untrusted_data source="execution-output" label="node:running state test">
[
  {}
]
</untrusted_data>