For the complete documentation index, see llms.txt. This page is also available as Markdown.

Function

One function inside an installed package.

Where: Code β†’ Marketplace β†’ package β†’ function Β· /projects/<project>/code/marketplace/<connectionId>/functions/<functionId> (+ /edit)

Add or edit one marketplace function. On add, <functionId> is the curated definition's function key (for example chat.postMessage); once installed, the function has a func_… id and the edit route uses it. When the listing is not installed, the screen is review-only.

Screenshot TODO β€” capture comes from testing-plan area 11-code.

What you can do here

  • Display Name β€” the same function can be added multiple times; give each copy a distinct name (e.g. "Notify #alerts channel"). Plus a Description field.

  • Payload parameters β€” informational: what the function expects from the caller (name, type, required, description). You send these on the invoke payload when calling the function by its id.

  • Bindings β€” how each @Model.* token gets its value. For every bindable token you pick one of: Default (connection / listing) β€” resolved by the connection's configuration; Fixed value β€” a pinned value (e.g. #general); Dynamic binding β€” resolved at call time from the caller, project, or trigger context (e.g. @Model.User.UserId, @Model.Trigger.New.email). @Model.Request.* tokens always come from the caller payload and are not listed here. Advanced mappings created via the API are shown read-only and preserved on save.

  • Add (new) or Save (edit) stores the function. If the parent connection is disabled, an alert ("Connection is not enabled") blocks all changes.

  • Delete β€” only from this edit screen, via the actions menu.

  • Make a test call (edit only) β€” invoke the function with a JSON payload, exactly what your code would send, and see the raw response with Run test call.

Example: add the Slack chat.postMessage definition twice β€” once as "Notify #alerts channel" with the channel token pinned to #alerts, once as "DM the acting user" with the channel bound to @Model.User.UserId.

Use it from code

Invoke Marketplace Function Binding in the SDK reference.

API reference

Endpoints: Save Marketplace Function Binding, Invoke Marketplace Function Binding, Get Marketplace Binding Tokens, Enable / Disable / Delete Marketplace Function Binding.

Last updated