ap_search_actions
ap_search_actionsFind piece actions by natural-language task description (e.g. "send a message to a Slack channel"). Returns the most semantically relevant actions ranked by similarity — lightweight rows only — or an empty list when nothing in the catalog is relevant (it does not force a match). Always available: when no embedding model is configured it falls back to a keyword catalog search (response "mode":"keyword", lexical not semantic). Each row carries a connected flag indicating whether this project already has a connection for the piece. Optionally scope to a single piece with pieceName. This is the discovery step: take a result's pieceName + actionName to ap_get_piece_props for its input schema, then ap_run_action to execute it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of action matches to return. Defaults to 5. | |
| query | Yes | Natural-language description of the task to accomplish (e.g. "send a message to a Slack channel", "create a Google Calendar event"). | |
| pieceName | No | Restrict results to a single piece (e.g. "slack" or "@activepieces/piece-slack"). Omit to search the whole catalog. |