LoomCycle Hook icon

LoomCycle Hook

Register loomcycle pre/post-tool webhook callbacks over HTTP

LoomCycle Hook

AI-generated

Summary

Register a LoomCycle webhook for matching tool calls, list registered hooks, or delete a hook by ID. Registration sends pre-call or post-call payloads to the callback URL; a pre hook can rewrite or block a call, while a post hook can rewrite its result.

Inputs

  • Operation (required) — Choose Register, List, or Delete.
  • Name (required) — For Register, identifies the hook together with Owner. Registering the same owner and name replaces the prior entry.
  • Phase (required) — For Register, choose Pre (before the tool call) or Post (after it).
  • Callback URL (required) — For Register, provide an HTTP or HTTPS endpoint to receive LoomCycle's hook payloads. An n8n Webhook trigger can receive these callbacks.
  • Owner — For Register, the owning app UID. If empty, the node uses n8n: followed by the node ID.
  • Agents (Comma-Separated) — For Register, agent name patterns to match: exact names or trailing-* prefixes. Empty matches every agent.
  • Tools (Comma-Separated) — For Register, tool name patterns using the same syntax as Agents. Empty matches every tool.
  • Fail Mode — For Register, choose whether webhook delivery errors are ignored (open) or fail the tool call (closed). Defaults to open.
  • Timeout (Ms) — For Register, set a per-call delivery timeout. Zero uses LoomCycle's registry default of 5 seconds.
  • Hook ID (required) — For Delete, provide the LoomCycle-assigned ID returned by Register or List.

Output shape

One n8n item per input item, containing the operation result as JSON.

Register returns the registration response, List returns { hooks: [...] } for all currently registered hooks, and Delete returns { ok: true, id } after deletion. Hook registrations are in-memory and are cleared when LoomCycle restarts. Errors are thrown unless the node is configured to continue on fail.

Links

Discussion