diff --git a/apps/docs/content/docs/integrations/datadog.mdx b/apps/docs/content/docs/integrations/datadog.mdx index b143fadca99..eba115b3cc0 100644 --- a/apps/docs/content/docs/integrations/datadog.mdx +++ b/apps/docs/content/docs/integrations/datadog.mdx @@ -72,7 +72,7 @@ Query metric timeseries data from Datadog. Use for analyzing trends, creating re ### Datadog Create Event -Post an event to the Datadog event stream. Use for deployment notifications, alerts, or any significant occurrences. +Post an event to the Datadog event stream. Use for deployment notifications, alerts, or any significant occurrences. Uses the v1 events endpoint, which Datadog has deprecated and serves only to organizations that have used it before. @@ -95,7 +95,8 @@ Post an event to the Datadog event stream. Use for deployment notifications, ale | Parameter | Type | Description | | --------- | ---- | ----------- | | `event` | object | The created event details | -| ↳ `id` | number | Event ID | +| ↳ `id` | number | Event ID. Can lose precision above 2^53; prefer id_str | +| ↳ `id_str` | string | Event ID as an exact string | | ↳ `title` | string | Event title | | ↳ `text` | string | Event text | | ↳ `date_happened` | number | Unix timestamp when event occurred | @@ -280,7 +281,7 @@ Search and retrieve logs from Datadog. Use for troubleshooting, analysis, or mon | `query` | string | Yes | Log search query using Datadog query syntax \(e.g., "service:web-app status:error", "host:prod-* @http.status_code:500"\) | | `from` | string | Yes | Start time in ISO-8601 format or relative time \(e.g., "now-1h", "now-15m", "2024-01-15T10:00:00Z"\) | | `to` | string | Yes | End time in ISO-8601 format or relative time \(e.g., "now", "now-5m", "2024-01-15T12:00:00Z"\) | -| `limit` | number | No | Maximum number of logs to return \(e.g., 50, 100, max: 1000\) | +| `limit` | number | No | Maximum number of logs to return \(default: 50, max: 5000\) | | `cursor` | string | No | Pagination cursor from a previous call, taken from its nextLogId output. Omit for the first page. | | `sort` | string | No | Sort order: "timestamp" for oldest first, "-timestamp" for newest first | | `indexes` | string | No | Comma-separated list of log indexes to search | @@ -476,6 +477,7 @@ Get the details of a single incident by ID. Requires the Incident Management `in | ↳ `modified` | string | Last modification timestamp | | ↳ `resolved` | string | Resolution timestamp | | ↳ `time_to_resolve` | number | Seconds from creation to resolution | +| `included` | array | Related resources requested through include \(users, attachments\) | @@ -705,7 +707,7 @@ Update a service level objective. Reads the current SLO first and applies only t | --------- | ---- | -------- | ----------- | | `sloId` | string | Yes | The ID of the service level objective to update | | `name` | string | No | New name for the SLO. Leave blank to keep the current name. | -| `type` | string | No | SLO type: "metric" or "monitor". Leave blank to keep the current type. Changing type requires supplying the matching query or monitorIds. | +| `type` | string | No | SLO type: "metric" or "monitor". Leave blank to keep the current type. Changing type requires supplying the matching query or monitorIds. Converting to a "time_slice" SLO is not supported. | | `thresholds` | string | No | JSON array of thresholds replacing the stored ones, e.g. \[\{"timeframe": "30d", "target": 99.9, "warning": 99.95\}\]. Leave blank to keep the current thresholds. | | `description` | string | No | Description of the SLO | | `tags` | string | No | Comma-separated tags \(e.g., "env:prod,team:core"\) | @@ -785,6 +787,7 @@ Get an SLO’s history over a time window, including the overall SLI value and r | ↳ `monitors` | array | Per-monitor SLI data for multi-monitor SLOs | | ↳ `thresholds` | object | Thresholds keyed by timeframe | | `sliValue` | number | Overall SLI value over the window | +| `errors` | array | Errors Datadog hit while querying the history; the call can succeed with partial data | diff --git a/apps/docs/content/docs/integrations/github.mdx b/apps/docs/content/docs/integrations/github.mdx index 6d53cce14ca..9be5babec1a 100644 --- a/apps/docs/content/docs/integrations/github.mdx +++ b/apps/docs/content/docs/integrations/github.mdx @@ -113,6 +113,8 @@ Create comments on GitHub PRs | `path` | string | No | File path for review comment | | `commentType` | string | No | Type of comment \(pr_comment or file_comment\) | | `line` | number | No | Line number for review comment | +| `side` | string | No | Side of the diff \(LEFT or RIGHT\) | +| `commitId` | string | No | The SHA of the commit to comment on. Defaults to the pull request head commit. | #### Output @@ -208,6 +210,8 @@ Retrieve the latest commit from a GitHub repository | Parameter | Type | Description | | --------- | ---- | ----------- | +| `sha` | string | Commit SHA | +| `html_url` | string | GitHub web URL | | `commit` | object | Core commit data | | ↳ `url` | string | Commit API URL | | ↳ `message` | string | Commit message | @@ -246,8 +250,6 @@ Retrieve the latest commit from a GitHub repository | ↳ `html_url` | string | Profile page URL | | ↳ `type` | string | User or Organization | | ↳ `site_admin` | boolean | GitHub staff indicator | -| `sha` | string | Commit SHA | -| `html_url` | string | GitHub web URL | @@ -629,7 +631,7 @@ Get the list of files changed in a pull request | ↳ `contents_url` | string | Contents API URL | | ↳ `patch` | string | Diff patch | | ↳ `previous_filename` | string | Previous filename \(for renames\) | -| `count` | number | Total number of files | +| `count` | number | Number of files in this page | @@ -1383,7 +1385,7 @@ Close an issue in a GitHub repository | `owner` | string | Yes | Repository owner | | `repo` | string | Yes | Repository name | | `issue_number` | number | Yes | Issue number | -| `state_reason` | string | No | Reason for closing: completed or not_planned | +| `state_reason` | string | No | Reason for closing: completed, not_planned, or duplicate | #### Output @@ -1946,7 +1948,7 @@ List workflow runs for a repository, or for a single workflow when a workflow ID | `actor` | string | No | Filter by user who triggered the workflow | | `branch` | string | No | Filter by branch name | | `event` | string | No | Filter by event type \(e.g., push, pull_request, workflow_dispatch\) | -| `status` | string | No | Filter by status \(queued, in_progress, completed, waiting, requested, pending\) | +| `status` | string | No | Filter by check run status or conclusion: queued, in_progress, completed, waiting, requested, pending, success, failure, cancelled, skipped, timed_out, action_required, neutral, or stale. Omit \(or pass "all"\) for every run. | | `per_page` | number | No | Number of results per page \(default: 30, max: 100\) | | `page` | number | No | Page number of results to fetch \(default: 1\) | @@ -2217,8 +2219,8 @@ Search for code across GitHub repositories. Use qualifiers like repo:owner/name, | Parameter | Type | Required | Description | | --------- | ---- | -------- | ----------- | | `q` | string | Yes | Search query with optional qualifiers \(repo:, language:, path:, extension:, user:, org:\) | -| `sort` | string | No | Sort by indexed date \(default: best match\) | -| `order` | string | No | Sort order: asc or desc \(default: desc\) | +| `sort` | string | No | Sort by "indexed" \(how recently GitHub indexed the file\); default is best match. GitHub has deprecated this parameter and is closing it down. | +| `order` | string | No | Sort order: asc or desc \(default: desc\). Ignored unless sort is set; GitHub has deprecated this parameter and is closing it down. | | `per_page` | number | No | Results per page \(max 100, default: 30\) | | `page` | number | No | Page number \(default: 1\) | @@ -2627,7 +2629,7 @@ List commits in a repository with optional filtering by SHA, path, author, commi ### GitHub Get Commit -Get detailed information about a specific commit including files changed and stats +Get detailed information about a specific commit including files changed and stats. GitHub returns at most the first 300 changed files of a larger commit. @@ -2723,8 +2725,8 @@ Compare two commits or branches to see the diff, commits between them, and chang | `repo` | string | Yes | Repository name | | `base` | string | Yes | Base branch/tag/SHA for comparison | | `head` | string | Yes | Head branch/tag/SHA for comparison | -| `per_page` | number | No | Results per page for files \(max 100, default: 30\) | -| `page` | number | No | Page number for files \(default: 1\) | +| `per_page` | number | No | Commits per page \(max 100\). Setting per_page or page paginates the commit list, and changed files are returned only on page 1. Leave both unset to get up to 250 commits and every changed file in one response. | +| `page` | number | No | Page of the commit list. Changed files are returned only on page 1. Omit both page and per_page to get up to 250 commits in one response. | #### Output diff --git a/apps/docs/content/docs/integrations/gitlab.mdx b/apps/docs/content/docs/integrations/gitlab.mdx index 9256c2ac0e5..ae6c4564f99 100644 --- a/apps/docs/content/docs/integrations/gitlab.mdx +++ b/apps/docs/content/docs/integrations/gitlab.mdx @@ -420,6 +420,7 @@ Merge a merge request in a GitLab project | `squash` | boolean | No | Squash commits before merging | | `shouldRemoveSourceBranch` | boolean | No | Delete source branch after merge | | `mergeWhenPipelineSucceeds` | boolean | No | Merge when pipeline succeeds | +| `sha` | string | No | HEAD SHA of the source branch; the merge fails if it does not match. Required when the group or instance requires a commit SHA on the merge requests API. | #### Output @@ -1024,7 +1025,7 @@ Add an existing GitLab user to a project or group at a given access level | `resourceId` | string | Yes | Project or group ID or path \(e.g. mygroup/myproject\) | | `userId` | number | No | The ID of the user to add. Provide either userId or username. | | `username` | string | No | The username of the user to add. Provide either userId or username. | -| `accessLevel` | number | Yes | Access level: 0 \(No access\), 5 \(Minimal\), 10 \(Guest\), 15 \(Planner\), 20 \(Reporter\), 25 \(Security Manager\), 30 \(Developer\), 40 \(Maintainer\), 50 \(Owner\) | +| `accessLevel` | number | Yes | Access level: 10 \(Guest\), 15 \(Planner\), 20 \(Reporter\), 25 \(Security Manager\), 30 \(Developer\), 40 \(Maintainer\), 50 \(Owner\). 5 \(Minimal access\) is also valid for a top-level group on Premium and Ultimate. | | `expiresAt` | string | No | Access expiration date in YYYY-MM-DD format | | `memberRoleId` | number | No | Custom member role ID \(GitLab Ultimate only\) | @@ -1050,7 +1051,7 @@ Update a member's access level in a GitLab project or group | `resourceType` | string | Yes | Whether the resource is a 'project' or a 'group' | | `resourceId` | string | Yes | Project or group ID or path \(e.g. mygroup/myproject\) | | `userId` | number | Yes | The ID of the member to update | -| `accessLevel` | number | Yes | New access level: 0 \(No access\), 5 \(Minimal\), 10 \(Guest\), 15 \(Planner\), 20 \(Reporter\), 25 \(Security Manager\), 30 \(Developer\), 40 \(Maintainer\), 50 \(Owner\) | +| `accessLevel` | number | Yes | New access level: 10 \(Guest\), 15 \(Planner\), 20 \(Reporter\), 25 \(Security Manager\), 30 \(Developer\), 40 \(Maintainer\), 50 \(Owner\). 5 \(Minimal access\) is also valid for a top-level group on Premium and Ultimate. | | `expiresAt` | string | No | Access expiration date in YYYY-MM-DD format. Pass an empty string to clear an existing expiration. | | `memberRoleId` | number | No | Custom member role ID \(GitLab Ultimate only\). Warning: when omitted, GitLab removes any custom role the member currently holds. | @@ -1099,7 +1100,7 @@ Invite a person to a GitLab project or group by email address | `resourceType` | string | Yes | Whether the resource is a 'project' or a 'group' | | `resourceId` | string | Yes | Project or group ID or path \(e.g. mygroup/myproject\) | | `email` | string | Yes | Email address to invite \(comma-separated for multiple\) | -| `accessLevel` | number | Yes | Access level: 0 \(No access\), 5 \(Minimal\), 10 \(Guest\), 15 \(Planner\), 20 \(Reporter\), 25 \(Security Manager\), 30 \(Developer\), 40 \(Maintainer\), 50 \(Owner\) | +| `accessLevel` | number | Yes | Access level: 10 \(Guest\), 15 \(Planner\), 20 \(Reporter\), 25 \(Security Manager\), 30 \(Developer\), 40 \(Maintainer\), 50 \(Owner\). 5 \(Minimal access\) is also valid for a top-level group on Premium and Ultimate. | | `expiresAt` | string | No | Access expiration date in YYYY-MM-DD format | | `memberRoleId` | number | No | Custom member role ID \(GitLab Ultimate only\) | | `inviteSource` | string | No | Identifier recorded as the source of the invitation \(for attribution\) | @@ -2018,7 +2019,7 @@ Add a SAML group link that maps an identity-provider group to a GitLab group at | --------- | ---- | -------- | ----------- | | `groupId` | string | Yes | Group ID or path \(e.g. my-org/my-group\) | | `samlGroupName` | string | Yes | The name of the SAML group as sent by the identity provider | -| `accessLevel` | number | Yes | Access level granted to members of the SAML group: 10 \(Guest\), 15 \(Planner\), 20 \(Reporter\), 25 \(Security Manager\), 30 \(Developer\), 40 \(Maintainer\), 50 \(Owner\) | +| `accessLevel` | number | Yes | Access level granted to members of the SAML group: 10 \(Guest\), 15 \(Planner\), 20 \(Reporter\), 25 \(Security Manager\), 30 \(Developer\), 40 \(Maintainer\), 50 \(Owner\). 5 \(Minimal access\) is also valid for a top-level group. | | `memberRoleId` | number | No | Custom member role ID \(GitLab Ultimate only\) | | `provider` | string | No | Unique provider name that must match for this group link to be applied \(GitLab 18.2+\) | diff --git a/apps/docs/content/docs/integrations/incidentio.mdx b/apps/docs/content/docs/integrations/incidentio.mdx index b70b6bd9022..c106412033d 100644 --- a/apps/docs/content/docs/integrations/incidentio.mdx +++ b/apps/docs/content/docs/integrations/incidentio.mdx @@ -74,7 +74,7 @@ List incidents from incident.io. Returns a list of incidents with their details ### incident.io Incidents Create -Create a new incident in incident.io. Requires idempotency_key, severity_id, and visibility. Optionally accepts name, summary, type, and status. +Create a new incident in incident.io. Requires idempotency_key and visibility. Optionally accepts name, summary, severity_id, incident_type_id, and incident_status_id. @@ -85,7 +85,7 @@ Create a new incident in incident.io. Requires idempotency_key, severity_id, and | `idempotency_key` | string | Yes | Unique identifier to prevent duplicate incident creation. Use a UUID or unique string. | | `name` | string | No | Name of the incident \(e.g., "Database connection issues"\) | | `summary` | string | No | Brief summary of the incident \(e.g., "Intermittent connection failures to primary database"\) | -| `severity_id` | string | Yes | ID of the severity level \(e.g., "01FCNDV6P870EA6S7TK1DSYDG0"\) | +| `severity_id` | string | No | ID of the severity level \(e.g., "01FCNDV6P870EA6S7TK1DSYDG0"\) | | `incident_type_id` | string | No | ID of the incident type | | `incident_status_id` | string | No | ID of the initial incident status | | `visibility` | string | Yes | Visibility of the incident: "public" or "private" \(required\) | @@ -159,14 +159,14 @@ Retrieve detailed information about a specific incident from incident.io by its | ↳ `slack_channel_id` | string | Associated Slack channel ID | | ↳ `slack_channel_name` | string | Associated Slack channel name | | ↳ `visibility` | string | Incident visibility | -| ↳ `custom_field_entries` | array | Custom field values for the incident | +| ↳ `custom_field_entries` | array | Custom field values for the incident. Each value carries one of value_text, value_link, value_numeric, value_option \(\{id, value\}\), or value_catalog_entry \(\{id, name, external_id\}\). | | ↳ `incident_role_assignments` | array | Role assignments for the incident | ### incident.io Incidents Update -Update an existing incident in incident.io. Can update name, summary, severity, status, or type. +Update an existing incident in incident.io. Can update name, summary, severity, or status. @@ -179,7 +179,7 @@ Update an existing incident in incident.io. Can update name, summary, severity, | `summary` | string | No | Updated summary of the incident \(e.g., "Intermittent connection failures to primary database"\) | | `severity_id` | string | No | Updated severity ID for the incident \(e.g., "01FCNDV6P870EA6S7TK1DSYDG0"\) | | `incident_status_id` | string | No | Updated status ID for the incident \(e.g., "01FCNDV6P870EA6S7TK1DSYDG0"\) | -| `incident_type_id` | string | No | Updated incident type ID | +| `incident_type_id` | string | No | Not applied: incident.io does not support changing an incident's type after creation, so this value is ignored. | | `notify_incident_channel` | boolean | Yes | Whether to notify the incident channel about this update | #### Output @@ -214,7 +214,7 @@ Update an existing incident in incident.io. Can update name, summary, severity, ### incident.io Actions List -List actions from incident.io. Optionally filter by incident ID. +List actions from incident.io, optionally filtered by incident ID. Without page_size or after, follows pages automatically and returns up to 2,500 actions, oldest first; if more remain, pagination_meta.after is set. Pass page_size or after to fetch a single page. @@ -223,12 +223,17 @@ List actions from incident.io. Optionally filter by incident ID. | Parameter | Type | Required | Description | | --------- | ---- | -------- | ----------- | | `incident_id` | string | No | Filter actions by incident ID \(e.g., "01FCNDV6P870EA6S7TK1DSYDG0"\) | -| `incident_mode` | string | No | Filter actions by incident mode \(standard, retrospective, test, tutorial, or stream\) | +| `incident_mode` | string | No | Filter actions by incident mode \(standard, retrospective, test, tutorial, or stream\). When omitted, actions from standard and retrospective incidents are returned. | +| `page_size` | number | No | Number of actions per page, 1-250. Setting it fetches a single page instead of following pages automatically | +| `after` | string | No | Pagination cursor from a previous page's pagination_meta.after \(e.g., "01FDAG4SAP5TYPT98WGR2N7W91"\) | #### Output | Parameter | Type | Description | | --------- | ---- | ----------- | +| `pagination_meta` | object | Pagination metadata. Pass `after` back to fetch the next page. | +| ↳ `after` | string | Cursor for the next page | +| ↳ `page_size` | number | Number of results per page | | `actions` | array | List of actions | | ↳ `id` | string | Action ID | | ↳ `description` | string | Action description | @@ -237,19 +242,30 @@ List actions from incident.io. Optionally filter by incident ID. | ↳ `name` | string | User name | | ↳ `email` | string | User email | | ↳ `status` | string | Action status | -| ↳ `due_at` | string | Due date/time | +| ↳ `due_at` | string | Deprecated: incident.io actions have no due date, so this is never set | | ↳ `created_at` | string | Creation timestamp | | ↳ `updated_at` | string | Last update timestamp | | ↳ `incident_id` | string | Associated incident ID | -| ↳ `creator` | object | User who created the action | -| ↳ `id` | string | User ID | -| ↳ `name` | string | User name | -| ↳ `email` | string | User email | +| ↳ `creator` | object | Who created the action | +| ↳ `user` | object | The user who caused this, if a person did | +| ↳ `id` | string | User ID | +| ↳ `name` | string | User display name | +| ↳ `email` | string | User email address | +| ↳ `role` | string | User role | +| ↳ `slack_user_id` | string | Slack user ID | +| ↳ `api_key` | object | The API key that caused this, if an integration did | +| ↳ `id` | string | API key ID | +| ↳ `name` | string | API key name | +| ↳ `workflow` | object | The incident.io workflow that caused this, if automation did | +| ↳ `id` | string | Workflow ID | +| ↳ `name` | string | Workflow name | +| ↳ `alert` | object | The alert that caused this, if an alert did | +| ↳ `id` | string | Alert ID | +| ↳ `title` | string | Alert title | +| ↳ `id` | string | ID of the user, API key, workflow, or alert | +| ↳ `name` | string | Name of the user, API key, or workflow \(or the alert title\) | +| ↳ `email` | string | User email, when a user created it | | ↳ `completed_at` | string | Completion timestamp | -| ↳ `external_issue_reference` | object | External issue tracking reference | -| ↳ `provider` | string | Issue tracking provider \(e.g., Jira, Linear\) | -| ↳ `issue_name` | string | Issue identifier | -| ↳ `issue_permalink` | string | URL to the external issue | @@ -277,25 +293,36 @@ Get detailed information about a specific action from incident.io. | ↳ `name` | string | User name | | ↳ `email` | string | User email | | ↳ `status` | string | Action status | -| ↳ `due_at` | string | Due date/time | +| ↳ `due_at` | string | Deprecated: incident.io actions have no due date, so this is never set | | ↳ `created_at` | string | Creation timestamp | | ↳ `updated_at` | string | Last update timestamp | | ↳ `incident_id` | string | Associated incident ID | -| ↳ `creator` | object | User who created the action | -| ↳ `id` | string | User ID | -| ↳ `name` | string | User name | -| ↳ `email` | string | User email | +| ↳ `creator` | object | Who created the action | +| ↳ `user` | object | The user who caused this, if a person did | +| ↳ `id` | string | User ID | +| ↳ `name` | string | User display name | +| ↳ `email` | string | User email address | +| ↳ `role` | string | User role | +| ↳ `slack_user_id` | string | Slack user ID | +| ↳ `api_key` | object | The API key that caused this, if an integration did | +| ↳ `id` | string | API key ID | +| ↳ `name` | string | API key name | +| ↳ `workflow` | object | The incident.io workflow that caused this, if automation did | +| ↳ `id` | string | Workflow ID | +| ↳ `name` | string | Workflow name | +| ↳ `alert` | object | The alert that caused this, if an alert did | +| ↳ `id` | string | Alert ID | +| ↳ `title` | string | Alert title | +| ↳ `id` | string | ID of the user, API key, workflow, or alert | +| ↳ `name` | string | Name of the user, API key, or workflow \(or the alert title\) | +| ↳ `email` | string | User email, when a user created it | | ↳ `completed_at` | string | Completion timestamp | -| ↳ `external_issue_reference` | object | External issue tracking reference | -| ↳ `provider` | string | Issue tracking provider \(e.g., Jira, Linear\) | -| ↳ `issue_name` | string | Issue identifier | -| ↳ `issue_permalink` | string | URL to the external issue | ### incident.io Follow-ups List -List follow-ups from incident.io. Optionally filter by incident ID. +List follow-ups from incident.io, optionally filtered by incident ID. Without page_size or after, follows pages automatically and returns up to 2,500 follow-ups, oldest first; if more remain, pagination_meta.after is set. Pass page_size or after to fetch a single page. @@ -304,12 +331,17 @@ List follow-ups from incident.io. Optionally filter by incident ID. | Parameter | Type | Required | Description | | --------- | ---- | -------- | ----------- | | `incident_id` | string | No | Filter follow-ups by incident ID \(e.g., "01FCNDV6P870EA6S7TK1DSYDG0"\) | -| `incident_mode` | string | No | Filter follow-ups by incident mode \(standard, retrospective, test, tutorial, or stream\) | +| `incident_mode` | string | No | Filter follow-ups by incident mode \(standard, retrospective, test, tutorial, or stream\). When omitted, follow-ups from standard and retrospective incidents are returned. | +| `page_size` | number | No | Number of follow-ups per page, 1-250. Setting it fetches a single page instead of following pages automatically | +| `after` | string | No | Pagination cursor from a previous page's pagination_meta.after \(e.g., "01FDAG4SAP5TYPT98WGR2N7W91"\) | #### Output | Parameter | Type | Description | | --------- | ---- | ----------- | +| `pagination_meta` | object | Pagination metadata. Pass `after` back to fetch the next page. | +| ↳ `after` | string | Cursor for the next page | +| ↳ `page_size` | number | Number of results per page | | `follow_ups` | array | List of follow-ups | | ↳ `id` | string | Follow-up ID | | ↳ `title` | string | Follow-up title | @@ -318,25 +350,48 @@ List follow-ups from incident.io. Optionally filter by incident ID. | ↳ `id` | string | User ID | | ↳ `name` | string | User name | | ↳ `email` | string | User email | +| ↳ `assignee_team` | object | The team the follow-up is assigned to | +| ↳ `id` | string | Team ID | +| ↳ `name` | string | Team name | | ↳ `status` | string | Follow-up status | | ↳ `priority` | object | Follow-up priority | | ↳ `id` | string | Priority ID | | ↳ `name` | string | Priority name | | ↳ `description` | string | Priority description | | ↳ `rank` | number | Priority rank | +| ↳ `category` | object | Follow-up category | +| ↳ `id` | string | Category ID | +| ↳ `name` | string | Category name | +| ↳ `description` | string | Category description | +| ↳ `rank` | number | Category rank | | ↳ `created_at` | string | Creation timestamp | | ↳ `updated_at` | string | Last update timestamp | | ↳ `incident_id` | string | Associated incident ID | -| ↳ `creator` | object | User who created the follow-up | -| ↳ `id` | string | User ID | -| ↳ `name` | string | User name | -| ↳ `email` | string | User email | +| ↳ `creator` | object | Who created the follow-up | +| ↳ `user` | object | The user who caused this, if a person did | +| ↳ `id` | string | User ID | +| ↳ `name` | string | User display name | +| ↳ `email` | string | User email address | +| ↳ `role` | string | User role | +| ↳ `slack_user_id` | string | Slack user ID | +| ↳ `api_key` | object | The API key that caused this, if an integration did | +| ↳ `id` | string | API key ID | +| ↳ `name` | string | API key name | +| ↳ `workflow` | object | The incident.io workflow that caused this, if automation did | +| ↳ `id` | string | Workflow ID | +| ↳ `name` | string | Workflow name | +| ↳ `alert` | object | The alert that caused this, if an alert did | +| ↳ `id` | string | Alert ID | +| ↳ `title` | string | Alert title | +| ↳ `id` | string | ID of the user, API key, workflow, or alert | +| ↳ `name` | string | Name of the user, API key, or workflow \(or the alert title\) | +| ↳ `email` | string | User email, when a user created it | | ↳ `completed_at` | string | Completion timestamp | | ↳ `labels` | array | Labels associated with the follow-up | | ↳ `external_issue_reference` | object | External issue tracking reference | -| ↳ `provider` | string | External provider name | -| ↳ `issue_name` | string | External issue name or ID | -| ↳ `issue_permalink` | string | Permalink to external issue | +| ↳ `provider` | string | Issue tracking provider \(e.g., Jira, Linear\) | +| ↳ `issue_name` | string | Issue identifier | +| ↳ `issue_permalink` | string | URL to the external issue | @@ -364,25 +419,48 @@ Get detailed information about a specific follow-up from incident.io. | ↳ `id` | string | User ID | | ↳ `name` | string | User name | | ↳ `email` | string | User email | +| ↳ `assignee_team` | object | The team the follow-up is assigned to | +| ↳ `id` | string | Team ID | +| ↳ `name` | string | Team name | | ↳ `status` | string | Follow-up status | | ↳ `priority` | object | Follow-up priority | | ↳ `id` | string | Priority ID | | ↳ `name` | string | Priority name | | ↳ `description` | string | Priority description | | ↳ `rank` | number | Priority rank | +| ↳ `category` | object | Follow-up category | +| ↳ `id` | string | Category ID | +| ↳ `name` | string | Category name | +| ↳ `description` | string | Category description | +| ↳ `rank` | number | Category rank | | ↳ `created_at` | string | Creation timestamp | | ↳ `updated_at` | string | Last update timestamp | | ↳ `incident_id` | string | Associated incident ID | -| ↳ `creator` | object | User who created the follow-up | -| ↳ `id` | string | User ID | -| ↳ `name` | string | User name | -| ↳ `email` | string | User email | +| ↳ `creator` | object | Who created the follow-up | +| ↳ `user` | object | The user who caused this, if a person did | +| ↳ `id` | string | User ID | +| ↳ `name` | string | User display name | +| ↳ `email` | string | User email address | +| ↳ `role` | string | User role | +| ↳ `slack_user_id` | string | Slack user ID | +| ↳ `api_key` | object | The API key that caused this, if an integration did | +| ↳ `id` | string | API key ID | +| ↳ `name` | string | API key name | +| ↳ `workflow` | object | The incident.io workflow that caused this, if automation did | +| ↳ `id` | string | Workflow ID | +| ↳ `name` | string | Workflow name | +| ↳ `alert` | object | The alert that caused this, if an alert did | +| ↳ `id` | string | Alert ID | +| ↳ `title` | string | Alert title | +| ↳ `id` | string | ID of the user, API key, workflow, or alert | +| ↳ `name` | string | Name of the user, API key, or workflow \(or the alert title\) | +| ↳ `email` | string | User email, when a user created it | | ↳ `completed_at` | string | Completion timestamp | | ↳ `labels` | array | Labels associated with the follow-up | | ↳ `external_issue_reference` | object | External issue tracking reference | -| ↳ `provider` | string | External provider name | -| ↳ `issue_name` | string | External issue name or ID | -| ↳ `issue_permalink` | string | Permalink to external issue | +| ↳ `provider` | string | Issue tracking provider \(e.g., Jira, Linear\) | +| ↳ `issue_name` | string | Issue identifier | +| ↳ `issue_permalink` | string | URL to the external issue | @@ -400,6 +478,7 @@ List all users in your Incident.io workspace. Returns user details including id, | `after` | string | No | Pagination cursor to fetch the next page of results | | `email` | string | No | Filter users by email address | | `slack_user_id` | string | No | Filter users by Slack user ID | +| `include_inactive` | boolean | No | Include deactivated or not-yet-active users, for resolving people who have since been offboarded. Default: false | #### Output @@ -410,6 +489,8 @@ List all users in your Incident.io workspace. Returns user details including id, | ↳ `name` | string | Full name of the user | | ↳ `email` | string | Email address of the user | | ↳ `role` | string | Role of the user in the workspace | +| ↳ `slack_user_id` | string | Slack ID of the user | +| ↳ `is_active` | boolean | Whether the user is active \(false once deactivated\) | | `pagination_meta` | object | Pagination metadata | | ↳ `after` | string | Cursor for next page | | ↳ `page_size` | number | Number of items per page | @@ -438,6 +519,8 @@ Get detailed information about a specific user in your Incident.io workspace by | ↳ `name` | string | Full name of the user | | ↳ `email` | string | Email address of the user | | ↳ `role` | string | Role of the user in the workspace | +| ↳ `slack_user_id` | string | Slack ID of the user | +| ↳ `is_active` | boolean | Whether the user is active \(false once deactivated\) | @@ -682,6 +765,7 @@ List all schedules in incident.io | `pagination_meta` | object | Pagination metadata | | ↳ `after` | string | Cursor for next page | | ↳ `page_size` | number | Number of results per page | +| ↳ `total_record_count` | number | Total number of schedules | @@ -766,7 +850,7 @@ Update an existing schedule in incident.io | `id` | string | Yes | The ID of the schedule to update \(e.g., "01FCNDV6P870EA6S7TK1DSYDG0"\) | | `name` | string | No | New name for the schedule \(e.g., "Primary On-Call"\) | | `timezone` | string | No | New timezone for the schedule \(e.g., America/New_York\) | -| `config` | string | No | Schedule configuration as JSON string with rotations. Example: \{"rotations": \[\{"name": "Primary", "users": \[\{"id": "user_id"\}\], "handover_start_at": "2024-01-01T09:00:00Z", "handovers": \[\{"interval": 1, "interval_type": "weekly"\}\]\}\]\} | +| `config` | string | No | Schedule configuration as JSON with rotations. Sending it replaces the entire configuration, including any scheduled future versions of its rotations, so fetch the schedule first and include every version you want to keep. Example: \{"rotations": \[\{"name": "Primary", "users": \[\{"id": "user_id"\}\], "handover_start_at": "2024-01-01T09:00:00Z", "handovers": \[\{"interval": 1, "interval_type": "weekly"\}\]\}\]\} | #### Output @@ -803,7 +887,7 @@ Delete a schedule in incident.io ### List Escalations -List all escalation policies in incident.io +List escalations (pages sent to people) in incident.io. For escalation policies, use List Escalation Paths. @@ -811,7 +895,7 @@ List all escalation policies in incident.io | Parameter | Type | Required | Description | | --------- | ---- | -------- | ----------- | -| `page_size` | number | No | Number of escalations to return per page | +| `page_size` | number | No | Number of escalations to return per page \(max 50\) | | `after` | string | No | Pagination cursor to fetch the next page of results | #### Output @@ -835,7 +919,7 @@ List all escalation policies in incident.io ### Create Escalation -Create a new escalation policy in incident.io +Page users or an escalation path (create an escalation) in incident.io. Provide either escalation_path_id or user_ids, not both. To create a reusable escalation policy, use Create Escalation Path instead. @@ -846,7 +930,9 @@ Create a new escalation policy in incident.io | `idempotency_key` | string | Yes | Unique identifier to prevent duplicate escalation creation. Use a UUID or unique string. | | `title` | string | Yes | Title of the escalation \(e.g., "Database Critical Alert"\) | | `escalation_path_id` | string | No | ID of the escalation path to use \(required if user_ids not provided\) | -| `user_ids` | string | No | Comma-separated list of user IDs to notify \(required if escalation_path_id not provided\) | +| `user_ids` | string | No | Comma-separated list of user IDs to page directly \(required if escalation_path_id not provided\) | +| `incident_id` | string | No | ID of an incident to link this escalation to; it appears in the escalation's related incidents \(e.g., "01H0J1EXE7AXZ2C93K61WBPYEH"\) | +| `description` | string | No | Additional details included with the page \(e.g., "Database CPU above 90%"\) | #### Output @@ -866,7 +952,7 @@ Create a new escalation policy in incident.io ### Show Escalation -Get details of a specific escalation policy in incident.io +Get an escalation (a page sent to people) in incident.io. For an escalation policy, use Show Escalation Path. @@ -874,7 +960,7 @@ Get details of a specific escalation policy in incident.io | Parameter | Type | Required | Description | | --------- | ---- | -------- | ----------- | -| `id` | string | Yes | The ID of the escalation policy \(e.g., "01FCNDV6P870EA6S7TK1DSYDG0"\) | +| `id` | string | Yes | The ID of the escalation \(e.g., "01FCNDV6P870EA6S7TK1DSYDG0"\) | #### Output @@ -1110,7 +1196,7 @@ List all incident roles in incident.io | ↳ `instructions` | string | Instructions for the role | | ↳ `shortform` | string | Short form abbreviation of the role | | ↳ `role_type` | string | The type of role | -| ↳ `required` | boolean | Whether the role is required | +| ↳ `required` | boolean | Not returned by the incident.io API; always empty | | ↳ `created_at` | string | When the role was created | | ↳ `updated_at` | string | When the role was last updated | @@ -1142,7 +1228,7 @@ Create a new incident role in incident.io | ↳ `instructions` | string | Instructions for the role | | ↳ `shortform` | string | Short form abbreviation of the role | | ↳ `role_type` | string | The type of role | -| ↳ `required` | boolean | Whether the role is required | +| ↳ `required` | boolean | Not returned by the incident.io API; always empty | | ↳ `created_at` | string | When the role was created | | ↳ `updated_at` | string | When the role was last updated | @@ -1171,7 +1257,7 @@ Get details of a specific incident role in incident.io | ↳ `instructions` | string | Instructions for the role | | ↳ `shortform` | string | Short form abbreviation of the role | | ↳ `role_type` | string | The type of role | -| ↳ `required` | boolean | Whether the role is required | +| ↳ `required` | boolean | Not returned by the incident.io API; always empty | | ↳ `created_at` | string | When the role was created | | ↳ `updated_at` | string | When the role was last updated | @@ -1204,7 +1290,7 @@ Update an existing incident role in incident.io | ↳ `instructions` | string | Instructions for the role | | ↳ `shortform` | string | Short form abbreviation of the role | | ↳ `role_type` | string | The type of role | -| ↳ `required` | boolean | Whether the role is required | +| ↳ `required` | boolean | Not returned by the incident.io API; always empty | | ↳ `created_at` | string | When the role was created | | ↳ `updated_at` | string | When the role was last updated | @@ -1249,8 +1335,8 @@ List all incident timestamp definitions in incident.io | ↳ `id` | string | The timestamp ID | | ↳ `name` | string | The timestamp name | | ↳ `rank` | number | The rank/order of the timestamp | -| ↳ `created_at` | string | When the timestamp was created | -| ↳ `updated_at` | string | When the timestamp was last updated | +| ↳ `created_at` | string | Not returned by the incident.io API; always empty | +| ↳ `updated_at` | string | Not returned by the incident.io API; always empty | @@ -1274,8 +1360,8 @@ Get details of a specific incident timestamp definition in incident.io | ↳ `id` | string | The timestamp ID | | ↳ `name` | string | The timestamp name | | ↳ `rank` | number | The rank/order of the timestamp | -| ↳ `created_at` | string | When the timestamp was created | -| ↳ `updated_at` | string | When the timestamp was last updated | +| ↳ `created_at` | string | Not returned by the incident.io API; always empty | +| ↳ `updated_at` | string | Not returned by the incident.io API; always empty | @@ -1408,7 +1494,7 @@ List escalation paths in incident.io | Parameter | Type | Required | Description | | --------- | ---- | -------- | ----------- | -| `page_size` | number | No | Number of escalation paths to return per page | +| `page_size` | number | No | Number of escalation paths to return per page \(max 25\) | | `after` | string | No | Pagination cursor to fetch the next page of results | #### Output @@ -1418,8 +1504,35 @@ List escalation paths in incident.io | `escalation_paths` | array | List of escalation paths | | ↳ `id` | string | The escalation path ID | | ↳ `name` | string | The escalation path name | -| ↳ `path` | array | Array of escalation levels | -| ↳ `working_hours` | array | Working hours configuration | +| ↳ `kind` | string | Path kind \(standalone, templated\) | +| ↳ `team_ids` | array | IDs of the teams that own this escalation path | +| ↳ `path` | array | Nodes that form the levels and branches of the path | +| ↳ `id` | string | Node ID, unique within the path | +| ↳ `type` | string | Node type \(level, notify_channel, delay, if_else, repeat, voicemail, escalation_path\) | +| ↳ `level` | object | For a level node: who to page and how long to wait for an ack | +| ↳ `targets` | array | Users, schedules, or channels to page | +| ↳ `id` | string | Target ID | +| ↳ `type` | string | Target type \(schedule, user, slack_channel, msteams_channel\) | +| ↳ `urgency` | string | Urgency \(high, low\) | +| ↳ `schedule_mode` | string | For schedule targets, which users to page | +| ↳ `time_to_ack_seconds` | number | Seconds to wait for an ack before moving on | +| ↳ `notify_channel` | json | For a notify_channel node | +| ↳ `delay` | json | For a delay node | +| ↳ `if_else` | json | For an if_else node | +| ↳ `repeat` | json | For a repeat node | +| ↳ `escalation_path` | json | For an escalation_path node | +| ↳ `working_hours` | array | Working-hours windows the path can refer to | +| ↳ `id` | string | Window ID | +| ↳ `name` | string | Window name | +| ↳ `timezone` | string | Timezone the intervals are in | +| ↳ `weekday_intervals` | array | Intervals, each \{weekday, start_time, end_time\} | +| ↳ `repeat_config` | json | How the path repeats | +| ↳ `current_responders` | array | Users currently on call for this path | +| ↳ `id` | string | User ID | +| ↳ `name` | string | User display name | +| ↳ `email` | string | User email address | +| ↳ `role` | string | User role | +| ↳ `slack_user_id` | string | Slack user ID | | `pagination_meta` | object | Pagination metadata | | ↳ `after` | string | Cursor for next page | | ↳ `page_size` | number | Number of results per page | @@ -1437,8 +1550,8 @@ Create a new escalation path in incident.io | Parameter | Type | Required | Description | | --------- | ---- | -------- | ----------- | | `name` | string | Yes | Name of the escalation path \(e.g., "Critical Incident Path"\) | -| `path` | json | Yes | Array of escalation levels with targets and time to acknowledge in seconds. Each level should have: targets \(array of \{id, type, schedule_id?, user_id?, urgency\}\) and time_to_ack_seconds \(number\) | -| `working_hours` | json | No | Optional working hours configuration. Array of \{weekday, start_time, end_time\} | +| `path` | json | Yes | Array of escalation path nodes. Each node needs a unique "id" and a "type" \(level, notify_channel, delay, if_else, repeat, voicemail, escalation_path\); a level node nests its targets under "level", e.g. \[\{"id":"lvl1","type":"level","level":\{"targets":\[\{"id":"<schedule id>","type":"schedule","schedule_mode":"currently_on_call","urgency":"high"\}\],"time_to_ack_seconds":300\}\}\]. Target type is schedule, user, slack_channel, or msteams_channel; urgency is high or low. | +| `working_hours` | json | No | Optional. Array of working-hours windows, each \{id, name, timezone, weekday_intervals: \[\{weekday, start_time, end_time\}\]\}, e.g. \[\{"id":"wh","name":"Business hours","timezone":"Europe/London","weekday_intervals":\[\{"weekday":"monday","start_time":"09:00","end_time":"17:00"\}\]\}\] | #### Output @@ -1447,18 +1560,35 @@ Create a new escalation path in incident.io | `escalation_path` | object | The created escalation path | | ↳ `id` | string | The escalation path ID | | ↳ `name` | string | The escalation path name | -| ↳ `path` | array | Array of escalation levels | -| ↳ `targets` | array | Targets for this level | -| ↳ `id` | string | Target ID | -| ↳ `type` | string | Target type | -| ↳ `schedule_id` | string | Schedule ID if type is schedule | -| ↳ `user_id` | string | User ID if type is user | -| ↳ `urgency` | string | Urgency level | -| ↳ `time_to_ack_seconds` | number | Time to acknowledge in seconds | -| ↳ `working_hours` | array | Working hours configuration | -| ↳ `weekday` | string | Day of week | -| ↳ `start_time` | string | Start time | -| ↳ `end_time` | string | End time | +| ↳ `kind` | string | Path kind \(standalone, templated\) | +| ↳ `team_ids` | array | IDs of the teams that own this escalation path | +| ↳ `path` | array | Nodes that form the levels and branches of the path | +| ↳ `id` | string | Node ID, unique within the path | +| ↳ `type` | string | Node type \(level, notify_channel, delay, if_else, repeat, voicemail, escalation_path\) | +| ↳ `level` | object | For a level node: who to page and how long to wait for an ack | +| ↳ `targets` | array | Users, schedules, or channels to page | +| ↳ `id` | string | Target ID | +| ↳ `type` | string | Target type \(schedule, user, slack_channel, msteams_channel\) | +| ↳ `urgency` | string | Urgency \(high, low\) | +| ↳ `schedule_mode` | string | For schedule targets, which users to page | +| ↳ `time_to_ack_seconds` | number | Seconds to wait for an ack before moving on | +| ↳ `notify_channel` | json | For a notify_channel node | +| ↳ `delay` | json | For a delay node | +| ↳ `if_else` | json | For an if_else node | +| ↳ `repeat` | json | For a repeat node | +| ↳ `escalation_path` | json | For an escalation_path node | +| ↳ `working_hours` | array | Working-hours windows the path can refer to | +| ↳ `id` | string | Window ID | +| ↳ `name` | string | Window name | +| ↳ `timezone` | string | Timezone the intervals are in | +| ↳ `weekday_intervals` | array | Intervals, each \{weekday, start_time, end_time\} | +| ↳ `repeat_config` | json | How the path repeats | +| ↳ `current_responders` | array | Users currently on call for this path | +| ↳ `id` | string | User ID | +| ↳ `name` | string | User display name | +| ↳ `email` | string | User email address | +| ↳ `role` | string | User role | +| ↳ `slack_user_id` | string | Slack user ID | @@ -1481,18 +1611,35 @@ Get details of a specific escalation path in incident.io | `escalation_path` | object | The escalation path details | | ↳ `id` | string | The escalation path ID | | ↳ `name` | string | The escalation path name | -| ↳ `path` | array | Array of escalation levels | -| ↳ `targets` | array | Targets for this level | -| ↳ `id` | string | Target ID | -| ↳ `type` | string | Target type | -| ↳ `schedule_id` | string | Schedule ID if type is schedule | -| ↳ `user_id` | string | User ID if type is user | -| ↳ `urgency` | string | Urgency level | -| ↳ `time_to_ack_seconds` | number | Time to acknowledge in seconds | -| ↳ `working_hours` | array | Working hours configuration | -| ↳ `weekday` | string | Day of week | -| ↳ `start_time` | string | Start time | -| ↳ `end_time` | string | End time | +| ↳ `kind` | string | Path kind \(standalone, templated\) | +| ↳ `team_ids` | array | IDs of the teams that own this escalation path | +| ↳ `path` | array | Nodes that form the levels and branches of the path | +| ↳ `id` | string | Node ID, unique within the path | +| ↳ `type` | string | Node type \(level, notify_channel, delay, if_else, repeat, voicemail, escalation_path\) | +| ↳ `level` | object | For a level node: who to page and how long to wait for an ack | +| ↳ `targets` | array | Users, schedules, or channels to page | +| ↳ `id` | string | Target ID | +| ↳ `type` | string | Target type \(schedule, user, slack_channel, msteams_channel\) | +| ↳ `urgency` | string | Urgency \(high, low\) | +| ↳ `schedule_mode` | string | For schedule targets, which users to page | +| ↳ `time_to_ack_seconds` | number | Seconds to wait for an ack before moving on | +| ↳ `notify_channel` | json | For a notify_channel node | +| ↳ `delay` | json | For a delay node | +| ↳ `if_else` | json | For an if_else node | +| ↳ `repeat` | json | For a repeat node | +| ↳ `escalation_path` | json | For an escalation_path node | +| ↳ `working_hours` | array | Working-hours windows the path can refer to | +| ↳ `id` | string | Window ID | +| ↳ `name` | string | Window name | +| ↳ `timezone` | string | Timezone the intervals are in | +| ↳ `weekday_intervals` | array | Intervals, each \{weekday, start_time, end_time\} | +| ↳ `repeat_config` | json | How the path repeats | +| ↳ `current_responders` | array | Users currently on call for this path | +| ↳ `id` | string | User ID | +| ↳ `name` | string | User display name | +| ↳ `email` | string | User email address | +| ↳ `role` | string | User role | +| ↳ `slack_user_id` | string | Slack user ID | @@ -1508,8 +1655,8 @@ Update an existing escalation path in incident.io | --------- | ---- | -------- | ----------- | | `id` | string | Yes | The ID of the escalation path to update \(e.g., "01FCNDV6P870EA6S7TK1DSYDG0"\) | | `name` | string | Yes | New name for the escalation path \(e.g., "Critical Incident Path"\) | -| `path` | json | Yes | New escalation path configuration. Array of escalation levels with targets and time_to_ack_seconds | -| `working_hours` | json | No | New working hours configuration. Array of \{weekday, start_time, end_time\} | +| `path` | json | Yes | New escalation path configuration. Array of escalation path nodes. Each node needs a unique "id" and a "type" \(level, notify_channel, delay, if_else, repeat, voicemail, escalation_path\); a level node nests its targets under "level", e.g. \[\{"id":"lvl1","type":"level","level":\{"targets":\[\{"id":"<schedule id>","type":"schedule","schedule_mode":"currently_on_call","urgency":"high"\}\],"time_to_ack_seconds":300\}\}\]. Target type is schedule, user, slack_channel, or msteams_channel; urgency is high or low. | +| `working_hours` | json | No | New working hours configuration. Array of working-hours windows, each \{id, name, timezone, weekday_intervals: \[\{weekday, start_time, end_time\}\]\}, e.g. \[\{"id":"wh","name":"Business hours","timezone":"Europe/London","weekday_intervals":\[\{"weekday":"monday","start_time":"09:00","end_time":"17:00"\}\]\}\] | #### Output @@ -1518,18 +1665,35 @@ Update an existing escalation path in incident.io | `escalation_path` | object | The updated escalation path | | ↳ `id` | string | The escalation path ID | | ↳ `name` | string | The escalation path name | -| ↳ `path` | array | Array of escalation levels | -| ↳ `targets` | array | Targets for this level | -| ↳ `id` | string | Target ID | -| ↳ `type` | string | Target type | -| ↳ `schedule_id` | string | Schedule ID if type is schedule | -| ↳ `user_id` | string | User ID if type is user | -| ↳ `urgency` | string | Urgency level | -| ↳ `time_to_ack_seconds` | number | Time to acknowledge in seconds | -| ↳ `working_hours` | array | Working hours configuration | -| ↳ `weekday` | string | Day of week | -| ↳ `start_time` | string | Start time | -| ↳ `end_time` | string | End time | +| ↳ `kind` | string | Path kind \(standalone, templated\) | +| ↳ `team_ids` | array | IDs of the teams that own this escalation path | +| ↳ `path` | array | Nodes that form the levels and branches of the path | +| ↳ `id` | string | Node ID, unique within the path | +| ↳ `type` | string | Node type \(level, notify_channel, delay, if_else, repeat, voicemail, escalation_path\) | +| ↳ `level` | object | For a level node: who to page and how long to wait for an ack | +| ↳ `targets` | array | Users, schedules, or channels to page | +| ↳ `id` | string | Target ID | +| ↳ `type` | string | Target type \(schedule, user, slack_channel, msteams_channel\) | +| ↳ `urgency` | string | Urgency \(high, low\) | +| ↳ `schedule_mode` | string | For schedule targets, which users to page | +| ↳ `time_to_ack_seconds` | number | Seconds to wait for an ack before moving on | +| ↳ `notify_channel` | json | For a notify_channel node | +| ↳ `delay` | json | For a delay node | +| ↳ `if_else` | json | For an if_else node | +| ↳ `repeat` | json | For a repeat node | +| ↳ `escalation_path` | json | For an escalation_path node | +| ↳ `working_hours` | array | Working-hours windows the path can refer to | +| ↳ `id` | string | Window ID | +| ↳ `name` | string | Window name | +| ↳ `timezone` | string | Timezone the intervals are in | +| ↳ `weekday_intervals` | array | Intervals, each \{weekday, start_time, end_time\} | +| ↳ `repeat_config` | json | How the path repeats | +| ↳ `current_responders` | array | Users currently on call for this path | +| ↳ `id` | string | User ID | +| ↳ `name` | string | User display name | +| ↳ `email` | string | User email address | +| ↳ `role` | string | User role | +| ↳ `slack_user_id` | string | Slack user ID | @@ -1631,7 +1795,7 @@ List alerts in incident.io, optionally filtered by status, source, or created da | Parameter | Type | Required | Description | | --------- | ---- | -------- | ----------- | -| `page_size` | number | No | Number of results per page \(e.g., 10, 25, 50\). Default: 25 | +| `page_size` | number | No | Number of results per page \(e.g., 10, 25, 50; max 50\). Default: 25 | | `after` | string | No | Pagination cursor to fetch the next page of results \(e.g., "01FCNDV6P870EA6S7TK1DSYDG0"\) | | `status` | string | No | Filter by alert status: "firing" or "resolved" | | `status_operator` | string | No | How to apply the status filter: "one_of" to match it, "not_in" to exclude it. Default: one_of | @@ -1660,6 +1824,9 @@ List alerts in incident.io, optionally filtered by status, source, or created da | ↳ `updated_at` | string | When this alert was last updated | | ↳ `alert_group_ids` | array | IDs of every alert group this alert belongs to | | ↳ `attributes` | array | Attribute values parsed from the alert payload | +| ↳ `tags` | array | Tags someone has applied to this alert | +| ↳ `id` | string | Tag ID | +| ↳ `name` | string | Tag name | | `pagination_meta` | object | Pagination metadata | | ↳ `after` | string | Cursor for next page | | ↳ `page_size` | number | Number of results per page | @@ -1695,6 +1862,9 @@ Get a single alert by ID from incident.io | ↳ `updated_at` | string | When this alert was last updated | | ↳ `alert_group_ids` | array | IDs of every alert group this alert belongs to | | ↳ `attributes` | array | Attribute values parsed from the alert payload | +| ↳ `tags` | array | Tags someone has applied to this alert | +| ↳ `id` | string | Tag ID | +| ↳ `name` | string | Tag name | @@ -1727,6 +1897,9 @@ Resolve a currently firing alert in incident.io. Resolving an already-resolved a | ↳ `updated_at` | string | When this alert was last updated | | ↳ `alert_group_ids` | array | IDs of every alert group this alert belongs to | | ↳ `attributes` | array | Attribute values parsed from the alert payload | +| ↳ `tags` | array | Tags someone has applied to this alert | +| ↳ `id` | string | Tag ID | +| ↳ `name` | string | Tag name | @@ -1769,7 +1942,7 @@ List the connections between incidents and alerts in incident.io — which alert | Parameter | Type | Required | Description | | --------- | ---- | -------- | ----------- | -| `page_size` | number | No | Number of results per page \(e.g., 10, 25, 50\). Default: 25 | +| `page_size` | number | No | Number of results per page \(e.g., 10, 25, 50; max 50\). Default: 25 | | `after` | string | No | Pagination cursor to fetch the next page of results \(e.g., "01FCNDV6P870EA6S7TK1DSYDG0"\) | | `incident_id` | string | No | Only return alerts attached to this incident \(e.g., "01FDAG4SAP5TYPT98WGR2N7W91"\) | | `alert_id` | string | No | Only return connections for this alert \(e.g., "01GW2G3V0S59R238FAHPDS1R66"\) | @@ -1878,7 +2051,7 @@ List the entries of a catalog type in incident.io — for example every service, | Parameter | Type | Required | Description | | --------- | ---- | -------- | ----------- | | `catalog_type_id` | string | Yes | The ID of the catalog type to list entries for \(e.g., "01FCNDV6P870EA6S7TK1DSYDG0"\) | -| `page_size` | number | No | Number of results per page \(e.g., 10, 25, 50\). Default: 25 | +| `page_size` | number | No | Number of results per page \(e.g., 10, 25, 50; max 250\). Default: 25 | | `after` | string | No | Pagination cursor to fetch the next page of results \(e.g., "01FCNDV6P870EA6S7TK1DSYDG0"\) | | `identifier` | string | No | Only return entries matching this identifier. Searches by ID, external ID, and alias. | diff --git a/apps/docs/content/docs/integrations/linear.mdx b/apps/docs/content/docs/integrations/linear.mdx index 53b4a019aae..6a538b56b57 100644 --- a/apps/docs/content/docs/integrations/linear.mdx +++ b/apps/docs/content/docs/integrations/linear.mdx @@ -582,7 +582,11 @@ List projects in Linear with optional filtering | ↳ `id` | string | Project ID | | ↳ `name` | string | Project name | | ↳ `description` | string | Project description | -| ↳ `state` | string | Project state \(planned, started, paused, completed, canceled\) | +| ↳ `state` | string | Deprecated project state \(planned, started, paused, completed, canceled\); prefer status | +| ↳ `status` | object | Current project status | +| ↳ `id` | string | Project status ID | +| ↳ `name` | string | Project status name | +| ↳ `type` | string | Status type \(backlog, planned, started, paused, completed, canceled\) | | ↳ `priority` | number | Project priority \(0-4\) | | ↳ `startDate` | string | Start date \(YYYY-MM-DD\) | | ↳ `targetDate` | string | Target date \(YYYY-MM-DD\) | @@ -594,6 +598,9 @@ List projects in Linear with optional filtering | ↳ `teams` | array | Associated teams | | ↳ `id` | string | Team ID | | ↳ `name` | string | Team name | +| ↳ `completedAt` | string | Completion timestamp \(ISO 8601\) | +| ↳ `canceledAt` | string | Cancellation timestamp \(ISO 8601\) | +| ↳ `archivedAt` | string | Archive timestamp \(ISO 8601\) | @@ -617,7 +624,11 @@ Get a single project by ID from Linear | ↳ `id` | string | Project ID | | ↳ `name` | string | Project name | | ↳ `description` | string | Project description | -| ↳ `state` | string | Project state \(planned, started, paused, completed, canceled\) | +| ↳ `state` | string | Deprecated project state \(planned, started, paused, completed, canceled\); prefer status | +| ↳ `status` | object | Current project status | +| ↳ `id` | string | Project status ID | +| ↳ `name` | string | Project status name | +| ↳ `type` | string | Status type \(backlog, planned, started, paused, completed, canceled\) | | ↳ `priority` | number | Project priority \(0-4\) | | ↳ `startDate` | string | Start date \(YYYY-MM-DD\) | | ↳ `targetDate` | string | Target date \(YYYY-MM-DD\) | @@ -629,6 +640,9 @@ Get a single project by ID from Linear | ↳ `teams` | array | Associated teams | | ↳ `id` | string | Team ID | | ↳ `name` | string | Team name | +| ↳ `completedAt` | string | Completion timestamp \(ISO 8601\) | +| ↳ `canceledAt` | string | Cancellation timestamp \(ISO 8601\) | +| ↳ `archivedAt` | string | Archive timestamp \(ISO 8601\) | @@ -658,7 +672,11 @@ Create a new project in Linear | ↳ `id` | string | Project ID | | ↳ `name` | string | Project name | | ↳ `description` | string | Project description | -| ↳ `state` | string | Project state \(planned, started, paused, completed, canceled\) | +| ↳ `state` | string | Deprecated project state \(planned, started, paused, completed, canceled\); prefer status | +| ↳ `status` | object | Current project status | +| ↳ `id` | string | Project status ID | +| ↳ `name` | string | Project status name | +| ↳ `type` | string | Status type \(backlog, planned, started, paused, completed, canceled\) | | ↳ `priority` | number | Project priority \(0-4\) | | ↳ `startDate` | string | Start date \(YYYY-MM-DD\) | | ↳ `targetDate` | string | Target date \(YYYY-MM-DD\) | @@ -686,7 +704,8 @@ Update an existing project in Linear | `projectId` | string | Yes | Project ID to update | | `name` | string | No | New project name | | `description` | string | No | New project description | -| `state` | string | No | Project state \(planned, started, completed, canceled\) | +| `state` | string | No | Deprecated: Linear no longer accepts a project state on update. Use statusId instead; a state given without statusId fails with an error. | +| `statusId` | string | No | Project status ID to move the project to \(see List Project Statuses\). Omit to keep the current status. | | `leadId` | string | No | User ID of the project lead | | `startDate` | string | No | Project start date \(ISO format: YYYY-MM-DD\) | | `targetDate` | string | No | Project target date \(ISO format: YYYY-MM-DD\) | @@ -700,7 +719,11 @@ Update an existing project in Linear | ↳ `id` | string | Project ID | | ↳ `name` | string | Project name | | ↳ `description` | string | Project description | -| ↳ `state` | string | Project state \(planned, started, paused, completed, canceled\) | +| ↳ `state` | string | Deprecated project state \(planned, started, paused, completed, canceled\); prefer status | +| ↳ `status` | object | Current project status | +| ↳ `id` | string | Project status ID | +| ↳ `name` | string | Project status name | +| ↳ `type` | string | Status type \(backlog, planned, started, paused, completed, canceled\) | | ↳ `priority` | number | Project priority \(0-4\) | | ↳ `startDate` | string | Start date \(YYYY-MM-DD\) | | ↳ `targetDate` | string | Target date \(YYYY-MM-DD\) | @@ -928,7 +951,7 @@ Update an existing label in Linear ### Linear Archive Label -Archive a label in Linear +Archive (retire) a label in Linear. A retired label can no longer be newly assigned but stays on issues that already use it. @@ -996,7 +1019,7 @@ Create a new workflow state (status) in Linear | --------- | ---- | -------- | ----------- | | `teamId` | string | Yes | Team ID to create the state in | | `name` | string | Yes | State name \(e.g., "In Review"\) | -| `color` | string | No | State color \(hex format\) | +| `color` | string | Yes | State color \(hex format, e.g. #5E6AD2\) | | `type` | string | Yes | State type: "backlog", "unstarted", "started", "completed", or "canceled" | | `description` | string | No | State description | | `position` | number | No | Position in the workflow | @@ -1126,7 +1149,7 @@ Get a single cycle by ID from Linear ### Linear Create Cycle -Create a new cycle (sprint/iteration) in Linear +Deprecated: Linear no longer supports creating cycles through its API (they are generated from the team cycle settings), so this always returns an error from Linear. @@ -1519,7 +1542,7 @@ Mark a notification as read or unread in Linear | Parameter | Type | Required | Description | | --------- | ---- | -------- | ----------- | | `notificationId` | string | Yes | Notification ID to update | -| `readAt` | string | No | Timestamp to mark as read \(ISO format\). Pass null or omit to mark as unread | +| `readAt` | string | No | ISO timestamp to mark the notification read at. Omit it to mark it read now; pass null to mark it unread. | #### Output @@ -1530,7 +1553,7 @@ Mark a notification as read or unread in Linear | ↳ `type` | string | Notification type | | ↳ `createdAt` | string | Creation timestamp | | ↳ `readAt` | string | Read timestamp | -| ↳ `issue` | object | Related issue | +| ↳ `issue` | object | Related issue \(only for issue notifications\) | @@ -1613,7 +1636,7 @@ List all customers in Linear ### Linear Create Customer Request -Create a customer request (need) in Linear. Assign to customer, set urgency (priority: 0 = Not important, 1 = Important), and optionally link to an issue. +Create a customer request (need) in Linear. Assign to customer, set urgency (priority: 0 = Not important, 1 = Important), and link it to an issue (required for API calls). @@ -1624,8 +1647,8 @@ Create a customer request (need) in Linear. Assign to customer, set urgency (pri | `customerId` | string | Yes | Customer ID to assign this request to | | `body` | string | No | Description of the customer request | | `priority` | number | No | Urgency level: 0 = Not important, 1 = Important \(default: 0\) | -| `issueId` | string | No | Issue ID to link this request to | -| `projectId` | string | No | Project ID to link this request to | +| `issueId` | string | Yes | Issue to link this request to \(UUID or identifier such as ENG-123\). Linear requires it for API calls. | +| `projectId` | string | No | Deprecated and ignored: Linear no longer accepts a project on customer requests. | #### Output @@ -1661,7 +1684,7 @@ Update a customer request (need) in Linear. Can change urgency, description, cus | `priority` | number | No | Updated urgency level: 0 = Not important, 1 = Important | | `customerId` | string | No | New customer ID to assign this request to | | `issueId` | string | No | New issue ID to link this request to | -| `projectId` | string | No | New project ID to link this request to | +| `projectId` | string | No | Deprecated and ignored: Linear no longer accepts a project on customer requests. | #### Output @@ -2371,7 +2394,7 @@ Create a new project status in Linear | Parameter | Type | Required | Description | | --------- | ---- | -------- | ----------- | | `name` | string | Yes | Project status name | -| `type` | string | Yes | Status type: "backlog", "planned", "started", "paused", "completed", or "canceled" | +| `type` | string | Yes | Status type: "backlog", "planned", "started", "completed", or "canceled" | | `color` | string | Yes | Status color \(hex code\) | | `position` | number | Yes | Position in status list \(e.g. 0, 1, 2...\) | | `description` | string | No | Status description | @@ -2432,7 +2455,7 @@ Update a project status in Linear ### Linear Delete Project Status -Delete a project status in Linear +Archive a project status in Linear (Linear does not support deleting one). The status must have no active projects and must not be the last status of its type. @@ -2440,13 +2463,13 @@ Delete a project status in Linear | Parameter | Type | Required | Description | | --------- | ---- | -------- | ----------- | -| `statusId` | string | Yes | Project status ID to delete | +| `statusId` | string | Yes | Project status ID to archive | #### Output | Parameter | Type | Description | | --------- | ---- | ----------- | -| `success` | boolean | Whether the deletion was successful | +| `success` | boolean | Whether the archive was successful | diff --git a/apps/docs/content/docs/integrations/pagerduty.mdx b/apps/docs/content/docs/integrations/pagerduty.mdx index a2182e65860..ed808cb41e5 100644 --- a/apps/docs/content/docs/integrations/pagerduty.mdx +++ b/apps/docs/content/docs/integrations/pagerduty.mdx @@ -37,6 +37,7 @@ List incidents from PagerDuty with optional filters. | `sortBy` | string | No | Sort field \(e.g., created_at:desc\) | | `limit` | string | No | Maximum number of results \(max 100\) | | `offset` | string | No | Offset to start pagination search results | +| `includeTotal` | boolean | No | Populate the total result count in the response \(PagerDuty returns null for total unless requested; slower\) | #### Output @@ -254,6 +255,7 @@ List the individual alerts attached to a PagerDuty incident. | `statuses` | string | No | Comma-separated statuses to filter \(triggered, resolved\) | | `limit` | string | No | Maximum number of results \(max 100\) | | `offset` | string | No | Offset to start pagination search results | +| `includeTotal` | boolean | No | Populate the total result count in the response \(PagerDuty returns null for total unless requested; slower\) | #### Output @@ -288,6 +290,7 @@ List services from PagerDuty with optional name filter. | `query` | string | No | Filter services by name | | `limit` | string | No | Maximum number of results \(max 100\) | | `offset` | string | No | Offset to start pagination search results | +| `includeTotal` | boolean | No | Populate the total result count in the response \(PagerDuty returns null for total unless requested; slower\) | #### Output @@ -354,6 +357,7 @@ List current on-call entries from PagerDuty. | `until` | string | No | End time filter \(ISO 8601 format\) | | `limit` | string | No | Maximum number of results \(max 100\) | | `offset` | string | No | Offset to start pagination search results | +| `includeTotal` | boolean | No | Populate the total result count in the response \(PagerDuty returns null for total unless requested; slower\) | #### Output @@ -388,6 +392,7 @@ List escalation policies from PagerDuty with an optional name filter. | `query` | string | No | Filter escalation policies by name | | `limit` | string | No | Maximum number of results \(max 100\) | | `offset` | string | No | Offset to start pagination search results | +| `includeTotal` | boolean | No | Populate the total result count in the response \(PagerDuty returns null for total unless requested; slower\) | #### Output @@ -419,6 +424,7 @@ List on-call schedules from PagerDuty with an optional name filter. | `query` | string | No | Filter schedules by name | | `limit` | string | No | Maximum number of results \(max 100\) | | `offset` | string | No | Offset to start pagination search results | +| `includeTotal` | boolean | No | Populate the total result count in the response \(PagerDuty returns null for total unless requested; slower\) | #### Output @@ -449,6 +455,7 @@ List users from PagerDuty with an optional name/email filter. | `query` | string | No | Filter users by name or email | | `limit` | string | No | Maximum number of results \(max 100\) | | `offset` | string | No | Offset to start pagination search results | +| `includeTotal` | boolean | No | Populate the total result count in the response \(PagerDuty returns null for total unless requested; slower\) | #### Output @@ -487,6 +494,8 @@ Send a trigger, acknowledge, or resolve event to PagerDuty Events API v2 using a | `component` | string | No | Component of the source machine responsible for the event | | `group` | string | No | Logical grouping of components of a service | | `class` | string | No | The class/type of the event | +| `timestamp` | string | No | ISO 8601 time at which the monitoring tool detected or generated the event \(trigger only\) | +| `customDetails` | json | No | JSON object of additional details about the event and affected system \(trigger only\) | #### Output diff --git a/apps/docs/content/docs/integrations/sentry.mdx b/apps/docs/content/docs/integrations/sentry.mdx index eb30a0e5a9a..c0c70bdeac2 100644 --- a/apps/docs/content/docs/integrations/sentry.mdx +++ b/apps/docs/content/docs/integrations/sentry.mdx @@ -30,9 +30,9 @@ List issues from Sentry for a specific organization and optionally a specific pr | Parameter | Type | Required | Description | | --------- | ---- | -------- | ----------- | | `organizationSlug` | string | Yes | The slug of the organization \(e.g., "my-org"\) | -| `projectSlug` | string | No | Filter issues by numeric project ID \(e.g., "4501234"\). This organization-scoped endpoint requires the numeric project ID, not the project slug. | +| `projectSlug` | string | No | Filter issues by project ID or slug \(e.g., "4501234" or "my-project"\) | | `query` | string | No | Search query to filter issues. Supports Sentry search syntax \(e.g., "is:unresolved", "level:error"\) | -| `statsPeriod` | string | No | Time window for the per-issue stats series \(e.g., "24h", "14d"\). Note: this controls the stats returned with each issue, not which issues are returned — use the query \(e.g., "age:-7d", "lastSeen:-24h"\) to filter results. | +| `statsPeriod` | string | No | Time window to search \(e.g., "24h", "14d"\); only issues with events in this window are returned. | | `cursor` | string | No | Pagination cursor for retrieving next page of results | | `limit` | number | No | Number of issues to return per page \(max: 100\) | | `status` | string | No | Filter by issue status: unresolved, resolved, or ignored. The legacy "ignored"/"muted" values map to Sentry's current "archived" search token. | @@ -84,6 +84,8 @@ List issues from Sentry for a specific organization and optionally a specific pr | `metadata` | object | Pagination metadata | | ↳ `nextCursor` | string | Cursor for the next page of results \(if available\) | | ↳ `hasMore` | boolean | Whether there are more results available | +| `nextCursor` | string | Cursor for the next page of results; pass it as the Pagination Cursor to fetch that page | +| `hasMore` | boolean | Whether there are more results available | @@ -159,6 +161,7 @@ Update a Sentry issue by changing its status, assignment, bookmark state, or oth | `organizationSlug` | string | Yes | The slug of the organization \(e.g., "my-org"\) | | `issueId` | string | Yes | The unique ID of the issue to update \(e.g., "12345"\) | | `status` | string | No | New status for the issue: resolved, unresolved, ignored, or resolvedInNextRelease | +| `priority` | string | No | New priority for the issue: low, medium, or high | | `assignedTo` | string | No | Actor to assign the issue to, in the form "user:<id>" or "team:<id>" \(a bare username or email is also accepted\). Use an empty string to unassign. | | `isBookmarked` | boolean | No | Whether to bookmark the issue | | `isSubscribed` | boolean | No | Whether to subscribe to issue updates | @@ -213,7 +216,7 @@ List all projects in a Sentry organization. Returns project details including na | ↳ `isBookmarked` | boolean | Whether the project is bookmarked | | ↳ `isMember` | boolean | Whether the user is a member of the project | | ↳ `features` | array | Enabled features for the project | -| ↳ `organization` | object | Organization information | +| ↳ `organization` | object | Organization information \(not returned by this endpoint; use Get Project\) | | ↳ `id` | string | Organization ID | | ↳ `slug` | string | Organization slug | | ↳ `name` | string | Organization name | @@ -221,11 +224,13 @@ List all projects in a Sentry organization. Returns project details including na | ↳ `id` | string | Team ID | | ↳ `name` | string | Team name | | ↳ `slug` | string | Team slug | -| ↳ `status` | string | Project status | -| ↳ `isPublic` | boolean | Whether the project is publicly visible | +| ↳ `status` | string | Project status \(not returned by this endpoint; use Get Project\) | +| ↳ `isPublic` | boolean | Whether the project is publicly visible \(not returned by this endpoint; use Get Project\) | | `metadata` | object | Pagination metadata | | ↳ `nextCursor` | string | Cursor for the next page of results \(if available\) | | ↳ `hasMore` | boolean | Whether there are more results available | +| `nextCursor` | string | Cursor for the next page of results; pass it as the Pagination Cursor to fetch that page | +| `hasMore` | boolean | Whether there are more results available | @@ -315,7 +320,7 @@ Create a new Sentry project in an organization. Requires a team to associate the | ↳ `hasAccess` | boolean | Whether the user has access | | ↳ `features` | array | Enabled features | | ↳ `firstEvent` | string | First event timestamp | -| ↳ `organization` | object | Organization information | +| ↳ `organization` | object | Organization information \(not returned by this endpoint; use Get Project\) | | ↳ `id` | string | Organization ID | | ↳ `slug` | string | Organization slug | | ↳ `name` | string | Organization name | @@ -327,9 +332,9 @@ Create a new Sentry project in an organization. Requires a team to associate the | ↳ `id` | string | Team ID | | ↳ `name` | string | Team name | | ↳ `slug` | string | Team slug | -| ↳ `status` | string | Project status | -| ↳ `color` | string | Project color code | -| ↳ `isPublic` | boolean | Whether the project is public | +| ↳ `status` | string | Project status \(not returned by this endpoint; use Get Project\) | +| ↳ `color` | string | Project color code \(not returned by this endpoint; use Get Project\) | +| ↳ `isPublic` | boolean | Whether the project is public \(not returned by this endpoint; use Get Project\) | @@ -388,7 +393,7 @@ List events from a Sentry project. Can be filtered by issue ID, query, or time p | `issueId` | string | No | Filter events by a specific issue ID \(e.g., "12345"\) | | `query` | string | No | Search query to filter events. Only applied when an Issue ID is provided \(the issue events endpoint\); the project events endpoint ignores it. Supports Sentry search syntax \(e.g., "user.email:*@example.com"\) | | `cursor` | string | No | Pagination cursor for retrieving next page of results | -| `limit` | number | No | Number of events to return per page \(max: 100\) | +| `limit` | number | No | Number of events to return per page \(max: 10, because full event bodies are requested\) | | `statsPeriod` | string | No | Time period to query \(e.g., "24h", "7d", "14d"\). Cannot be combined with absolute start/end. | #### Output @@ -434,6 +439,8 @@ List events from a Sentry project. Can be filtered by issue ID, query, or time p | `metadata` | object | Pagination metadata | | ↳ `nextCursor` | string | Cursor for the next page of results \(if available\) | | ↳ `hasMore` | boolean | Whether there are more results available | +| `nextCursor` | string | Cursor for the next page of results; pass it as the Pagination Cursor to fetch that page | +| `hasMore` | boolean | Whether there are more results available | @@ -505,7 +512,7 @@ List releases for a Sentry organization or project. Returns release details incl | Parameter | Type | Required | Description | | --------- | ---- | -------- | ----------- | | `organizationSlug` | string | Yes | The slug of the organization \(e.g., "my-org"\) | -| `projectSlug` | string | No | Filter releases by numeric project ID \(e.g., "4501234"\). This organization-scoped endpoint requires the numeric project ID, not the project slug. | +| `projectSlug` | string | No | Filter releases by project ID or slug \(e.g., "4501234" or "my-project"\) | | `query` | string | No | Search query to filter releases \(e.g., "1.0" to match version patterns\) | | `cursor` | string | No | Pagination cursor for retrieving next page of results | | `limit` | number | No | Number of releases to return per page \(default: 25, max: 100\) | @@ -558,6 +565,8 @@ List releases for a Sentry organization or project. Returns release details incl | `metadata` | object | Pagination metadata | | ↳ `nextCursor` | string | Cursor for the next page of results \(if available\) | | ↳ `hasMore` | boolean | Whether there are more results available | +| `nextCursor` | string | Cursor for the next page of results; pass it as the Pagination Cursor to fetch that page | +| `hasMore` | boolean | Whether there are more results available | @@ -696,6 +705,8 @@ List all teams in a Sentry organization. Useful for discovering the team slug re | `metadata` | object | Pagination metadata | | ↳ `nextCursor` | string | Cursor for the next page of results \(if available\) | | ↳ `hasMore` | boolean | Whether there are more results available | +| `nextCursor` | string | Cursor for the next page of results; pass it as the Pagination Cursor to fetch that page | +| `hasMore` | boolean | Whether there are more results available | diff --git a/apps/docs/content/docs/integrations/slack.mdx b/apps/docs/content/docs/integrations/slack.mdx index ee31effedea..a7260e75879 100644 --- a/apps/docs/content/docs/integrations/slack.mdx +++ b/apps/docs/content/docs/integrations/slack.mdx @@ -616,7 +616,7 @@ Fetch every message in a Slack thread, automatically following pagination across | `inclusive` | boolean | No | Include messages with timestamps matching oldest or latest \(default: false\) | | `limit` | number | No | Messages to request per page \(default: 200, max: 999\) | | `cursor` | string | No | Pagination cursor from a previous response.nextCursor to resume from | -| `maxPages` | number | No | Maximum number of pages to fetch before stopping \(default: 10\) | +| `maxPages` | number | No | Maximum number of pages to fetch before stopping \(default: 10, max: 50\) | #### Output @@ -812,7 +812,7 @@ Fetch message history from a Slack channel, automatically following pagination. | `inclusive` | boolean | No | Include messages with timestamps matching oldest or latest \(default: false\) | | `limit` | number | No | Messages to request per page \(default: 200, max: 999\) | | `cursor` | string | No | Pagination cursor from a previous response.nextCursor to resume from | -| `maxPages` | number | No | Maximum number of pages to fetch before stopping \(default: 10\) | +| `maxPages` | number | No | Maximum number of pages to fetch before stopping \(default: 10, max: 50\) | #### Output @@ -960,7 +960,7 @@ Set the title of a Slack assistant thread (shown in the AI app thread header). ### Slack Set Suggested Prompts -Set the clickable suggested prompts shown in a Slack assistant thread (the prompt chips in an AI app). +Set the clickable suggested prompts shown in a Slack assistant thread (the prompt chips in an AI app). For apps on the legacy assistant experience (assistant_view) only. Slack silently fails this call for agent apps (agent_view); use Set Agent Suggested Prompts instead. @@ -1023,7 +1023,7 @@ Create or update the state of a Slack agent session associated with a thread. | `authMethod` | string | No | Slack authentication method | | `botToken` | string | No | Custom Slack bot token | | `channel` | string | Yes | Channel ID containing the agent session thread | -| `threadTs` | string | Yes | Timestamp of the thread associated with the agent session | +| `threadTs` | string | No | Timestamp of the thread root message the session is scoped to. Required for thread-based sessions in regular channels and DMs; omit for session channels. | | `status` | string | Yes | Agent session state: active, processing, suspended, or closed | | `title` | string | No | Title used when creating the agent session, up to 200 characters | | `initiatorUserId` | string | No | Slack user ID that initiated the session | @@ -1055,7 +1055,7 @@ Rename the Slack agent session associated with a thread. | `authMethod` | string | No | Slack authentication method | | `botToken` | string | No | Custom Slack bot token | | `channel` | string | Yes | Channel ID containing the agent session thread | -| `threadTs` | string | Yes | Timestamp of the thread associated with the agent session | +| `threadTs` | string | No | Timestamp of the thread root message the session is scoped to. Required for thread-based sessions in regular channels and DMs; omit for session channels. | | `title` | string | Yes | New agent session title, from 1 to 200 characters | #### Output @@ -2081,7 +2081,7 @@ Open a modal view in Slack using a trigger_id from an interaction payload. Used | --------- | ---- | -------- | ----------- | | `authMethod` | string | No | Authentication method: oauth or bot_token | | `botToken` | string | No | Bot token for Custom Bot | -| `triggerId` | string | Yes | Exchange a trigger to post to the user. Obtained from an interaction payload \(e.g., slash command, button click\) | +| `triggerId` | string | No | Exchange a trigger to post to the user. Obtained from an interaction payload \(e.g., slash command, button click\). Provide this or interactivityPointer. | | `interactivityPointer` | string | No | Alternative to trigger_id for posting to user | | `view` | json | Yes | A view payload object defining the modal. Must include type \("modal"\), title, and blocks array | @@ -2182,7 +2182,7 @@ Push a new view onto an existing modal stack in Slack. Limited to 2 additional v | --------- | ---- | -------- | ----------- | | `authMethod` | string | No | Authentication method: oauth or bot_token | | `botToken` | string | No | Bot token for Custom Bot | -| `triggerId` | string | Yes | Exchange a trigger to post to the user. Obtained from an interaction payload \(e.g., button click within an existing modal\) | +| `triggerId` | string | No | Exchange a trigger to post to the user. Obtained from an interaction payload \(e.g., button click within an existing modal\). Provide this or interactivityPointer. | | `interactivityPointer` | string | No | Alternative to trigger_id for posting to user | | `view` | json | Yes | A view payload object defining the modal to push. Must include type \("modal"\), title, and blocks array | @@ -2584,8 +2584,8 @@ Change access for users or regular channels on a standalone canvas. For sharing, | --------- | ---- | -------- | ----------- | | `canvas_id` | string | Yes | Canvas ID | | `access_level` | string | Yes | Access Level Options: read, write, owner. | -| `user_ids` | json | No | User IDs | -| `channel_ids` | json | No | Channel IDs | +| `user_ids` | json | No | Up to 20 Slack user IDs, as a JSON array or a comma-separated string. Omit channel_ids. | +| `channel_ids` | json | No | Up to 20 Slack channel IDs, as a JSON array or a comma-separated string. Omit user_ids. | #### Output @@ -2606,8 +2606,8 @@ Remove user or regular-channel access to a standalone canvas. Channel-granted ac | Parameter | Type | Required | Description | | --------- | ---- | -------- | ----------- | | `canvas_id` | string | Yes | Canvas ID | -| `user_ids` | json | No | User IDs | -| `channel_ids` | json | No | Channel IDs | +| `user_ids` | json | No | One Slack user ID to remove, as \["U123"\] or U123. | +| `channel_ids` | json | No | One Slack channel ID to remove, as \["C123"\] or C123. | #### Output @@ -2701,7 +2701,7 @@ Remove a user from a Slack conversation, subject to workspace permissions. ### Slack Unarchive Conversation -Restore an archived Slack channel. +Restore an archived Slack channel. Slack does not currently let bot tokens unarchive conversations, so this fails with the Sim app or a custom bot until Slack lifts that limit. @@ -2721,7 +2721,7 @@ Restore an archived Slack channel. ### Slack Close Conversation -Close a direct message or group direct message for the authenticated identity. +Close a direct message or group direct message for the authenticated identity. The Sim app can close 1:1 direct messages only; closing a group direct message needs a custom bot with the mpim:write scope. @@ -2770,7 +2770,7 @@ Open a DM or group DM with 1–8 user IDs, or resume a conversation by ID. Suppl | Parameter | Type | Required | Description | | --------- | ---- | -------- | ----------- | -| `users` | json | No | User IDs | +| `users` | json | No | 1 to 8 Slack user IDs, as a JSON array or a comma-separated string. Omit channel. | | `channel` | string | No | Conversation ID | | `prevent_creation` | boolean | No | Only Resume Existing Conversation | | `return_im` | boolean | No | Include Conversation Details | @@ -3443,8 +3443,8 @@ Create a Slack user group with a mention handle and default channels. Requires a | `name` | string | Yes | Name | | `handle` | string | No | Mention Handle | | `description` | string | No | Description | -| `channels` | json | No | Default Channel IDs | -| `additional_channels` | json | No | Additional Channel IDs | +| `channels` | json | No | Default channel IDs for the group, as a JSON array \(\["C123"\]\) or a comma-separated string \(C123,C456\) | +| `additional_channels` | json | No | Channel IDs where members can add group members, as a JSON array or a comma-separated string | | `enable_section` | boolean | No | Show as Sidebar Section | | `include_count` | boolean | No | Include Member Count | | `team_id` | string | No | Workspace ID | @@ -3485,8 +3485,8 @@ Change a Slack user group’s name, handle, description, or default channels. Re | `name` | string | No | Name | | `handle` | string | No | Mention Handle | | `description` | string | No | Description | -| `channels` | json | No | Default Channel IDs | -| `additional_channels` | json | No | Additional Channel IDs | +| `channels` | json | No | Default channel IDs for the group, as a JSON array \(\["C123"\]\) or a comma-separated string \(C123,C456\) | +| `additional_channels` | json | No | Channel IDs where members can add group members, as a JSON array or a comma-separated string | | `enable_section` | boolean | No | Show as Sidebar Section | | `include_count` | boolean | No | Include Member Count | | `team_id` | string | No | Workspace ID | @@ -3656,7 +3656,7 @@ Replace all members of a Slack user group with the supplied user IDs. An empty l | Parameter | Type | Required | Description | | --------- | ---- | -------- | ----------- | | `usergroup` | string | Yes | User Group ID | -| `users` | json | Yes | User IDs | +| `users` | json | Yes | The complete member list as Slack user IDs, in a JSON array or a comma-separated string | | `additional_channels` | json | No | Additional Channel IDs | | `is_shared` | boolean | No | Shared Section | | `include_count` | boolean | No | Include Member Count | @@ -3722,7 +3722,7 @@ Read Do Not Disturb settings for the supplied user IDs. | Parameter | Type | Required | Description | | --------- | ---- | -------- | ----------- | -| `users` | json | Yes | User IDs | +| `users` | json | Yes | Slack user IDs to read, up to 50, as a JSON array \(\["U123","W456"\]\) or a comma-separated string \(U123,W456\) | | `team_id` | string | No | Workspace ID | #### Output diff --git a/apps/sim/blocks/blocks/datadog.test.ts b/apps/sim/blocks/blocks/datadog.test.ts index 53a1794df82..57c4c18702a 100644 --- a/apps/sim/blocks/blocks/datadog.test.ts +++ b/apps/sim/blocks/blocks/datadog.test.ts @@ -99,3 +99,48 @@ describe('datadog numeric coercion', () => { expect(params[key]).toBe(0) }) }) + +/** + * On a tool call (Agent tool row, Pi, Human-in-the-loop) the operation arrives only in + * `context`, and the model's args are keyed by the tool's param names. The mapper's result is + * spread over those args, so a branch that renames a block field onto a tool param must keep + * the model's value when the block field is blank. + */ +function toolCallParams( + operation: string, + modelArgs: Record +): Record { + const params = { ...baseInputs, ...modelArgs } + return { ...params, ...(mapParams?.(params, { operation }) as Record) } +} + +describe('datadog tool-call params', () => { + it.each([ + ['datadog_create_monitor', { query: 'avg:cpu{*} > 90', tags: 'team:a', priority: 2 }], + ['datadog_mute_monitor', { monitorId: '123' }], + ['datadog_query_logs', { query: 'status:error', from: 'now-1h', to: 'now', limit: 20 }], + ['datadog_create_incident', { title: 'DB down', customerImpacted: true }], + ['datadog_update_security_signal_state', { signalId: 's1', state: 'archived' }], + ['datadog_trigger_synthetics_tests', { publicIds: 'abc-def-ghi' }], + ['datadog_list_monitors', { name: 'cpu', monitorTags: 'env:prod', page: 0 }], + ])('keeps the model args for %s', (operation, modelArgs) => { + const params = toolCallParams(operation, modelArgs) + + expect(params).toMatchObject(modelArgs) + }) + + it('drops a non-numeric model page size instead of sending it to Datadog', () => { + const params = toolCallParams('datadog_list_monitors', { pageSize: 'fifty' }) + + expect(params.pageSize).toBeUndefined() + }) + + it('reads a model switch value sent as a string', () => { + const params = toolCallParams('datadog_unmute_monitor', { + monitorId: '123', + allScopes: 'false', + }) + + expect(params.allScopes).toBe(false) + }) +}) diff --git a/apps/sim/blocks/blocks/datadog.ts b/apps/sim/blocks/blocks/datadog.ts index e9f6fae27c2..29b78e12fa6 100644 --- a/apps/sim/blocks/blocks/datadog.ts +++ b/apps/sim/blocks/blocks/datadog.ts @@ -1,7 +1,7 @@ import { DatadogIcon } from '@/components/icons' import type { BlockConfig, BlockMeta } from '@/blocks/types' import { AuthMode, IntegrationType } from '@/blocks/types' -import { withSavedCredential } from '@/blocks/utils' +import { mapperOperation, toolCallArg, withSavedCredential } from '@/blocks/utils' import { DATADOG_SITE_LABELS, DATADOG_SITES } from '@/tools/datadog/types' /** @@ -1961,14 +1961,31 @@ Return ONLY the search query string - no explanations.`, ], config: { tool: (params) => params.operation, - params: (params) => { + params: (params, context) => { const baseParams: { apiKey: string; applicationKey: string; site: string } = { apiKey: params.apiKey, applicationKey: params.applicationKey, site: params.site, } - - switch (params.operation) { + /** + * A block field, or on a tool call where it is blank, the model's arg under the tool's + * param name. On the canvas the field is returned unchanged. + */ + const field = (blockValue: unknown, toolParam: string) => + blockValue != null && blockValue !== '' + ? blockValue + : (toolCallArg(context, params[toolParam]) ?? blockValue) + /** Like {@link field} for numeric fields, coercing both values. */ + const numberField = (blockValue: unknown, toolParam: string) => + datadogNumber(blockValue) ?? toolCallArg(context, datadogNumber(params[toolParam])) + /** Like {@link field} for switches, coercing both values. */ + const switchField = (blockValue: unknown, toolParam: string) => + toSwitchBoolean(blockValue) ?? toolCallArg(context, toSwitchBoolean(params[toolParam])) + /** Like {@link field} for optional fields whose blank value is omitted. */ + const optionalField = (blockValue: unknown, toolParam: string) => + blockValue || toolCallArg(context, params[toolParam]) || undefined + + switch (mapperOperation(params, context)) { case 'datadog_submit_metrics': return { ...baseParams, series: params.series } @@ -1995,10 +2012,10 @@ Return ONLY the search query string - no explanations.`, ...baseParams, name: params.name, type: params.type, - query: params.monitorQuery, + query: field(params.monitorQuery, 'query'), message: params.message, - tags: params.monitorTags, - priority: datadogNumber(params.monitorPriority), + tags: field(params.monitorTags, 'tags'), + priority: numberField(params.monitorPriority, 'priority'), options: params.options, } @@ -2008,22 +2025,23 @@ Return ONLY the search query string - no explanations.`, case 'datadog_list_monitors': return { ...baseParams, - name: params.listMonitorName || undefined, - tags: params.listMonitorTags || undefined, + name: optionalField(params.listMonitorName, 'name'), + tags: optionalField(params.listMonitorTags, 'tags'), /** * `monitorTags` belongs to Create Monitor but serializes for every operation, and * the block merges these params over the raw inputs. Without an explicit clear, a - * leftover value would filter this list while presenting it as complete. + * leftover value would filter this list while presenting it as complete. A tool + * call carries only this tool's args, so there it is the model's filter. */ - monitorTags: undefined, - pageSize: datadogNumber(params.listMonitorPageSize), - page: datadogNumber(params.listMonitorPage), + monitorTags: toolCallArg(context, params.monitorTags), + pageSize: numberField(params.listMonitorPageSize, 'pageSize'), + page: numberField(params.listMonitorPage, 'page'), } case 'datadog_mute_monitor': return { ...baseParams, - monitorId: params.muteMonitorId, + monitorId: field(params.muteMonitorId, 'monitorId'), scope: params.scope || undefined, end: datadogNumber(params.end), } @@ -2031,19 +2049,19 @@ Return ONLY the search query string - no explanations.`, case 'datadog_unmute_monitor': return { ...baseParams, - monitorId: params.muteMonitorId, + monitorId: field(params.muteMonitorId, 'monitorId'), scope: params.scope || undefined, - allScopes: toSwitchBoolean(params.unmuteAllScopes), + allScopes: switchField(params.unmuteAllScopes, 'allScopes'), } case 'datadog_query_logs': return { ...baseParams, - query: params.logQuery, - from: params.logFrom, - to: params.logTo, - limit: datadogNumber(params.logLimit), - cursor: params.logCursor || undefined, + query: field(params.logQuery, 'query'), + from: field(params.logFrom, 'from'), + to: field(params.logTo, 'to'), + limit: numberField(params.logLimit, 'limit'), + cursor: optionalField(params.logCursor, 'cursor'), } case 'datadog_send_logs': @@ -2052,22 +2070,25 @@ Return ONLY the search query string - no explanations.`, case 'datadog_create_downtime': return { ...baseParams, - scope: params.downtimeScope, - message: params.downtimeMessage, - start: datadogNumber(params.downtimeStart), - end: datadogNumber(params.downtimeEnd), - monitorId: params.downtimeMonitorId, - monitorTags: params.downtimeMonitorTags || undefined, - timezone: params.downtimeTimezone || undefined, - muteFirstRecoveryNotification: toSwitchBoolean(params.downtimeMuteFirstRecovery), + scope: field(params.downtimeScope, 'scope'), + message: field(params.downtimeMessage, 'message'), + start: numberField(params.downtimeStart, 'start'), + end: numberField(params.downtimeEnd, 'end'), + monitorId: field(params.downtimeMonitorId, 'monitorId'), + monitorTags: optionalField(params.downtimeMonitorTags, 'monitorTags'), + timezone: optionalField(params.downtimeTimezone, 'timezone'), + muteFirstRecoveryNotification: switchField( + params.downtimeMuteFirstRecovery, + 'muteFirstRecoveryNotification' + ), } case 'datadog_list_downtimes': return { ...baseParams, currentOnly: toSwitchBoolean(params.currentOnly), - limit: datadogNumber(params.downtimeLimit), - offset: datadogNumber(params.downtimeOffset), + limit: numberField(params.downtimeLimit, 'limit'), + offset: numberField(params.downtimeOffset, 'offset'), } case 'datadog_cancel_downtime': @@ -2076,130 +2097,152 @@ Return ONLY the search query string - no explanations.`, case 'datadog_list_incidents': return { ...baseParams, - include: params.incidentInclude || undefined, - pageSize: datadogNumber(params.incidentPageSize), - pageOffset: datadogNumber(params.incidentPageOffset), + include: optionalField(params.incidentInclude, 'include'), + pageSize: numberField(params.incidentPageSize, 'pageSize'), + pageOffset: numberField(params.incidentPageOffset, 'pageOffset'), } case 'datadog_get_incident': return { ...baseParams, incidentId: params.incidentId, - include: params.incidentInclude || undefined, + include: optionalField(params.incidentInclude, 'include'), } case 'datadog_create_incident': return { ...baseParams, - title: params.incidentTitle, - customerImpacted: toSwitchBoolean(params.incidentCustomerImpacted) ?? false, - severity: params.incidentSeverity || undefined, - customerImpactScope: params.incidentCustomerImpactScope || undefined, + title: field(params.incidentTitle, 'title'), + customerImpacted: + switchField(params.incidentCustomerImpacted, 'customerImpacted') ?? false, + severity: optionalField(params.incidentSeverity, 'severity'), + customerImpactScope: optionalField( + params.incidentCustomerImpactScope, + 'customerImpactScope' + ), incidentTypeUuid: params.incidentTypeUuid || undefined, - isTest: toSwitchBoolean(params.incidentIsTest), - fields: params.incidentFields || undefined, - notificationHandles: params.incidentNotificationHandles || undefined, + isTest: switchField(params.incidentIsTest, 'isTest'), + fields: optionalField(params.incidentFields, 'fields'), + notificationHandles: optionalField( + params.incidentNotificationHandles, + 'notificationHandles' + ), } case 'datadog_update_incident': return { ...baseParams, incidentId: params.incidentId, - title: params.incidentTitle || undefined, - severity: params.incidentSeverity || undefined, - customerImpacted: toSwitchBoolean(params.incidentCustomerImpacted), - customerImpactScope: params.incidentCustomerImpactScope || undefined, - customerImpactStart: params.incidentCustomerImpactStart || undefined, - customerImpactEnd: params.incidentCustomerImpactEnd || undefined, - detected: params.incidentDetected || undefined, - fields: params.incidentFields || undefined, - notificationHandles: params.incidentNotificationHandles || undefined, + title: optionalField(params.incidentTitle, 'title'), + severity: optionalField(params.incidentSeverity, 'severity'), + customerImpacted: switchField(params.incidentCustomerImpacted, 'customerImpacted'), + customerImpactScope: optionalField( + params.incidentCustomerImpactScope, + 'customerImpactScope' + ), + customerImpactStart: optionalField( + params.incidentCustomerImpactStart, + 'customerImpactStart' + ), + customerImpactEnd: optionalField( + params.incidentCustomerImpactEnd, + 'customerImpactEnd' + ), + detected: optionalField(params.incidentDetected, 'detected'), + fields: optionalField(params.incidentFields, 'fields'), + notificationHandles: optionalField( + params.incidentNotificationHandles, + 'notificationHandles' + ), } case 'datadog_add_incident_todo': return { ...baseParams, incidentId: params.incidentId, - content: params.todoContent, - assignees: params.todoAssignees, - dueDate: params.todoDueDate || undefined, + content: field(params.todoContent, 'content'), + assignees: field(params.todoAssignees, 'assignees'), + dueDate: optionalField(params.todoDueDate, 'dueDate'), } case 'datadog_list_slos': return { ...baseParams, - ids: params.sloIds || undefined, - query: params.sloQuery || undefined, - tagsQuery: params.sloTagsQuery || undefined, - metricsQuery: params.sloMetricsQuery || undefined, - limit: datadogNumber(params.sloLimit), - offset: datadogNumber(params.sloOffset), + ids: optionalField(params.sloIds, 'ids'), + query: optionalField(params.sloQuery, 'query'), + tagsQuery: optionalField(params.sloTagsQuery, 'tagsQuery'), + metricsQuery: optionalField(params.sloMetricsQuery, 'metricsQuery'), + limit: numberField(params.sloLimit, 'limit'), + offset: numberField(params.sloOffset, 'offset'), } case 'datadog_get_slo': return { ...baseParams, sloId: params.sloId, - withConfiguredAlertIds: toSwitchBoolean(params.sloWithConfiguredAlertIds), + withConfiguredAlertIds: switchField( + params.sloWithConfiguredAlertIds, + 'withConfiguredAlertIds' + ), } case 'datadog_create_slo': return { ...baseParams, - name: params.sloName, - type: params.sloType, - thresholds: params.sloThresholds, - description: params.sloDescription || undefined, - tags: params.sloTags || undefined, - query: params.sloMetricQuery || undefined, - monitorIds: params.sloMonitorIds || undefined, - groups: params.sloGroups || undefined, - targetThreshold: datadogNumber(params.sloTargetThreshold), - warningThreshold: datadogNumber(params.sloWarningThreshold), - timeframe: params.sloTimeframe || undefined, + name: field(params.sloName, 'name'), + type: field(params.sloType, 'type'), + thresholds: field(params.sloThresholds, 'thresholds'), + description: optionalField(params.sloDescription, 'description'), + tags: optionalField(params.sloTags, 'tags'), + query: optionalField(params.sloMetricQuery, 'query'), + monitorIds: optionalField(params.sloMonitorIds, 'monitorIds'), + groups: optionalField(params.sloGroups, 'groups'), + targetThreshold: numberField(params.sloTargetThreshold, 'targetThreshold'), + warningThreshold: numberField(params.sloWarningThreshold, 'warningThreshold'), + timeframe: optionalField(params.sloTimeframe, 'timeframe'), } case 'datadog_update_slo': return { ...baseParams, sloId: params.sloId, - name: params.sloName || undefined, - type: params.sloUpdateType || undefined, - thresholds: params.sloThresholds || undefined, - description: params.sloDescription || undefined, - tags: params.sloTags || undefined, - query: params.sloMetricQuery || undefined, - monitorIds: params.sloMonitorIds || undefined, - groups: params.sloGroups || undefined, - targetThreshold: datadogNumber(params.sloTargetThreshold), - warningThreshold: datadogNumber(params.sloWarningThreshold), - timeframe: params.sloTimeframe || undefined, + name: optionalField(params.sloName, 'name'), + type: optionalField(params.sloUpdateType, 'type'), + thresholds: optionalField(params.sloThresholds, 'thresholds'), + description: optionalField(params.sloDescription, 'description'), + tags: optionalField(params.sloTags, 'tags'), + query: optionalField(params.sloMetricQuery, 'query'), + monitorIds: optionalField(params.sloMonitorIds, 'monitorIds'), + groups: optionalField(params.sloGroups, 'groups'), + targetThreshold: numberField(params.sloTargetThreshold, 'targetThreshold'), + warningThreshold: numberField(params.sloWarningThreshold, 'warningThreshold'), + timeframe: optionalField(params.sloTimeframe, 'timeframe'), } case 'datadog_delete_slo': return { ...baseParams, sloId: params.sloId, - force: toSwitchBoolean(params.sloForce), + force: switchField(params.sloForce, 'force'), } case 'datadog_get_slo_history': return { ...baseParams, sloId: params.sloId, - fromTs: datadogNumber(params.sloFromTs), - toTs: datadogNumber(params.sloToTs), - target: datadogNumber(params.sloTarget), - applyCorrection: toSwitchBoolean(params.sloApplyCorrection), + fromTs: numberField(params.sloFromTs, 'fromTs'), + toTs: numberField(params.sloToTs, 'toTs'), + target: numberField(params.sloTarget, 'target'), + applyCorrection: switchField(params.sloApplyCorrection, 'applyCorrection'), } case 'datadog_list_dashboards': return { ...baseParams, - filterShared: toSwitchBoolean(params.dashboardFilterShared), - filterDeleted: toSwitchBoolean(params.dashboardFilterDeleted), - count: datadogNumber(params.dashboardCount), - start: datadogNumber(params.dashboardStart), + filterShared: switchField(params.dashboardFilterShared, 'filterShared'), + filterDeleted: switchField(params.dashboardFilterDeleted, 'filterDeleted'), + count: numberField(params.dashboardCount, 'count'), + start: numberField(params.dashboardStart, 'start'), } case 'datadog_get_dashboard': @@ -2208,14 +2251,17 @@ Return ONLY the search query string - no explanations.`, case 'datadog_create_dashboard': return { ...baseParams, - title: params.dashboardTitle, - layoutType: params.dashboardLayoutType, - widgets: params.dashboardWidgets, - description: params.dashboardDescription || undefined, - notifyList: params.dashboardNotifyList || undefined, - templateVariables: params.dashboardTemplateVariables || undefined, - tags: params.dashboardTags || undefined, - reflowType: params.dashboardReflowType || undefined, + title: field(params.dashboardTitle, 'title'), + layoutType: field(params.dashboardLayoutType, 'layoutType'), + widgets: field(params.dashboardWidgets, 'widgets'), + description: optionalField(params.dashboardDescription, 'description'), + notifyList: optionalField(params.dashboardNotifyList, 'notifyList'), + templateVariables: optionalField( + params.dashboardTemplateVariables, + 'templateVariables' + ), + tags: optionalField(params.dashboardTags, 'tags'), + reflowType: optionalField(params.dashboardReflowType, 'reflowType'), } case 'datadog_delete_dashboard': @@ -2224,42 +2270,42 @@ Return ONLY the search query string - no explanations.`, case 'datadog_list_synthetics_tests': return { ...baseParams, - pageSize: datadogNumber(params.syntheticsPageSize), - pageNumber: datadogNumber(params.syntheticsPageNumber), + pageSize: numberField(params.syntheticsPageSize, 'pageSize'), + pageNumber: numberField(params.syntheticsPageNumber, 'pageNumber'), } case 'datadog_get_synthetics_test': - return { ...baseParams, publicId: params.syntheticsPublicId } + return { ...baseParams, publicId: field(params.syntheticsPublicId, 'publicId') } case 'datadog_get_synthetics_results': case 'datadog_get_browser_synthetics_results': return { ...baseParams, - publicId: params.syntheticsPublicId, - fromTs: datadogNumber(params.syntheticsFromTs), - toTs: datadogNumber(params.syntheticsToTs), - probeDc: params.syntheticsProbeDc || undefined, + publicId: field(params.syntheticsPublicId, 'publicId'), + fromTs: numberField(params.syntheticsFromTs, 'fromTs'), + toTs: numberField(params.syntheticsToTs, 'toTs'), + probeDc: optionalField(params.syntheticsProbeDc, 'probeDc'), } case 'datadog_trigger_synthetics_tests': - return { ...baseParams, publicIds: params.syntheticsPublicIds } + return { ...baseParams, publicIds: field(params.syntheticsPublicIds, 'publicIds') } case 'datadog_update_synthetics_status': return { ...baseParams, - publicId: params.syntheticsPublicId, - newStatus: params.syntheticsNewStatus, + publicId: field(params.syntheticsPublicId, 'publicId'), + newStatus: field(params.syntheticsNewStatus, 'newStatus'), } case 'datadog_list_security_signals': return { ...baseParams, - query: params.signalQuery || undefined, - from: params.signalFrom || undefined, - to: params.signalTo || undefined, - sort: params.signalSort || undefined, - cursor: params.signalCursor || undefined, - limit: datadogNumber(params.signalLimit), + query: optionalField(params.signalQuery, 'query'), + from: optionalField(params.signalFrom, 'from'), + to: optionalField(params.signalTo, 'to'), + sort: optionalField(params.signalSort, 'sort'), + cursor: optionalField(params.signalCursor, 'cursor'), + limit: numberField(params.signalLimit, 'limit'), } case 'datadog_get_security_signal': @@ -2269,44 +2315,44 @@ Return ONLY the search query string - no explanations.`, return { ...baseParams, signalId: params.signalId, - state: params.signalState, - archiveReason: params.signalArchiveReason || undefined, - archiveComment: params.signalArchiveComment || undefined, + state: field(params.signalState, 'state'), + archiveReason: optionalField(params.signalArchiveReason, 'archiveReason'), + archiveComment: optionalField(params.signalArchiveComment, 'archiveComment'), } case 'datadog_update_security_signal_assignee': return { ...baseParams, signalId: params.signalId, - assigneeUuid: params.signalAssigneeUuid, + assigneeUuid: field(params.signalAssigneeUuid, 'assigneeUuid'), } case 'datadog_list_security_rules': return { ...baseParams, - query: params.ruleQuery || undefined, - sort: params.ruleSort || undefined, - pageSize: datadogNumber(params.rulePageSize), - pageNumber: datadogNumber(params.rulePageNumber), + query: optionalField(params.ruleQuery, 'query'), + sort: optionalField(params.ruleSort, 'sort'), + pageSize: numberField(params.rulePageSize, 'pageSize'), + pageNumber: numberField(params.rulePageNumber, 'pageNumber'), } case 'datadog_search_spans': return { ...baseParams, - query: params.spanQuery || undefined, - from: params.spanFrom || undefined, - to: params.spanTo || undefined, - sort: params.spanSort || undefined, - cursor: params.spanCursor || undefined, - limit: datadogNumber(params.spanLimit), + query: optionalField(params.spanQuery, 'query'), + from: optionalField(params.spanFrom, 'from'), + to: optionalField(params.spanTo, 'to'), + sort: optionalField(params.spanSort, 'sort'), + cursor: optionalField(params.spanCursor, 'cursor'), + limit: numberField(params.spanLimit, 'limit'), } case 'datadog_list_services': return { ...baseParams, - pageSize: datadogNumber(params.servicePageSize), - pageNumber: datadogNumber(params.servicePageNumber), - schemaVersion: params.serviceSchemaVersion || undefined, + pageSize: numberField(params.servicePageSize, 'pageSize'), + pageNumber: numberField(params.servicePageNumber, 'pageNumber'), + schemaVersion: optionalField(params.serviceSchemaVersion, 'schemaVersion'), } default: @@ -2473,7 +2519,10 @@ Return ONLY the search query string - no explanations.`, success: { type: 'boolean', description: 'Whether the operation succeeded' }, series: { type: 'json', description: 'Timeseries data' }, status: { type: 'string', description: 'Query status' }, - errors: { type: 'json', description: 'Metric series rejected during submission' }, + errors: { + type: 'json', + description: 'Metric series rejected during submission, or SLO history query errors', + }, event: { type: 'json', description: 'Event data' }, monitor: { type: 'json', description: 'Monitor data' }, monitors: { type: 'json', description: 'List of monitors' }, @@ -2486,6 +2535,7 @@ Return ONLY the search query string - no explanations.`, downtimes: { type: 'json', description: 'List of downtimes' }, totalCount: { type: 'number', description: 'Total downtimes matching the filter' }, incident: { type: 'json', description: 'Incident data' }, + included: { type: 'json', description: 'Related incident resources requested via include' }, incidents: { type: 'json', description: 'List of incidents' }, nextOffset: { type: 'number', description: 'Offset for the next page of incidents' }, todo: { type: 'json', description: 'Incident follow-up task' }, diff --git a/apps/sim/blocks/blocks/github.ts b/apps/sim/blocks/blocks/github.ts index a40fcf32d95..24e589f502a 100644 --- a/apps/sim/blocks/blocks/github.ts +++ b/apps/sim/blocks/blocks/github.ts @@ -2,7 +2,7 @@ import { Calendar } from '@sim/emcn/icons' import { GithubIcon } from '@/components/icons' import type { BlockConfig, BlockMeta } from '@/blocks/types' import { AuthMode, IntegrationType } from '@/blocks/types' -import { createVersionedToolSelector, withSavedCredential } from '@/blocks/utils' +import { createVersionedToolSelector, mapperOperation, withSavedCredential } from '@/blocks/utils' import { getTrigger } from '@/triggers' /** Reviewers can be named individually or by team slug; either identifies the request. */ @@ -16,7 +16,9 @@ const REVIEWER_FIELD = ['reviewers', 'team_reviewers'] as const * * `toBoolean` marks a dropdown feeding a boolean tool param: a dropdown stores * its option id, so the value arrives as the string 'true'/'false' and the - * generic handler only JSON-parses `json`/`array` inputs. + * generic handler only JSON-parses `json`/`array` inputs. An entry whose + * `from` equals `to` only coerces; scoping it to the operation whose subBlock + * owns the field keeps a stale value left from another operation raw. */ const GITHUB_PARAM_ALIASES: ReadonlyArray<{ from: string @@ -44,6 +46,44 @@ const GITHUB_PARAM_ALIASES: ReadonlyArray<{ { from: 'fork_name', to: 'name', operations: ['github_fork_repo'] }, { from: 'fork_sort', to: 'sort', operations: ['github_list_forks'] }, { from: 'gist_public', to: 'public', operations: ['github_create_gist'], toBoolean: true }, + { + from: 'draft', + to: 'draft', + operations: ['github_create_pr', 'github_create_release'], + toBoolean: true, + }, + { from: 'prerelease', to: 'prerelease', operations: ['github_create_release'], toBoolean: true }, + { + from: 'default_branch_only', + to: 'default_branch_only', + operations: ['github_fork_repo'], + toBoolean: true, + }, +] + +/** + * Operations whose tools take no `owner`/`repo`: projects are addressed by owner + * login or node ID, gists by gist ID, and searches by query alone. + */ +const OPERATIONS_WITHOUT_REPOSITORY = [ + 'github_list_projects', + 'github_get_project', + 'github_create_project', + 'github_update_project', + 'github_delete_project', + 'github_search_code', + 'github_search_commits', + 'github_search_issues', + 'github_search_repos', + 'github_search_users', + 'github_create_gist', + 'github_get_gist', + 'github_list_gists', + 'github_update_gist', + 'github_delete_gist', + 'github_fork_gist', + 'github_star_gist', + 'github_unstar_gist', ] export const GitHubBlock: BlockConfig = { @@ -472,6 +512,7 @@ export const GitHubBlock: BlockConfig = { type: 'short-input', placeholder: 'e.g., microsoft', required: true, + condition: { field: 'operation', value: OPERATIONS_WITHOUT_REPOSITORY, not: true }, }, { id: 'repo', @@ -479,6 +520,7 @@ export const GitHubBlock: BlockConfig = { type: 'short-input', placeholder: 'e.g., vscode', required: true, + condition: { field: 'operation', value: OPERATIONS_WITHOUT_REPOSITORY, not: true }, }, { id: 'pullNumber', @@ -656,6 +698,7 @@ export const GitHubBlock: BlockConfig = { title: 'State', type: 'dropdown', options: [ + { label: 'No change', id: '' }, { label: 'Open', id: 'open' }, { label: 'Closed', id: 'closed' }, ], @@ -740,7 +783,6 @@ export const GitHubBlock: BlockConfig = { type: 'short-input', placeholder: 'Comma-separated: user1,user2', condition: { field: 'operation', value: 'github_request_reviewers' }, - mode: 'advanced', }, { id: 'team_reviewers', @@ -1042,6 +1084,7 @@ export const GitHubBlock: BlockConfig = { title: 'State', type: 'dropdown', options: [ + { label: 'No change', id: '' }, { label: 'Open', id: 'open' }, { label: 'Closed', id: 'closed' }, ], @@ -1410,6 +1453,7 @@ export const GitHubBlock: BlockConfig = { title: 'Public', type: 'dropdown', options: [ + { label: 'No change', id: '' }, { label: 'Private', id: 'false' }, { label: 'Public', id: 'true' }, ], @@ -1867,6 +1911,8 @@ Return ONLY the timestamp string - no explanations, no quotes, no extra text.`, 'github_list_forks', 'github_list_milestones', 'github_list_stargazers', + 'github_list_branches', + 'github_get_pr_files', ], }, mode: 'advanced', @@ -1987,7 +2033,31 @@ Return ONLY the timestamp string - no explanations, no quotes, no extra text.`, title: 'Page Number', type: 'short-input', placeholder: 'e.g., 1', - condition: { field: 'operation', value: 'github_list_tags' }, + condition: { + field: 'operation', + value: [ + 'github_list_tags', + 'github_list_branches', + 'github_list_commits', + 'github_list_forks', + 'github_list_gists', + 'github_list_issue_comments', + 'github_list_issues', + 'github_list_milestones', + 'github_list_pr_comments', + 'github_list_prs', + 'github_list_releases', + 'github_list_stargazers', + 'github_list_workflow_runs', + 'github_list_workflows', + 'github_get_pr_files', + 'github_search_code', + 'github_search_commits', + 'github_search_issues', + 'github_search_repos', + 'github_search_users', + ], + }, mode: 'advanced', }, ], @@ -2289,19 +2359,14 @@ Return ONLY the timestamp string - no explanations, no quotes, no extra text.`, * block did not supply would clobber a model-supplied value on the agent * path. * - * On the agent tool-calling path `operation` is not part of the params - * this receives: `providers/utils.ts` spreads it in for the tool-selection - * call (`:736-739`) but builds the transform's input from `block.params` - * alone (`:776`). Every alias therefore skips there, which is the same - * behaviour as before this mapper existed - the agent path already works - * because a model supplies `content`/`title`/`sort` by their real names. - * That gap is shared by every block whose mapper branches on - * `params.operation`, so closing it belongs in the provider layer rather - * than here. + * On a tool call (Agent tool row, Pi, Human-in-the-loop) the operation + * arrives only in `context`, so it is read through `mapperOperation`. A + * value the user stored under a block-only id then reaches its tool param, + * and an unset one emits nothing, leaving the model's own argument intact. */ - params: (params) => { + params: (params, context) => { const result: Record = {} - const operation = typeof params.operation === 'string' ? params.operation : '' + const operation = mapperOperation(params, context) const isSet = (value: unknown) => value !== undefined && value !== null && value !== '' diff --git a/apps/sim/blocks/blocks/gitlab.test.ts b/apps/sim/blocks/blocks/gitlab.test.ts index 1d64a625926..ec08815ce2a 100644 --- a/apps/sim/blocks/blocks/gitlab.test.ts +++ b/apps/sim/blocks/blocks/gitlab.test.ts @@ -94,3 +94,219 @@ describe('GitLabBlock access operations', () => { expect(untouched?.admin).toBeUndefined() }) }) + +const blockParams = block.tools.config?.params +if (!blockParams) throw new Error('GitLab block has no params mapper') +const mapParams = blockParams + +/** Runs the mapper the way a tool call does: model/stored args with no operation, which arrives in context. */ +function mapToolCall(operation: string, args: Record) { + return mapParams({ accessToken: 'pat', ...args }, { operation }) +} + +describe('GitLabBlock mapper on tool calls', () => { + it('maps values a tool row stored under block-only fields to the tool params', () => { + expect( + mapToolCall('gitlab_compare_branches', { + projectId: 'g/p', + compareFrom: 'main', + compareTo: 'dev', + }) + ).toMatchObject({ from: 'main', to: 'dev' }) + expect(mapToolCall('gitlab_search_users', { userSearch: 'jdoe' })).toMatchObject({ + search: 'jdoe', + }) + expect( + mapToolCall('gitlab_update_member', { + resourceId: '42', + userId: 7, + memberAccessLevel: 'Maintainer', + }) + ).toMatchObject({ accessLevel: 40, userId: 7 }) + }) + + it("keeps the model's tool-named args when no block field is stored", () => { + expect( + mapToolCall('gitlab_compare_branches', { projectId: 42, from: 'v1', to: 'v2' }) + ).toMatchObject({ projectId: '42', from: 'v1', to: 'v2' }) + expect( + mapToolCall('gitlab_create_user', { + email: 'a@b.com', + username: 'ab', + name: 'A B', + resetPassword: true, + }) + ).toMatchObject({ email: 'a@b.com', username: 'ab', name: 'A B' }) + expect( + mapToolCall('gitlab_update_member', { resourceId: '42', userId: 7, accessLevel: 30 }) + ).toMatchObject({ accessLevel: 30 }) + expect( + mapToolCall('gitlab_list_issues', { projectId: '1', issueState: 'all', state: 'closed' }) + ).toMatchObject({ state: 'closed' }) + }) + + it('accepts the typed arrays and booleans a model sends', () => { + expect( + mapToolCall('gitlab_create_issue', { projectId: '1', title: 'Bug', assigneeIds: [3, 4] }) + ).toMatchObject({ assigneeIds: [3, 4] }) + expect( + mapToolCall('gitlab_create_release', { + projectId: '1', + tagName: 'v1', + milestones: ['M1', 'M2'], + }) + ).toMatchObject({ milestones: ['M1', 'M2'] }) + expect( + mapToolCall('gitlab_create_pipeline', { + projectId: '1', + ref: 'main', + variables: { FOO: 1 }, + }) + ).toMatchObject({ variables: [{ key: 'FOO', value: '1' }] }) + expect( + mapToolCall('gitlab_create_merge_request', { + projectId: '1', + title: 'T', + sourceBranch: 'a', + targetBranch: 'b', + squash: false, + })?.squash + ).toBe(false) + }) + + it('does not apply tool-named fallbacks on the canvas', () => { + const canvas = mapParams({ + accessToken: 'pat', + operation: 'gitlab_list_merge_requests', + projectId: '1', + sourceBranch: 'stale-create-mr-value', + }) + expect(canvas?.sourceBranch).toBeUndefined() + }) + + it('keeps create-only advanced values saved under another operation off update and merge requests', () => { + const canvas = (operation: string, extra: Record) => + mapParams({ + accessToken: 'pat', + operation, + projectId: '1', + issueIid: '2', + mergeRequestIid: '3', + ...extra, + }) + const updateIssue = canvas('gitlab_update_issue', { confidential: true, dueDate: '2026-12-31' }) + expect(updateIssue).toHaveProperty('confidential', undefined) + expect(updateIssue).toHaveProperty('dueDate', undefined) + expect(canvas('gitlab_update_merge_request', { draft: false })).toHaveProperty( + 'draft', + undefined + ) + expect(canvas('gitlab_merge_merge_request', { sha: 'stale-approve-sha' })).toHaveProperty( + 'sha', + undefined + ) + expect(canvas('gitlab_merge_merge_request', { mergeSha: 'abc123' })).toMatchObject({ + sha: 'abc123', + }) + }) + + it("passes the model's update and merge values through on tool calls", () => { + expect( + mapToolCall('gitlab_update_issue', { + projectId: '1', + issueIid: 2, + confidential: false, + dueDate: '2026-12-31', + }) + ).toMatchObject({ confidential: false, dueDate: '2026-12-31' }) + expect( + mapToolCall('gitlab_update_merge_request', { + projectId: '1', + mergeRequestIid: 3, + draft: true, + }) + ).toMatchObject({ draft: true }) + expect( + mapToolCall('gitlab_merge_merge_request', { projectId: '1', mergeRequestIid: 3, sha: 'abc' }) + ).toMatchObject({ sha: 'abc' }) + }) + + it("keeps the model's explicit opt-outs and milestone unassign on tool calls", () => { + expect( + mapToolCall('gitlab_merge_merge_request', { + projectId: '1', + mergeRequestIid: 3, + squash: false, + shouldRemoveSourceBranch: false, + }) + ).toMatchObject({ squash: false, shouldRemoveSourceBranch: false }) + expect( + mapToolCall('gitlab_update_issue', { projectId: '1', issueIid: 2, milestoneId: 0 }) + ).toMatchObject({ milestoneId: 0 }) + expect( + mapToolCall('gitlab_update_merge_request', { + projectId: '1', + mergeRequestIid: 3, + milestoneId: 0, + }) + ).toMatchObject({ milestoneId: 0 }) + expect(mapToolCall('gitlab_list_groups', { allAvailable: false })).toMatchObject({ + allAvailable: false, + }) + }) + + it("keeps the model's empty string that clears a field on tool calls", () => { + expect( + mapToolCall('gitlab_update_issue', { + projectId: '1', + issueIid: 2, + labels: '', + description: '', + }) + ).toMatchObject({ labels: '', description: '' }) + expect( + mapToolCall('gitlab_update_merge_request', { + projectId: '1', + mergeRequestIid: 3, + labels: '', + assigneeIds: '', + }) + ).toMatchObject({ labels: '', assigneeIds: '' }) + expect( + mapToolCall('gitlab_update_member', { + resourceId: '1', + userId: 7, + accessLevel: 30, + expiresAt: '', + }) + ).toMatchObject({ expiresAt: '' }) + expect( + mapToolCall('gitlab_update_invitation', { + resourceId: '1', + email: 'a@b.c', + accessLevel: 30, + expiresAt: '', + }) + ).toMatchObject({ accessLevel: 30, expiresAt: '' }) + expect( + mapToolCall('gitlab_update_invitation', { + resourceId: '1', + email: 'a@b.c', + expiresAt: '', + }) + ).toMatchObject({ expiresAt: '' }) + }) + + it('leaves a blank canvas field unsent on update operations', () => { + const result = mapParams({ + accessToken: 'pat', + operation: 'gitlab_update_issue', + projectId: '1', + issueIid: 2, + labels: '', + description: '', + }) + expect(result?.labels).toBeUndefined() + expect(result?.description).toBeUndefined() + }) +}) diff --git a/apps/sim/blocks/blocks/gitlab.ts b/apps/sim/blocks/blocks/gitlab.ts index a2f5520eb2d..2e87ff0b8d7 100644 --- a/apps/sim/blocks/blocks/gitlab.ts +++ b/apps/sim/blocks/blocks/gitlab.ts @@ -1,7 +1,7 @@ import { GitLabIcon } from '@/components/icons' -import type { BlockConfig, BlockMeta } from '@/blocks/types' +import type { BlockConfig, BlockMeta, BlockToolParamsContext } from '@/blocks/types' import { AuthMode, IntegrationType } from '@/blocks/types' -import { withSavedCredential } from '@/blocks/utils' +import { mapperOperation, toolCallArg, withSavedCredential } from '@/blocks/utils' import { coerceGitLabAccessLevel, GITLAB_ACCESS_LEVEL_OPTIONS, @@ -104,11 +104,15 @@ const USER_ID_REQUIRED_OPS = USER_ID_OPS.filter((op) => op !== 'gitlab_add_membe /** * Parses an optional JSON text field at execution time. Returns undefined for - * blank input and throws a field-specific error for malformed JSON. + * blank input and throws a field-specific error for malformed JSON. A tool call + * may already carry the parsed object or array, which passes through. */ -function parseJsonParam(raw: unknown, label: string): any { +function parseJsonParam( + raw: unknown, + label: string +): Record | unknown[] | undefined { if (raw === undefined || raw === null || raw === '') return undefined - let parsed = raw + let parsed: unknown = raw if (typeof raw === 'string') { try { parsed = JSON.parse(raw) @@ -120,7 +124,18 @@ function parseJsonParam(raw: unknown, label: string): any { if (typeof parsed !== 'object') { throw new Error(`${label} must be a JSON object or array.`) } - return parsed + return Array.isArray(parsed) ? parsed : (parsed as Record) +} + +/** + * Parses CI variables (pipeline or job) and normalizes the `{KEY: value}` + * shorthand to GitLab's `[{ key, value }]` array form. + */ +function parseCiVariables(raw: unknown, label: string): unknown[] | undefined { + const parsed = parseJsonParam(raw, label) + if (parsed === undefined) return undefined + if (Array.isArray(parsed)) return parsed + return Object.entries(parsed).map(([key, value]) => ({ key, value: String(value) })) } /** Maps a "Leave unchanged / Yes / No" dropdown value to true, false, or undefined. */ @@ -130,6 +145,62 @@ function parseTriState(raw: unknown): boolean | undefined { return undefined } +/** + * Trimmed text of a string or finite-number input, `''` for anything else. The + * canvas sends text, while a tool call can carry a numeric id (`projectId: 42`). + */ +function inputText(value: unknown): string { + if (typeof value === 'string') return value.trim() + if (typeof value === 'number' && Number.isFinite(value)) return String(value) + return '' +} + +/** {@link inputText}, or `undefined` when blank. */ +function optionalText(value: unknown): string | undefined { + return inputText(value) || undefined +} + +/** + * A model's explicit `''` on a tool call, which GitLab update endpoints read as + * "clear this field". The canvas never forwards a blank field, so this is + * `undefined` there. + */ +function toolCallClear( + value: unknown, + context: BlockToolParamsContext | undefined +): '' | undefined { + return toolCallArg(context, value === '' ? '' : undefined) +} + +/** + * Numeric ids from a comma-separated string (canvas) or the array or number a + * tool call sends. + */ +function parseIdList(value: unknown): number[] | undefined { + if (Array.isArray(value)) return value.map((id) => Number(id)) + if (typeof value === 'number') return [value] + if (typeof value !== 'string' || !value) return undefined + return value.split(',').map((id) => Number(id.trim())) +} + +/** Titles from a comma-separated string (canvas) or the array a tool call sends. */ +function parseTitleList(value: unknown): string[] | undefined { + const items = Array.isArray(value) + ? value.map((title) => String(title)) + : typeof value === 'string' && value + ? value.split(',') + : undefined + return items?.map((title) => title.trim()).filter(Boolean) +} + +/** + * A switch input: the canvas drops an off switch as before, while a tool call + * keeps the model's explicit `false`. + */ +function switchInput(value: unknown, context: BlockToolParamsContext | undefined): unknown { + return value || toolCallArg(context, value === false ? false : undefined) +} + export const GitLabBlock: BlockConfig = { type: 'gitlab', hideFromToolbar: true, @@ -605,6 +676,16 @@ Return ONLY the title - no explanations, no extra text.`, placeholder: 'Describe the issue or merge request...', }, }, + { + id: 'updateTitle', + title: 'Title', + type: 'short-input', + placeholder: 'New title (leave blank to keep the current title)', + condition: { + field: 'operation', + value: ['gitlab_update_issue', 'gitlab_update_merge_request'], + }, + }, { id: 'description', title: 'Description', @@ -975,13 +1056,24 @@ Return ONLY the timestamp string - no explanations, no extra text.`, id: 'sha', title: 'Commit SHA', type: 'short-input', - placeholder: 'Optional HEAD SHA to approve', + placeholder: 'Optional HEAD SHA of the source branch', mode: 'advanced', condition: { field: 'operation', value: ['gitlab_approve_merge_request'], }, }, + { + id: 'mergeSha', + title: 'Commit SHA', + type: 'short-input', + placeholder: 'Optional HEAD SHA of the source branch', + mode: 'advanced', + condition: { + field: 'operation', + value: ['gitlab_merge_merge_request'], + }, + }, { id: 'labels', title: 'Labels', @@ -1032,6 +1124,34 @@ Return ONLY the timestamp string - no explanations, no extra text.`, ], }, }, + { + id: 'dueDate', + title: 'Due Date', + type: 'short-input', + placeholder: 'YYYY-MM-DD (optional)', + mode: 'advanced', + condition: { + field: 'operation', + value: ['gitlab_create_issue'], + }, + wandConfig: { + enabled: true, + prompt: `Generate a due date in YYYY-MM-DD format based on the user's description. + +Return ONLY the date string - no explanations, no extra text.`, + placeholder: 'Describe the due date (e.g., "next Friday")...', + }, + }, + { + id: 'confidential', + title: 'Confidential', + type: 'switch', + mode: 'advanced', + condition: { + field: 'operation', + value: ['gitlab_create_issue'], + }, + }, { id: 'issueState', title: 'State', @@ -1117,6 +1237,38 @@ Return ONLY the timestamp string - no explanations, no extra text.`, value: ['gitlab_create_merge_request', 'gitlab_merge_merge_request'], }, }, + { + id: 'draft', + title: 'Draft', + type: 'switch', + mode: 'advanced', + condition: { + field: 'operation', + value: ['gitlab_create_merge_request'], + }, + }, + { + id: 'mergeWhenPipelineSucceeds', + title: 'Merge When Checks Pass', + type: 'switch', + mode: 'advanced', + description: 'Set the merge request to auto-merge once its checks pass', + condition: { + field: 'operation', + value: ['gitlab_merge_merge_request'], + }, + }, + { + id: 'squashCommitMessage', + title: 'Squash Commit Message', + type: 'long-input', + placeholder: 'Custom squash commit message (optional)', + mode: 'advanced', + condition: { + field: 'operation', + value: ['gitlab_merge_merge_request'], + }, + }, // Tri-state variants for Update MR: a switch cannot express "turn this // off" without also clobbering the setting on every unrelated update. { @@ -2170,59 +2322,70 @@ Return ONLY the JSON array - no explanations, no extra text.`, tool: (params) => { return params.operation || 'gitlab_list_projects' }, - params: (params) => { - const baseParams: Record = { + params: (params, context) => { + const operation = mapperOperation(params, context) + const baseParams: Record = { accessToken: params.accessToken, - host: params.host?.trim() || undefined, + host: optionalText(params.host), } + const projectId = inputText(params.projectId) + const groupId = inputText(params.groupId) + const resourceId = inputText(params.resourceId) + const pagination = { + perPage: params.perPage ? Number(params.perPage) : undefined, + page: params.page ? Number(params.page) : undefined, + } + const sort = params.sortOrder || toolCallArg(context, params.sort) || undefined + /** A block text field, or on a tool call the model's arg under the tool's param name. */ + const textOrToolArg = (blockValue: unknown, toolValue: unknown) => + inputText(blockValue) || inputText(toolCallArg(context, toolValue)) - switch (params.operation) { + switch (operation) { case 'gitlab_list_projects': return { ...baseParams, owned: params.owned || undefined, membership: params.membership || undefined, - search: params.searchQuery?.trim() || undefined, + search: optionalText(params.searchQuery) || toolCallArg(context, params.search), visibility: params.visibility || undefined, - orderBy: params.projectOrderBy || undefined, - sort: params.sortOrder || undefined, - perPage: params.perPage ? Number(params.perPage) : undefined, - page: params.page ? Number(params.page) : undefined, + orderBy: params.projectOrderBy || toolCallArg(context, params.orderBy) || undefined, + sort, + ...pagination, } case 'gitlab_get_project': - if (!params.projectId?.trim()) { + if (!projectId) { throw new Error('Project ID is required.') } return { ...baseParams, - projectId: params.projectId.trim(), + projectId, } case 'gitlab_list_groups': return { ...baseParams, owned: params.owned || undefined, - search: params.searchQuery?.trim() || undefined, - topLevelOnly: params.groupsTopLevelOnly || undefined, + search: optionalText(params.searchQuery) || toolCallArg(context, params.search), + topLevelOnly: + params.groupsTopLevelOnly || toolCallArg(context, params.topLevelOnly) || undefined, visibility: params.visibility || undefined, minAccessLevel: params.groupMinAccessLevel ? Number(params.groupMinAccessLevel) - : undefined, - allAvailable: params.groupAllAvailable || undefined, - orderBy: params.groupOrderBy || undefined, - sort: params.sortOrder || undefined, - perPage: params.perPage ? Number(params.perPage) : undefined, - page: params.page ? Number(params.page) : undefined, + : toolCallArg(context, params.minAccessLevel), + allAvailable: params.groupAllAvailable || toolCallArg(context, params.allAvailable), + orderBy: params.groupOrderBy || toolCallArg(context, params.orderBy) || undefined, + sort, + ...pagination, } case 'gitlab_get_group': - if (!params.groupId?.trim()) { + if (!groupId) { throw new Error('Group ID is required.') } return { ...baseParams, - groupId: params.groupId.trim(), + groupId, } case 'gitlab_list_user_memberships': { @@ -2234,21 +2397,22 @@ Return ONLY the JSON array - no explanations, no extra text.`, ...baseParams, userId: membershipUserId, membershipType: params.membershipType || undefined, - perPage: params.perPage ? Number(params.perPage) : undefined, - page: params.page ? Number(params.page) : undefined, + ...pagination, } } case 'gitlab_list_issues': - if (!params.projectId?.trim()) { + if (!projectId) { throw new Error('Project ID is required.') } return { ...baseParams, - projectId: params.projectId.trim(), - state: params.issueState !== 'all' ? params.issueState : undefined, - labels: params.labels?.trim() || undefined, - search: params.searchQuery?.trim() || undefined, + projectId, + state: + (params.issueState !== 'all' ? params.issueState : undefined) || + toolCallArg(context, params.state), + labels: optionalText(params.labels), + search: optionalText(params.searchQuery) || toolCallArg(context, params.search), assigneeId: (() => { const raw = String(params.assigneeId ?? '').trim() if (!raw) return undefined @@ -2256,479 +2420,483 @@ Return ONLY the JSON array - no explanations, no extra text.`, if (Number.isNaN(parsed)) throw new Error('Assignee ID must be a number.') return parsed })(), - milestoneTitle: params.milestoneTitle?.trim() || undefined, - orderBy: params.issueOrderBy || undefined, - sort: params.sortOrder || undefined, - perPage: params.perPage ? Number(params.perPage) : undefined, - page: params.page ? Number(params.page) : undefined, + milestoneTitle: optionalText(params.milestoneTitle), + orderBy: params.issueOrderBy || toolCallArg(context, params.orderBy) || undefined, + sort, + ...pagination, } case 'gitlab_get_issue': - if (!params.projectId?.trim() || !params.issueIid) { + if (!projectId || !params.issueIid) { throw new Error('Project ID and Issue Number are required.') } return { ...baseParams, - projectId: params.projectId.trim(), + projectId, issueIid: Number(params.issueIid), } - case 'gitlab_create_issue': - if (!params.projectId?.trim() || !params.title?.trim()) { + case 'gitlab_create_issue': { + const title = inputText(params.title) + if (!projectId || !title) { throw new Error('Project ID and title are required.') } return { ...baseParams, - projectId: params.projectId.trim(), - title: params.title.trim(), - description: params.description?.trim() || undefined, - labels: params.labels?.trim() || undefined, - assigneeIds: params.assigneeIds - ? params.assigneeIds.split(',').map((id: string) => Number(id.trim())) - : undefined, + projectId, + title, + description: optionalText(params.description), + labels: optionalText(params.labels), + assigneeIds: parseIdList(params.assigneeIds), milestoneId: params.milestoneId ? Number(params.milestoneId) : undefined, + dueDate: optionalText(params.dueDate), + confidential: switchInput(params.confidential, context), } + } case 'gitlab_update_issue': - if (!params.projectId?.trim() || !params.issueIid) { + if (!projectId || !params.issueIid) { throw new Error('Project ID and Issue IID are required.') } return { ...baseParams, - projectId: params.projectId.trim(), + projectId, issueIid: Number(params.issueIid), - title: params.title?.trim() || undefined, - description: params.description?.trim() || undefined, - labels: params.labels?.trim() || undefined, - assigneeIds: params.assigneeIds - ? params.assigneeIds.split(',').map((id: string) => Number(id.trim())) - : undefined, - milestoneId: params.milestoneId ? Number(params.milestoneId) : undefined, + title: optionalText(params.updateTitle) || optionalText(params.title), + description: + optionalText(params.description) ?? toolCallClear(params.description, context), + labels: optionalText(params.labels) ?? toolCallClear(params.labels, context), + assigneeIds: parseIdList(params.assigneeIds), + milestoneId: params.milestoneId + ? Number(params.milestoneId) + : toolCallArg(context, params.milestoneId === 0 ? 0 : undefined), stateEvent: params.stateEvent || undefined, + dueDate: toolCallArg(context, params.dueDate), + confidential: toolCallArg(context, params.confidential), } case 'gitlab_delete_issue': - if (!params.projectId?.trim() || !params.issueIid) { + if (!projectId || !params.issueIid) { throw new Error('Project ID and Issue IID are required.') } return { ...baseParams, - projectId: params.projectId.trim(), + projectId, issueIid: Number(params.issueIid), } - case 'gitlab_create_issue_note': - if (!params.projectId?.trim() || !params.issueIid || !params.body?.trim()) { + case 'gitlab_create_issue_note': { + const body = inputText(params.body) + if (!projectId || !params.issueIid || !body) { throw new Error('Project ID, Issue IID, and comment body are required.') } return { ...baseParams, - projectId: params.projectId.trim(), + projectId, issueIid: Number(params.issueIid), - body: params.body.trim(), - internal: params.internalNote || undefined, + body, + internal: params.internalNote || toolCallArg(context, params.internal) || undefined, } + } case 'gitlab_list_merge_requests': - if (!params.projectId?.trim()) { + if (!projectId) { throw new Error('Project ID is required.') } return { ...baseParams, - projectId: params.projectId.trim(), - state: params.mrState !== 'all' ? params.mrState : undefined, - labels: params.labels?.trim() || undefined, - sourceBranch: params.sourceBranchFilter?.trim() || undefined, - targetBranch: params.targetBranchFilter?.trim() || undefined, - orderBy: params.mrOrderBy || undefined, - sort: params.sortOrder || undefined, - perPage: params.perPage ? Number(params.perPage) : undefined, - page: params.page ? Number(params.page) : undefined, + projectId, + state: + (params.mrState !== 'all' ? params.mrState : undefined) || + toolCallArg(context, params.state), + labels: optionalText(params.labels), + sourceBranch: + textOrToolArg(params.sourceBranchFilter, params.sourceBranch) || undefined, + targetBranch: + textOrToolArg(params.targetBranchFilter, params.targetBranch) || undefined, + orderBy: params.mrOrderBy || toolCallArg(context, params.orderBy) || undefined, + sort, + ...pagination, } case 'gitlab_get_merge_request': - if (!params.projectId?.trim() || !params.mergeRequestIid) { + if (!projectId || !params.mergeRequestIid) { throw new Error('Project ID and Merge Request IID are required.') } return { ...baseParams, - projectId: params.projectId.trim(), + projectId, mergeRequestIid: Number(params.mergeRequestIid), } - case 'gitlab_create_merge_request': - if ( - !params.projectId?.trim() || - !params.title?.trim() || - !params.sourceBranch?.trim() || - !params.targetBranch?.trim() - ) { + case 'gitlab_create_merge_request': { + const title = inputText(params.title) + const sourceBranch = inputText(params.sourceBranch) + const targetBranch = inputText(params.targetBranch) + if (!projectId || !title || !sourceBranch || !targetBranch) { throw new Error('Project ID, title, source branch, and target branch are required.') } return { ...baseParams, - projectId: params.projectId.trim(), - title: params.title.trim(), - sourceBranch: params.sourceBranch.trim(), - targetBranch: params.targetBranch.trim(), - description: params.description?.trim() || undefined, - labels: params.labels?.trim() || undefined, - assigneeIds: params.assigneeIds - ? params.assigneeIds.split(',').map((id: string) => Number(id.trim())) - : undefined, + projectId, + title, + sourceBranch, + targetBranch, + description: optionalText(params.description), + labels: optionalText(params.labels), + assigneeIds: parseIdList(params.assigneeIds), milestoneId: params.milestoneId ? Number(params.milestoneId) : undefined, - removeSourceBranch: params.removeSourceBranch || undefined, - squash: params.squash || undefined, + removeSourceBranch: switchInput(params.removeSourceBranch, context), + squash: switchInput(params.squash, context), + draft: switchInput(params.draft, context), } + } case 'gitlab_update_merge_request': - if (!params.projectId?.trim() || !params.mergeRequestIid) { + if (!projectId || !params.mergeRequestIid) { throw new Error('Project ID and Merge Request IID are required.') } return { ...baseParams, - projectId: params.projectId.trim(), + projectId, mergeRequestIid: Number(params.mergeRequestIid), - title: params.title?.trim() || undefined, - description: params.description?.trim() || undefined, - labels: params.labels?.trim() || undefined, - assigneeIds: params.assigneeIds - ? params.assigneeIds.split(',').map((id: string) => Number(id.trim())) - : undefined, - milestoneId: params.milestoneId ? Number(params.milestoneId) : undefined, + title: optionalText(params.updateTitle) || optionalText(params.title), + description: + optionalText(params.description) ?? toolCallClear(params.description, context), + labels: optionalText(params.labels) ?? toolCallClear(params.labels, context), + assigneeIds: + parseIdList(params.assigneeIds) ?? toolCallClear(params.assigneeIds, context), + milestoneId: params.milestoneId + ? Number(params.milestoneId) + : toolCallArg(context, params.milestoneId === 0 ? 0 : undefined), stateEvent: params.stateEvent || undefined, - removeSourceBranch: parseTriState(params.updateRemoveSourceBranch), - squash: parseTriState(params.updateSquash), + removeSourceBranch: + parseTriState(params.updateRemoveSourceBranch) ?? + parseTriState(toolCallArg(context, params.removeSourceBranch)), + squash: + parseTriState(params.updateSquash) ?? + parseTriState(toolCallArg(context, params.squash)), + draft: toolCallArg(context, params.draft), } case 'gitlab_merge_merge_request': - if (!params.projectId?.trim() || !params.mergeRequestIid) { + if (!projectId || !params.mergeRequestIid) { throw new Error('Project ID and Merge Request IID are required.') } return { ...baseParams, - projectId: params.projectId.trim(), + projectId, mergeRequestIid: Number(params.mergeRequestIid), - mergeCommitMessage: params.mergeCommitMessage?.trim() || undefined, - squash: params.squash || undefined, - shouldRemoveSourceBranch: params.removeSourceBranch || undefined, - } - - case 'gitlab_create_merge_request_note': - if (!params.projectId?.trim() || !params.mergeRequestIid || !params.body?.trim()) { + mergeCommitMessage: optionalText(params.mergeCommitMessage), + squashCommitMessage: optionalText(params.squashCommitMessage), + squash: switchInput(params.squash, context), + shouldRemoveSourceBranch: + params.removeSourceBranch || toolCallArg(context, params.shouldRemoveSourceBranch), + mergeWhenPipelineSucceeds: switchInput(params.mergeWhenPipelineSucceeds, context), + sha: textOrToolArg(params.mergeSha, params.sha) || undefined, + } + + case 'gitlab_create_merge_request_note': { + const body = inputText(params.body) + if (!projectId || !params.mergeRequestIid || !body) { throw new Error('Project ID, Merge Request IID, and comment body are required.') } return { ...baseParams, - projectId: params.projectId.trim(), + projectId, mergeRequestIid: Number(params.mergeRequestIid), - body: params.body.trim(), - internal: params.internalNote || undefined, + body, + internal: params.internalNote || toolCallArg(context, params.internal) || undefined, } + } case 'gitlab_list_pipelines': - if (!params.projectId?.trim()) { + if (!projectId) { throw new Error('Project ID is required.') } return { ...baseParams, - projectId: params.projectId.trim(), - status: params.pipelineStatus || undefined, - ref: params.ref?.trim() || undefined, - orderBy: params.pipelineOrderBy || undefined, - sort: params.sortOrder || undefined, - perPage: params.perPage ? Number(params.perPage) : undefined, - page: params.page ? Number(params.page) : undefined, + projectId, + status: params.pipelineStatus || toolCallArg(context, params.status) || undefined, + ref: optionalText(params.ref), + orderBy: params.pipelineOrderBy || toolCallArg(context, params.orderBy) || undefined, + sort, + ...pagination, } case 'gitlab_get_pipeline': - if (!params.projectId?.trim() || !params.pipelineId) { + if (!projectId || !params.pipelineId) { throw new Error('Project ID and Pipeline ID are required.') } return { ...baseParams, - projectId: params.projectId.trim(), + projectId, pipelineId: Number(params.pipelineId), } - case 'gitlab_create_pipeline': - if (!params.projectId?.trim() || !params.ref?.trim()) { + case 'gitlab_create_pipeline': { + const ref = inputText(params.ref) + if (!projectId || !ref) { throw new Error('Project ID and branch/tag ref are required.') } return { ...baseParams, - projectId: params.projectId.trim(), - ref: params.ref.trim(), - variables: (() => { - const parsed = parseJsonParam(params.pipelineVariables, 'Pipeline Variables') - if (parsed === undefined) return undefined - // Accept {KEY: value} shorthand and normalize to GitLab's array form. - if (!Array.isArray(parsed) && typeof parsed === 'object') { - return Object.entries(parsed).map(([key, value]) => ({ - key, - value: String(value), - })) - } - return parsed - })(), - inputs: parseJsonParam(params.pipelineInputs, 'Pipeline Inputs'), + projectId, + ref, + variables: + parseCiVariables(params.pipelineVariables, 'Pipeline Variables') ?? + parseCiVariables(toolCallArg(context, params.variables), 'Pipeline Variables'), + inputs: + parseJsonParam(params.pipelineInputs, 'Pipeline Inputs') ?? + parseJsonParam(toolCallArg(context, params.inputs), 'Pipeline Inputs'), } + } case 'gitlab_retry_pipeline': case 'gitlab_cancel_pipeline': - if (!params.projectId?.trim() || !params.pipelineId) { + if (!projectId || !params.pipelineId) { throw new Error('Project ID and Pipeline ID are required.') } return { ...baseParams, - projectId: params.projectId.trim(), + projectId, pipelineId: Number(params.pipelineId), } case 'gitlab_list_repository_tree': - if (!params.projectId?.trim()) { + if (!projectId) { throw new Error('Project ID is required.') } return { ...baseParams, - projectId: params.projectId.trim(), - path: params.path?.trim() || undefined, - ref: params.ref?.trim() || undefined, + projectId, + path: optionalText(params.path), + ref: optionalText(params.ref), recursive: params.recursive || undefined, - perPage: params.perPage ? Number(params.perPage) : undefined, - page: params.page ? Number(params.page) : undefined, + ...pagination, } - case 'gitlab_get_file': - if (!params.projectId?.trim() || !params.filePath?.trim() || !params.ref?.trim()) { + case 'gitlab_get_file': { + const filePath = inputText(params.filePath) + const ref = inputText(params.ref) + if (!projectId || !filePath || !ref) { throw new Error('Project ID, file path, and ref are required.') } return { ...baseParams, - projectId: params.projectId.trim(), - filePath: params.filePath.trim(), - ref: params.ref.trim(), + projectId, + filePath, + ref, } + } case 'gitlab_create_file': - case 'gitlab_update_file': - if ( - !params.projectId?.trim() || - !params.filePath?.trim() || - !params.branch?.trim() || - !params.content || - !params.commitMessage?.trim() - ) { + case 'gitlab_update_file': { + const filePath = inputText(params.filePath) + const branch = inputText(params.branch) + const commitMessage = inputText(params.commitMessage) + if (!projectId || !filePath || !branch || !params.content || !commitMessage) { throw new Error( 'Project ID, file path, branch, content, and commit message are required.' ) } return { ...baseParams, - projectId: params.projectId.trim(), - filePath: params.filePath.trim(), - branch: params.branch.trim(), + projectId, + filePath, + branch, content: params.content, - commitMessage: params.commitMessage.trim(), - startBranch: params.startBranch?.trim() || undefined, - authorName: params.authorName?.trim() || undefined, - authorEmail: params.authorEmail?.trim() || undefined, + commitMessage, + startBranch: optionalText(params.startBranch), + authorName: optionalText(params.authorName), + authorEmail: optionalText(params.authorEmail), executeFilemode: parseTriState(params.executeFilemode), - ...(params.operation === 'gitlab_update_file' - ? { lastCommitId: params.lastCommitId?.trim() || undefined } + ...(operation === 'gitlab_update_file' + ? { lastCommitId: optionalText(params.lastCommitId) } : {}), } + } - case 'gitlab_create_branch': - if (!params.projectId?.trim() || !params.branch?.trim() || !params.ref?.trim()) { + case 'gitlab_create_branch': { + const branch = inputText(params.branch) + const ref = inputText(params.ref) + if (!projectId || !branch || !ref) { throw new Error('Project ID, branch name, and source ref are required.') } return { ...baseParams, - projectId: params.projectId.trim(), - branch: params.branch.trim(), - ref: params.ref.trim(), + projectId, + branch, + ref, } + } case 'gitlab_list_branches': - if (!params.projectId?.trim()) { + if (!projectId) { throw new Error('Project ID is required.') } return { ...baseParams, - projectId: params.projectId.trim(), - search: params.query?.trim() || undefined, - perPage: params.perPage ? Number(params.perPage) : undefined, - page: params.page ? Number(params.page) : undefined, + projectId, + search: optionalText(params.query) || toolCallArg(context, params.search), + ...pagination, } - case 'gitlab_delete_branch': - if (!params.projectId?.trim() || !params.branch?.trim()) { + case 'gitlab_delete_branch': { + const branch = inputText(params.branch) + if (!projectId || !branch) { throw new Error('Project ID and branch name are required.') } return { ...baseParams, - projectId: params.projectId.trim(), - branch: params.branch.trim(), + projectId, + branch, } + } - case 'gitlab_compare_branches': - if ( - !params.projectId?.trim() || - !params.compareFrom?.trim() || - !params.compareTo?.trim() - ) { + case 'gitlab_compare_branches': { + const from = textOrToolArg(params.compareFrom, params.from) + const to = textOrToolArg(params.compareTo, params.to) + if (!projectId || !from || !to) { throw new Error('Project ID, from ref, and to ref are required.') } return { ...baseParams, - projectId: params.projectId.trim(), - from: params.compareFrom.trim(), - to: params.compareTo.trim(), + projectId, + from, + to, straight: params.straight || undefined, - fromProjectId: params.fromProjectId?.trim() || undefined, + fromProjectId: optionalText(params.fromProjectId), unidiff: params.unidiff || undefined, } + } case 'gitlab_list_commits': - if (!params.projectId?.trim()) { + if (!projectId) { throw new Error('Project ID is required.') } return { ...baseParams, - projectId: params.projectId.trim(), - refName: params.refName?.trim() || undefined, - since: params.since?.trim() || undefined, - until: params.until?.trim() || undefined, - path: params.path?.trim() || undefined, - author: params.author?.trim() || undefined, - perPage: params.perPage ? Number(params.perPage) : undefined, - page: params.page ? Number(params.page) : undefined, + projectId, + refName: optionalText(params.refName), + since: optionalText(params.since), + until: optionalText(params.until), + path: optionalText(params.path), + author: optionalText(params.author), + ...pagination, } case 'gitlab_get_merge_request_changes': - if (!params.projectId?.trim() || !params.mergeRequestIid) { + if (!projectId || !params.mergeRequestIid) { throw new Error('Project ID and Merge Request IID are required.') } return { ...baseParams, - projectId: params.projectId.trim(), + projectId, mergeRequestIid: Number(params.mergeRequestIid), } case 'gitlab_approve_merge_request': - if (!params.projectId?.trim() || !params.mergeRequestIid) { + if (!projectId || !params.mergeRequestIid) { throw new Error('Project ID and Merge Request IID are required.') } return { ...baseParams, - projectId: params.projectId.trim(), + projectId, mergeRequestIid: Number(params.mergeRequestIid), - sha: params.sha?.trim() || undefined, + sha: optionalText(params.sha), } case 'gitlab_list_pipeline_jobs': - if (!params.projectId?.trim() || !params.pipelineId) { + if (!projectId || !params.pipelineId) { throw new Error('Project ID and Pipeline ID are required.') } return { ...baseParams, - projectId: params.projectId.trim(), + projectId, pipelineId: Number(params.pipelineId), scope: params.scope || undefined, includeRetried: params.includeRetried || undefined, - perPage: params.perPage ? Number(params.perPage) : undefined, - page: params.page ? Number(params.page) : undefined, + ...pagination, } case 'gitlab_get_job_log': - if (!params.projectId?.trim() || !params.jobId) { + if (!projectId || !params.jobId) { throw new Error('Project ID and Job ID are required.') } return { ...baseParams, - projectId: params.projectId.trim(), + projectId, jobId: Number(params.jobId), } case 'gitlab_play_job': - if (!params.projectId?.trim() || !params.jobId) { + if (!projectId || !params.jobId) { throw new Error('Project ID and Job ID are required.') } return { ...baseParams, - projectId: params.projectId.trim(), + projectId, jobId: Number(params.jobId), - jobVariables: (() => { - const parsed = parseJsonParam(params.jobVariables, 'Job Variables') - if (parsed === undefined) return undefined - if (!Array.isArray(parsed) && typeof parsed === 'object') { - return Object.entries(parsed).map(([key, value]) => ({ - key, - value: String(value), - })) - } - return parsed - })(), + jobVariables: parseCiVariables(params.jobVariables, 'Job Variables'), } case 'gitlab_list_releases': - if (!params.projectId?.trim()) { + if (!projectId) { throw new Error('Project ID is required.') } return { ...baseParams, - projectId: params.projectId.trim(), - orderBy: params.releaseOrderBy || undefined, - sort: params.sortOrder || undefined, - perPage: params.perPage ? Number(params.perPage) : undefined, - page: params.page ? Number(params.page) : undefined, + projectId, + orderBy: params.releaseOrderBy || toolCallArg(context, params.orderBy) || undefined, + sort, + ...pagination, } - case 'gitlab_create_release': - if (!params.projectId?.trim() || !params.tagName?.trim()) { + case 'gitlab_create_release': { + const tagName = inputText(params.tagName) + if (!projectId || !tagName) { throw new Error('Project ID and tag name are required.') } return { ...baseParams, - projectId: params.projectId.trim(), - tagName: params.tagName.trim(), - name: params.releaseName?.trim() || undefined, - description: params.description?.trim() || undefined, - ref: params.ref?.trim() || undefined, - releasedAt: params.releasedAt?.trim() || undefined, - tagMessage: params.tagMessage?.trim() || undefined, + projectId, + tagName, + name: textOrToolArg(params.releaseName, params.name) || undefined, + description: optionalText(params.description), + ref: optionalText(params.ref), + releasedAt: optionalText(params.releasedAt), + tagMessage: optionalText(params.tagMessage), assetLinks: parseJsonParam(params.assetLinks, 'Asset Links'), - milestones: params.releaseMilestones - ? params.releaseMilestones - .split(',') - .map((title: string) => title.trim()) - .filter(Boolean) - : undefined, + milestones: + parseTitleList(params.releaseMilestones) ?? + parseTitleList(toolCallArg(context, params.milestones)), } + } case 'gitlab_list_members': - if (!params.resourceId?.trim()) { + if (!resourceId) { throw new Error('Project / Group ID is required.') } return { ...baseParams, resourceType: params.resourceType || 'project', - resourceId: params.resourceId.trim(), - directOnly: params.directMembersOnly || undefined, - query: params.query?.trim() || undefined, - userIds: params.memberUserIds?.trim() || undefined, - state: params.memberState || undefined, + resourceId, + directOnly: + params.directMembersOnly || toolCallArg(context, params.directOnly) || undefined, + query: optionalText(params.query), + userIds: textOrToolArg(params.memberUserIds, params.userIds) || undefined, + state: params.memberState || toolCallArg(context, params.state) || undefined, showSeatInfo: params.showSeatInfo || undefined, - perPage: params.perPage ? Number(params.perPage) : undefined, - page: params.page ? Number(params.page) : undefined, + ...pagination, } case 'gitlab_add_member': { const addMemberUserId = String(params.userId ?? '').trim() + const username = inputText(params.username) if ( - !params.resourceId?.trim() || - (!addMemberUserId && !params.username?.trim()) || + !resourceId || + (!addMemberUserId && !username) || !hasGitLabAccessLevel(params.accessLevel) ) { throw new Error( @@ -2738,85 +2906,89 @@ Return ONLY the JSON array - no explanations, no extra text.`, return { ...baseParams, resourceType: params.resourceType || 'project', - resourceId: params.resourceId.trim(), + resourceId, userId: addMemberUserId ? Number(addMemberUserId) : undefined, - username: params.username?.trim() || undefined, + username: username || undefined, accessLevel: coerceGitLabAccessLevel(params.accessLevel), - expiresAt: params.expiresAt?.trim() || undefined, + expiresAt: optionalText(params.expiresAt), memberRoleId: params.memberRoleId ? Number(params.memberRoleId) : undefined, } } - case 'gitlab_update_member': - if ( - !params.resourceId?.trim() || - !params.userId || - !hasGitLabAccessLevel(params.memberAccessLevel) - ) { + case 'gitlab_update_member': { + const level = hasGitLabAccessLevel(params.memberAccessLevel) + ? params.memberAccessLevel + : toolCallArg(context, params.accessLevel) + if (!resourceId || !params.userId || !hasGitLabAccessLevel(level)) { throw new Error('Project / Group ID, User ID, and Access Level are required.') } return { ...baseParams, resourceType: params.resourceType || 'project', - resourceId: params.resourceId.trim(), + resourceId, userId: Number(params.userId), - accessLevel: coerceGitLabAccessLevel(params.memberAccessLevel), - expiresAt: params.clearExpiresAt ? '' : params.expiresAt?.trim() || undefined, + accessLevel: coerceGitLabAccessLevel(level), + expiresAt: params.clearExpiresAt + ? '' + : (optionalText(params.expiresAt) ?? toolCallClear(params.expiresAt, context)), memberRoleId: params.memberRoleId ? Number(params.memberRoleId) : undefined, } + } case 'gitlab_remove_member': - if (!params.resourceId?.trim() || !params.userId) { + if (!resourceId || !params.userId) { throw new Error('Project / Group ID and User ID are required.') } return { ...baseParams, resourceType: params.resourceType || 'project', - resourceId: params.resourceId.trim(), + resourceId, userId: Number(params.userId), skipSubresources: params.skipSubresources || undefined, unassignIssuables: params.unassignIssuables || undefined, } - case 'gitlab_invite_member': - if ( - !params.resourceId?.trim() || - !params.email?.trim() || - !hasGitLabAccessLevel(params.accessLevel) - ) { + case 'gitlab_invite_member': { + const email = inputText(params.email) + if (!resourceId || !email || !hasGitLabAccessLevel(params.accessLevel)) { throw new Error('Project / Group ID, Email, and Access Level are required.') } return { ...baseParams, resourceType: params.resourceType || 'project', - resourceId: params.resourceId.trim(), - email: params.email.trim(), + resourceId, + email, accessLevel: coerceGitLabAccessLevel(params.accessLevel), - expiresAt: params.expiresAt?.trim() || undefined, + expiresAt: optionalText(params.expiresAt), memberRoleId: params.memberRoleId ? Number(params.memberRoleId) : undefined, - inviteSource: params.inviteSource?.trim() || undefined, + inviteSource: optionalText(params.inviteSource), } + } case 'gitlab_list_invitations': - if (!params.resourceId?.trim()) { + if (!resourceId) { throw new Error('Project / Group ID is required.') } return { ...baseParams, resourceType: params.resourceType || 'project', - resourceId: params.resourceId.trim(), - query: params.query?.trim() || undefined, - perPage: params.perPage ? Number(params.perPage) : undefined, - page: params.page ? Number(params.page) : undefined, + resourceId, + query: optionalText(params.query), + ...pagination, } - case 'gitlab_update_invitation': - if (!params.resourceId?.trim() || !params.email?.trim()) { + case 'gitlab_update_invitation': { + const email = inputText(params.email) + if (!resourceId || !email) { throw new Error('Project / Group ID and Email are required.') } + const level = hasGitLabAccessLevel(params.invitationAccessLevel) + ? params.invitationAccessLevel + : toolCallArg(context, params.accessLevel) if ( - !hasGitLabAccessLevel(params.invitationAccessLevel) && - !params.expiresAt?.trim() && + !hasGitLabAccessLevel(level) && + !inputText(params.expiresAt) && + toolCallClear(params.expiresAt, context) === undefined && !params.clearExpiresAt ) { throw new Error( @@ -2826,47 +2998,49 @@ Return ONLY the JSON array - no explanations, no extra text.`, return { ...baseParams, resourceType: params.resourceType || 'project', - resourceId: params.resourceId.trim(), - email: params.email.trim(), + resourceId, + email, // Only send access_level when a level is chosen; "Leave unchanged" // ('') keeps the invitation's current level instead of resetting it. - accessLevel: hasGitLabAccessLevel(params.invitationAccessLevel) - ? coerceGitLabAccessLevel(params.invitationAccessLevel) - : undefined, - expiresAt: params.clearExpiresAt ? '' : params.expiresAt?.trim() || undefined, + accessLevel: hasGitLabAccessLevel(level) ? coerceGitLabAccessLevel(level) : undefined, + expiresAt: params.clearExpiresAt + ? '' + : (optionalText(params.expiresAt) ?? toolCallClear(params.expiresAt, context)), } + } - case 'gitlab_revoke_invitation': - if (!params.resourceId?.trim() || !params.email?.trim()) { + case 'gitlab_revoke_invitation': { + const email = inputText(params.email) + if (!resourceId || !email) { throw new Error('Project / Group ID and Email are required.') } return { ...baseParams, resourceType: params.resourceType || 'project', - resourceId: params.resourceId.trim(), - email: params.email.trim(), + resourceId, + email, } + } case 'gitlab_list_access_requests': - if (!params.resourceId?.trim()) { + if (!resourceId) { throw new Error('Project / Group ID is required.') } return { ...baseParams, resourceType: params.resourceType || 'project', - resourceId: params.resourceId.trim(), - perPage: params.perPage ? Number(params.perPage) : undefined, - page: params.page ? Number(params.page) : undefined, + resourceId, + ...pagination, } case 'gitlab_approve_access_request': - if (!params.resourceId?.trim() || !params.userId) { + if (!resourceId || !params.userId) { throw new Error('Project / Group ID and User ID are required.') } return { ...baseParams, resourceType: params.resourceType || 'project', - resourceId: params.resourceId.trim(), + resourceId, userId: Number(params.userId), accessLevel: hasGitLabAccessLevel(params.accessLevel) ? coerceGitLabAccessLevel(params.accessLevel) @@ -2874,92 +3048,90 @@ Return ONLY the JSON array - no explanations, no extra text.`, } case 'gitlab_deny_access_request': - if (!params.resourceId?.trim() || !params.userId) { + if (!resourceId || !params.userId) { throw new Error('Project / Group ID and User ID are required.') } return { ...baseParams, resourceType: params.resourceType || 'project', - resourceId: params.resourceId.trim(), + resourceId, userId: Number(params.userId), } case 'gitlab_list_saml_group_links': - if (!params.groupId?.trim()) { + if (!groupId) { throw new Error('Group ID is required.') } return { ...baseParams, - groupId: params.groupId.trim(), + groupId, } - case 'gitlab_add_saml_group_link': - if ( - !params.groupId?.trim() || - !params.samlGroupName?.trim() || - !hasGitLabAccessLevel(params.accessLevel) - ) { + case 'gitlab_add_saml_group_link': { + const samlGroupName = inputText(params.samlGroupName) + if (!groupId || !samlGroupName || !hasGitLabAccessLevel(params.accessLevel)) { throw new Error('Group ID, SAML Group Name, and Access Level are required.') } return { ...baseParams, - groupId: params.groupId.trim(), - samlGroupName: params.samlGroupName.trim(), + groupId, + samlGroupName, accessLevel: coerceGitLabAccessLevel(params.accessLevel), memberRoleId: params.memberRoleId ? Number(params.memberRoleId) : undefined, - provider: params.samlProvider?.trim() || undefined, + provider: textOrToolArg(params.samlProvider, params.provider) || undefined, } + } - case 'gitlab_delete_saml_group_link': - if (!params.groupId?.trim() || !params.samlGroupName?.trim()) { + case 'gitlab_delete_saml_group_link': { + const samlGroupName = inputText(params.samlGroupName) + if (!groupId || !samlGroupName) { throw new Error('Group ID and SAML Group Name are required.') } return { ...baseParams, - groupId: params.groupId.trim(), - samlGroupName: params.samlGroupName.trim(), - provider: params.samlProvider?.trim() || undefined, + groupId, + samlGroupName, + provider: textOrToolArg(params.samlProvider, params.provider) || undefined, } + } - case 'gitlab_search_users': - if (!params.userSearch?.trim()) { + case 'gitlab_search_users': { + const search = textOrToolArg(params.userSearch, params.search) + if (!search) { throw new Error('Search query is required.') } return { ...baseParams, - search: params.userSearch.trim(), - perPage: params.perPage ? Number(params.perPage) : undefined, - page: params.page ? Number(params.page) : undefined, + search, + ...pagination, } + } - case 'gitlab_create_user': - if ( - !params.userAdminEmail?.trim() || - !params.userAdminUsername?.trim() || - !params.userAdminName?.trim() - ) { + case 'gitlab_create_user': { + const email = textOrToolArg(params.userAdminEmail, params.email) + const username = textOrToolArg(params.userAdminUsername, params.username) + const name = textOrToolArg(params.userAdminName, params.name) + const password = textOrToolArg(params.userAdminPassword, params.password) + if (!email || !username || !name) { throw new Error('Email, Username, and Full Name are required.') } - if ( - !params.userAdminPassword?.trim() && - !params.resetPassword && - !params.forceRandomPassword - ) { + if (!password && !params.resetPassword && !params.forceRandomPassword) { throw new Error( 'One of Password, Send Password Reset Link, or Force Random Password is required.' ) } return { ...baseParams, - email: params.userAdminEmail.trim(), - username: params.userAdminUsername.trim(), - name: params.userAdminName.trim(), - password: params.userAdminPassword?.trim() || undefined, + email, + username, + name, + password: password || undefined, resetPassword: params.resetPassword || undefined, forceRandomPassword: params.forceRandomPassword || undefined, - admin: params.userAdminIsAdmin || undefined, + admin: params.userAdminIsAdmin || toolCallArg(context, params.admin) || undefined, skipConfirmation: params.skipConfirmation || undefined, } + } case 'gitlab_update_user': if (!params.userId) { @@ -2968,14 +3140,19 @@ Return ONLY the JSON array - no explanations, no extra text.`, return { ...baseParams, userId: Number(params.userId), - email: params.userAdminEmail?.trim() || undefined, - username: params.userAdminUsername?.trim() || undefined, - name: params.userAdminName?.trim() || undefined, + email: textOrToolArg(params.userAdminEmail, params.email) || undefined, + username: textOrToolArg(params.userAdminUsername, params.username) || undefined, + name: textOrToolArg(params.userAdminName, params.name) || undefined, // Only pass a real boolean: an explicit `false` demotes the user, // while an untouched switch serializes as `null` and must be // dropped so an unrelated update never touches the admin flag. admin: - typeof params.userAdminIsAdmin === 'boolean' ? params.userAdminIsAdmin : undefined, + typeof params.userAdminIsAdmin === 'boolean' + ? params.userAdminIsAdmin + : toolCallArg( + context, + typeof params.admin === 'boolean' ? params.admin : undefined + ), } case 'gitlab_delete_user': @@ -3004,15 +3181,17 @@ Return ONLY the JSON array - no explanations, no extra text.`, userId: Number(params.userId), } - case 'gitlab_delete_user_identity': - if (!params.userId || !params.provider?.trim()) { + case 'gitlab_delete_user_identity': { + const provider = inputText(params.provider) + if (!params.userId || !provider) { throw new Error('User ID and Identity Provider are required.') } return { ...baseParams, userId: Number(params.userId), - provider: params.provider.trim(), + provider, } + } default: return baseParams @@ -3029,6 +3208,18 @@ Return ONLY the JSON array - no explanations, no extra text.`, mergeRequestIid: { type: 'number', description: 'Merge request internal ID' }, pipelineId: { type: 'number', description: 'Pipeline ID' }, title: { type: 'string', description: 'Title for issue or merge request' }, + updateTitle: { + type: 'string', + description: 'New title when updating an issue or merge request', + }, + dueDate: { type: 'string', description: 'Issue due date (YYYY-MM-DD)' }, + confidential: { type: 'boolean', description: 'Create the issue as confidential' }, + draft: { type: 'boolean', description: 'Create the merge request as a draft' }, + mergeWhenPipelineSucceeds: { + type: 'boolean', + description: 'Auto-merge the merge request once its checks pass', + }, + squashCommitMessage: { type: 'string', description: 'Custom squash commit message' }, description: { type: 'string', description: 'Description (Markdown supported)' }, body: { type: 'string', description: 'Comment body' }, sourceBranch: { type: 'string', description: 'Source branch for merge request' }, @@ -3115,6 +3306,7 @@ Return ONLY the JSON array - no explanations, no extra text.`, scope: { type: 'string', description: 'Job scope filter' }, includeRetried: { type: 'boolean', description: 'Include retried jobs in the listing' }, sha: { type: 'string', description: 'Commit SHA' }, + mergeSha: { type: 'string', description: 'Source branch HEAD SHA required to merge' }, compareFrom: { type: 'string', description: 'Branch, tag, or commit SHA to compare from' }, compareTo: { type: 'string', description: 'Branch, tag, or commit SHA to compare to' }, straight: { type: 'boolean', description: 'Compare directly instead of using the merge base' }, diff --git a/apps/sim/blocks/blocks/incidentio.test.ts b/apps/sim/blocks/blocks/incidentio.test.ts new file mode 100644 index 00000000000..df618b729da --- /dev/null +++ b/apps/sim/blocks/blocks/incidentio.test.ts @@ -0,0 +1,108 @@ +import { describe, expect, it } from 'vitest' +import { IncidentioBlock } from '@/blocks/blocks/incidentio' + +/** + * On a tool call (Agent tool row, Pi, Human-in-the-loop v2) the mapper receives the stored row's + * params merged with the model's args, without `operation`; the operation arrives only in + * `context`. The executor spreads the mapper output over those merged params. + */ +function runToolCall(operation: string, merged: Record) { + const mapper = IncidentioBlock.tools.config?.params + if (!mapper) throw new Error('incidentio block has no params mapper') + return { ...merged, ...mapper(merged, { operation }) } +} + +describe('incidentio mapper on tool calls', () => { + it('applies block-only fields stored on the tool row', () => { + expect(runToolCall('incidentio_users_list', { apiKey: 'k', user_email: 'a@b.com' }).email).toBe( + 'a@b.com' + ) + const alert = runToolCall('incidentio_alert_events_create', { + alert_title: 'Checkout latency', + alert_status: 'firing', + }) + expect(alert.title).toBe('Checkout latency') + expect(alert.status).toBe('firing') + }) + + it("keeps the model's status over the seeded status dropdown", () => { + const resolved = runToolCall('incidentio_actions_update', { + id: 'act_1', + description: 'Fail over', + item_status: 'outstanding', + status: 'completed', + }) + expect(resolved.status).toBe('completed') + }) + + it('uses the status dropdown on the canvas', () => { + const mapper = IncidentioBlock.tools.config?.params + if (!mapper) throw new Error('incidentio block has no params mapper') + const canvas = mapper({ + operation: 'incidentio_follow_ups_update', + item_status: 'not_doing', + follow_up_title: 'Add alerting', + }) + expect(canvas.status).toBe('not_doing') + expect(canvas.title).toBe('Add alerting') + }) + + it("doesn't filter a tool-call alert list by the tool row's seeded status", () => { + const listed = runToolCall('incidentio_alerts_list', { apiKey: 'k', alert_status: 'firing' }) + expect(listed.status).toBeUndefined() + const mapper = IncidentioBlock.tools.config?.params + if (!mapper) throw new Error('incidentio block has no params mapper') + expect(mapper({ alert_status: 'firing' }, { operation: 'incidentio_alerts_list' }).status).toBe( + undefined + ) + expect( + runToolCall('incidentio_alerts_list', { alert_status: 'firing', status: 'resolved' }).status + ).toBe('resolved') + }) + + it("leaves a workflow created without a state to the tool's draft default", () => { + expect(runToolCall('incidentio_workflows_create', { name: 'Notify' }).state).toBeUndefined() + expect( + runToolCall('incidentio_workflows_create', { name: 'Notify', state: 'active' }).state + ).toBe('active') + }) +}) + +describe('incidentio mapper on a block newly added in the editor', () => { + /** The editor seeds dropdowns with `value({})`, so create operations start on the '' option. */ + const runCanvas = (params: Record) => { + const mapper = IncidentioBlock.tools.config?.params + if (!mapper) throw new Error('incidentio block has no params mapper') + return { ...params, ...mapper(params) } + } + + it('creates a firing alert event', () => { + const alert = runCanvas({ + operation: 'incidentio_alert_events_create', + alert_status: '', + alert_title: 'Disk full', + }) + expect(alert.status).toBe('firing') + }) + + it('creates a schedule in UTC', () => { + expect(runCanvas({ operation: 'incidentio_schedules_create', timezone: '' }).timezone).toBe( + 'UTC' + ) + expect( + runCanvas({ operation: 'incidentio_schedules_create', timezone: 'Europe/London' }).timezone + ).toBe('Europe/London') + }) + + it('creates an active workflow', () => { + expect(runCanvas({ operation: 'incidentio_workflows_create', state: '' }).state).toBe('active') + expect(runCanvas({ operation: 'incidentio_workflows_create', state: 'draft' }).state).toBe( + 'draft' + ) + }) + + it("leaves an update's 'No change' options unset", () => { + expect(runCanvas({ operation: 'incidentio_schedules_update', timezone: '' }).timezone).toBe('') + expect(runCanvas({ operation: 'incidentio_workflows_update', state: '' }).state).toBe('') + }) +}) diff --git a/apps/sim/blocks/blocks/incidentio.ts b/apps/sim/blocks/blocks/incidentio.ts index d7f18519767..1d3fc6b5131 100644 --- a/apps/sim/blocks/blocks/incidentio.ts +++ b/apps/sim/blocks/blocks/incidentio.ts @@ -1,7 +1,7 @@ import { IncidentioIcon } from '@/components/icons' import type { BlockConfig, BlockMeta } from '@/blocks/types' import { AuthMode, IntegrationType } from '@/blocks/types' -import { withSavedCredential } from '@/blocks/utils' +import { isToolCall, mapperOperation, toolCallArg, withSavedCredential } from '@/blocks/utils' import { getTrigger } from '@/triggers' /** Identifiers a user can be looked up by, whichever one is filled. */ @@ -319,6 +319,8 @@ export const IncidentioBlock: BlockConfig = { 'incidentio_incident_alerts_list', 'incidentio_catalog_entries_list', 'incidentio_teams_list', + 'incidentio_actions_list', + 'incidentio_follow_ups_list', ], }, mode: 'advanced', @@ -343,6 +345,8 @@ export const IncidentioBlock: BlockConfig = { 'incidentio_incident_alerts_list', 'incidentio_catalog_entries_list', 'incidentio_teams_list', + 'incidentio_actions_list', + 'incidentio_follow_ups_list', ], }, mode: 'advanced', @@ -401,17 +405,13 @@ Return ONLY the summary text - no explanations.`, field: 'operation', value: ['incidentio_incidents_create', 'incidentio_incidents_update'], }, - required: { field: 'operation', value: 'incidentio_incidents_create' }, }, { id: 'incident_type_id', title: 'Incident Type ID', type: 'short-input', placeholder: 'Enter incident type ID...', - condition: { - field: 'operation', - value: ['incidentio_incidents_create', 'incidentio_incidents_update'], - }, + condition: { field: 'operation', value: 'incidentio_incidents_create' }, }, { id: 'incident_status_id', @@ -578,6 +578,21 @@ Return ONLY the title - no explanations.`, placeholder: 'Enter user IDs, comma-separated (required if no path ID)...', condition: { field: 'operation', value: 'incidentio_escalations_create' }, }, + { + id: 'escalation_description', + title: 'Description', + type: 'long-input', + placeholder: 'Additional details included with the page...', + condition: { field: 'operation', value: 'incidentio_escalations_create' }, + }, + { + id: 'escalation_incident_id', + title: 'Incident ID', + type: 'short-input', + placeholder: 'Link the escalation to an incident (optional)...', + condition: { field: 'operation', value: 'incidentio_escalations_create' }, + mode: 'advanced', + }, { id: 'incident_id', title: 'Incident ID', @@ -613,6 +628,7 @@ Return ONLY the title - no explanations.`, title: 'Incident Mode', type: 'dropdown', options: [ + { label: 'Standard and Retrospective', id: '' }, { label: 'Standard', id: 'standard' }, { label: 'Retrospective', id: 'retrospective' }, { label: 'Test', id: 'test' }, @@ -648,11 +664,18 @@ Return ONLY the title - no explanations.`, title: 'State', type: 'dropdown', options: [ + { label: 'No change', id: '' }, { label: 'Active', id: 'active' }, { label: 'Draft', id: 'draft' }, { label: 'Disabled', id: 'disabled' }, ], - value: () => 'active', + value: (params) => + params?.operation === 'incidentio_workflows_create' + ? 'active' + : params?.operation === 'incidentio_workflows_update' + ? '' + : undefined, + dependsOn: ['operation'], condition: { field: 'operation', value: ['incidentio_workflows_create', 'incidentio_workflows_update'], @@ -823,6 +846,7 @@ Return ONLY the title - no explanations.`, title: 'Timezone', type: 'dropdown', options: [ + { label: 'No change', id: '' }, { label: 'America/New_York (Eastern)', id: 'America/New_York' }, { label: 'America/Chicago (Central)', id: 'America/Chicago' }, { label: 'America/Denver (Mountain)', id: 'America/Denver' }, @@ -847,12 +871,17 @@ Return ONLY the title - no explanations.`, { label: 'Pacific/Auckland (New Zealand)', id: 'Pacific/Auckland' }, { label: 'UTC', id: 'UTC' }, ], - value: () => 'UTC', + value: (params) => + params?.operation === 'incidentio_schedules_create' + ? 'UTC' + : params?.operation === 'incidentio_schedules_update' + ? '' + : undefined, + dependsOn: ['operation'], condition: { field: 'operation', value: ['incidentio_schedules_create', 'incidentio_schedules_update'], }, - required: { field: 'operation', value: 'incidentio_schedules_create' }, }, { id: 'config', @@ -872,7 +901,7 @@ The configuration must follow this structure: "name": "Rotation Name", "users": [{"id": "user_id"}], "handover_start_at": "ISO8601 timestamp", - "handovers": [{"interval": number, "interval_type": "daily|weekly|monthly"}] + "handovers": [{"interval": number, "interval_type": "hourly|daily|weekly"}] } ] } @@ -1132,7 +1161,7 @@ Return ONLY the timestamp string - no explanations, no quotes, no extra text.`, title: 'Path Configuration', type: 'long-input', placeholder: - 'JSON array of escalation levels: [{"targets": [{"id": "...", "type": "...", "urgency": "..."}], "time_to_ack_seconds": 300}]', + 'JSON array of nodes: [{"id": "lvl1", "type": "level", "level": {"targets": [{"id": "", "type": "schedule", "schedule_mode": "currently_on_call", "urgency": "high"}], "time_to_ack_seconds": 300}}]', condition: { field: 'operation', value: ['incidentio_escalation_paths_create', 'incidentio_escalation_paths_update'], @@ -1140,16 +1169,22 @@ Return ONLY the timestamp string - no explanations, no quotes, no extra text.`, required: true, wandConfig: { enabled: true, - prompt: `Generate a JSON array for escalation path configuration based on the user's description. -The array must follow this structure: + prompt: `Generate a JSON array of incident.io escalation path nodes based on the user's description. +Each node needs a unique "id" and a "type". A "level" node pages its targets and waits for an acknowledgment: [ { - "targets": [{"id": "target_id", "type": "user|schedule", "urgency": "high|low"}], - "time_to_ack_seconds": number + "id": "lvl1", + "type": "level", + "level": { + "targets": [ + {"id": "schedule_or_user_id", "type": "schedule|user", "schedule_mode": "currently_on_call", "urgency": "high|low"} + ], + "time_to_ack_seconds": number + } } ] -Each level represents an escalation step with acknowledgment timeout. +Use one level node per escalation step, in order. Only set "schedule_mode" on schedule targets. Return ONLY the JSON array - no explanations or markdown formatting.`, placeholder: @@ -1162,7 +1197,7 @@ Return ONLY the JSON array - no explanations or markdown formatting.`, title: 'Working Hours', type: 'long-input', placeholder: - 'Optional JSON array: [{"weekday": "monday", "start_time": "09:00", "end_time": "17:00"}]', + 'Optional JSON array: [{"id": "wh", "name": "Business hours", "timezone": "Europe/London", "weekday_intervals": [{"weekday": "monday", "start_time": "09:00", "end_time": "17:00"}]}]', condition: { field: 'operation', value: ['incidentio_escalation_paths_create', 'incidentio_escalation_paths_update'], @@ -1172,7 +1207,14 @@ Return ONLY the JSON array - no explanations or markdown formatting.`, prompt: `Generate a JSON array for working hours configuration based on the user's description. The array must follow this structure: [ - {"weekday": "monday|tuesday|wednesday|thursday|friday|saturday|sunday", "start_time": "HH:MM", "end_time": "HH:MM"} + { + "id": "unique_id", + "name": "Business hours", + "timezone": "IANA timezone, e.g. Europe/London", + "weekday_intervals": [ + {"weekday": "monday|tuesday|wednesday|thursday|friday|saturday|sunday", "start_time": "HH:MM", "end_time": "HH:MM"} + ] + } ] Return ONLY the JSON array - no explanations or markdown formatting.`, @@ -1185,14 +1227,16 @@ Return ONLY the JSON array - no explanations or markdown formatting.`, title: 'Alert Status', type: 'dropdown', options: [ + { label: 'Any', id: '' }, { label: 'Firing', id: 'firing' }, { label: 'Resolved', id: 'resolved' }, ], + value: (params) => (params?.operation === 'incidentio_alert_events_create' ? 'firing' : ''), + dependsOn: ['operation'], condition: { field: 'operation', value: ['incidentio_alerts_list', 'incidentio_alert_events_create'], }, - required: { field: 'operation', value: 'incidentio_alert_events_create' }, }, { id: 'status_operator', @@ -1740,7 +1784,8 @@ Return ONLY the description - no explanations.`, return 'incidentio_incidents_list' } }, - params: (params) => { + params: (params, context) => { + const operation = mapperOperation(params, context) const result: Record = {} const toBoolean = (value: unknown) => value === true || value === 'true' if (params.page_size) result.page_size = Number(params.page_size) @@ -1756,38 +1801,57 @@ Return ONLY the description - no explanations.`, if (params.skip_step_upgrades !== undefined) { result.skip_step_upgrades = toBoolean(params.skip_step_upgrades) } - if (params.operation === 'incidentio_users_list') { + // Status dropdowns are always seeded, so on a tool call the model's `status` must win. + const pickStatus = (dropdownValue: unknown) => { + const status = toolCallArg(context, params.status) || dropdownValue + if (status) result.status = status + } + if (operation === 'incidentio_users_list') { if (params.user_email) result.email = params.user_email if (params.user_slack_id) result.slack_user_id = params.user_slack_id } - if (params.operation === 'incidentio_alerts_list') { - if (params.alert_status) result.status = params.alert_status + if (operation === 'incidentio_alerts_list') { + // A tool row can't show this dropdown, so its stored value is only the seeded default. + pickStatus(isToolCall(context) ? undefined : params.alert_status) result.has_notes = toTriState(params.has_notes) result.include_maintenance_window = toTriState(params.include_maintenance_window) } - if (params.operation === 'incidentio_alert_events_create') { - if (params.alert_status) result.status = params.alert_status + // The editor seeds these dropdowns without an operation, so a new create block holds ''. + if (operation === 'incidentio_alert_events_create') { + pickStatus(params.alert_status || 'firing') if (params.alert_title) result.title = params.alert_title if (params.alert_description) result.description = params.alert_description } + if (operation === 'incidentio_schedules_create' && !params.timezone) { + result.timezone = 'UTC' + } + // On a tool call a missing state keeps the tool's 'draft' default, so an agent never + // creates a live workflow by omission. + if (operation === 'incidentio_workflows_create' && !params.state && !isToolCall(context)) { + result.state = 'active' + } + if (operation === 'incidentio_escalations_create') { + if (params.escalation_description) result.description = params.escalation_description + if (params.escalation_incident_id) result.incident_id = params.escalation_incident_id + } if ( - params.operation === 'incidentio_follow_ups_create' || - params.operation === 'incidentio_follow_ups_update' + operation === 'incidentio_follow_ups_create' || + operation === 'incidentio_follow_ups_update' ) { if (params.follow_up_title) result.title = params.follow_up_title if (params.follow_up_description) result.description = params.follow_up_description } if ( - params.operation === 'incidentio_actions_create' || - params.operation === 'incidentio_actions_update' + operation === 'incidentio_actions_create' || + operation === 'incidentio_actions_update' ) { if (params.action_description) result.description = params.action_description } if ( - params.operation === 'incidentio_follow_ups_update' || - params.operation === 'incidentio_actions_update' + operation === 'incidentio_follow_ups_update' || + operation === 'incidentio_actions_update' ) { - if (params.item_status) result.status = params.item_status + pickStatus(params.item_status) } return result }, @@ -1890,6 +1954,8 @@ Return ONLY the description - no explanations.`, follow_up_priority_option_id: { type: 'string', description: 'Follow-up priority option ID' }, external_issue_reference_id: { type: 'string', description: 'External issue reference ID' }, labels: { type: 'string', description: 'Comma-separated follow-up labels' }, + escalation_description: { type: 'string', description: 'Escalation description' }, + escalation_incident_id: { type: 'string', description: 'Incident to link an escalation to' }, }, outputs: { incidents: { type: 'json', description: 'List of incidents' }, diff --git a/apps/sim/blocks/blocks/linear.test.ts b/apps/sim/blocks/blocks/linear.test.ts new file mode 100644 index 00000000000..69358e9834f --- /dev/null +++ b/apps/sim/blocks/blocks/linear.test.ts @@ -0,0 +1,138 @@ +import { describe, expect, it } from 'vitest' +import { LinearV2Block } from '@/blocks/blocks/linear' +import type { BlockToolParamsContext } from '@/blocks/types' + +function mapParams(params: Record, context?: BlockToolParamsContext) { + const mapper = LinearV2Block.tools.config?.params + if (!mapper) throw new Error('Linear block has no params mapper') + return mapper(params, context) +} + +/** What the tool receives: the mapper's result spread over the params it was given. */ +function sent(params: Record, context?: BlockToolParamsContext) { + return { ...params, ...mapParams(params, context) } +} + +describe('Linear agent tool calls', () => { + it('uses the Customer ID filled in the tool row', () => { + const toolParams = sent({ customerIdTarget: 'cust-1' }, { operation: 'linear_get_customer' }) + expect(toolParams.customerId).toBe('cust-1') + }) + + it('keeps the model customer fields when no block field is filled', () => { + const toolParams = sent( + { name: 'Acme', domains: ['acme.com'], revenue: 5000, size: 40 }, + { operation: 'linear_create_customer' } + ) + expect(toolParams).toMatchObject({ + name: 'Acme', + domains: ['acme.com'], + revenue: 5000, + size: 40, + }) + }) + + it('keeps the model project and label ids for Add Label to Project', () => { + const toolParams = sent( + { projectId: 'proj-1', labelId: 'plabel-1' }, + { operation: 'linear_add_label_to_project' } + ) + expect(toolParams).toMatchObject({ projectId: 'proj-1', labelId: 'plabel-1' }) + }) + + it('keeps the model attachment title on Update Attachment', () => { + const toolParams = sent( + { attachmentId: 'att-1', title: 'Spec' }, + { operation: 'linear_update_attachment' } + ) + expect(toolParams.title).toBe('Spec') + }) + + it('keeps a model priority of 0 on Update Issue', () => { + const toolParams = sent({ issueId: 'ENG-1', priority: 0 }, { operation: 'linear_update_issue' }) + expect(toolParams.priority).toBe(0) + }) + + it('keeps the model readAt when the tool row leaves Mark as Read unset', () => { + const readAt = '2026-11-01T00:00:00.000Z' + const toolParams = sent( + { notificationId: 'n1', readAt }, + { operation: 'linear_update_notification' } + ) + expect(toolParams.readAt).toBe(readAt) + }) + + it('keeps the model includeArchived on List Customers', () => { + const toolParams = sent({ includeArchived: true }, { operation: 'linear_list_customers' }) + expect(toolParams.includeArchived).toBe(true) + }) +}) + +describe('Linear canvas requests', () => { + it('sends Blocked by as the related issue blocking this one', () => { + const inputs = { + operation: 'linear_create_issue_relation', + issueId: 'ENG-1', + relatedIssueId: 'ENG-2', + relationType: 'blocked', + } + expect(sent(inputs)).toMatchObject({ + issueId: 'ENG-2', + relatedIssueId: 'ENG-1', + type: 'blocks', + }) + }) + + it('sends the customer details filled on Create Customer', () => { + const inputs = { + operation: 'linear_create_customer', + customerName: 'Acme', + customerExternalIds: 'crm-1, crm-2', + customerOwnerId: ' user-1 ', + customerRevenue: '100000', + customerSize: '25', + customerLogoUrl: 'https://acme.test/logo.png', + } + expect(sent(inputs)).toMatchObject({ + name: 'Acme', + externalIds: ['crm-1', 'crm-2'], + ownerId: 'user-1', + revenue: 100000, + size: 25, + logoUrl: 'https://acme.test/logo.png', + }) + }) + + it('leaves the urgency unchanged when Update Customer Request picks No change', () => { + const inputs = { + operation: 'linear_update_customer_request', + customerNeedId: 'need-1', + customerRequestPriority: '', + } + expect(sent(inputs).priority).toBeUndefined() + }) + + it('sends Label IDs typed as a comma-separated list as an array', () => { + const inputs = { operation: 'linear_read_issues', labelIds: 'lbl-1, lbl-2' } + expect(sent(inputs).labelIds).toEqual(['lbl-1', 'lbl-2']) + }) + + it('moves an updated project to the chosen project status', () => { + const inputs = { + operation: 'linear_update_project', + projectId: 'proj-1', + projectUpdateStatusId: ' status-1 ', + } + expect(sent(inputs).statusId).toBe('status-1') + }) + + it('does not move an updated project to a Status ID left over from a project status operation', () => { + const inputs = { + operation: 'linear_update_project', + projectId: 'proj-1', + name: 'Renamed', + projectStatusId: 'ps-old', + } + expect(sent(inputs).statusId).toBeUndefined() + }) +}) diff --git a/apps/sim/blocks/blocks/linear.ts b/apps/sim/blocks/blocks/linear.ts index f4ba420bb27..731b5380c2a 100644 --- a/apps/sim/blocks/blocks/linear.ts +++ b/apps/sim/blocks/blocks/linear.ts @@ -2,7 +2,13 @@ import { DevinIcon, LinearIcon } from '@/components/icons' import { getScopesForService } from '@/lib/oauth/utils' import type { BlockConfig, BlockMeta } from '@/blocks/types' import { AuthMode, IntegrationType } from '@/blocks/types' -import { normalizeFileInput } from '@/blocks/utils' +import { + isToolCall, + mapperOperation, + normalizeFileInput, + parseOptionalBooleanInput, + toolCallArg, +} from '@/blocks/utils' import { getTrigger } from '@/triggers' /** @@ -13,6 +19,46 @@ import { getTrigger } from '@/triggers' const TEAM_FIELD = ['teamId', 'manualTeamId'] as const const PROJECT_FIELD = ['projectId', 'manualProjectId'] as const +/** True for a value a block field holds when nobody filled it. */ +function isBlank(value: unknown): boolean { + return value === undefined || value === null || (typeof value === 'string' && !value.trim()) +} + +/** A trimmed string from a block string or a model number; blank is `undefined`. */ +function trimmedText(value: unknown): string | undefined { + if (typeof value === 'string') return value.trim() || undefined + if (typeof value === 'number' && Number.isFinite(value)) return String(value) + return undefined +} + +/** A number from a block string or a model number; blank is `undefined`, so `0` survives. */ +function optionalNumber(value: unknown): number | undefined { + if (typeof value === 'number') return Number.isFinite(value) ? value : undefined + if (typeof value === 'string' && value.trim()) return Number(value) + return undefined +} + +/** Trimmed ids from a model array, a JSON array string, or a comma-separated block string. */ +function idList(value: unknown): string[] | undefined { + let items: unknown[] + if (Array.isArray(value)) { + items = value + } else if (typeof value === 'string' && value.trim()) { + const text = value.trim() + items = text.split(',') + if (text.startsWith('[')) { + try { + const parsed: unknown = JSON.parse(text) + if (Array.isArray(parsed)) items = parsed + } catch {} + } + } else { + return undefined + } + const ids = items.map(trimmedText).filter((id): id is string => id !== undefined) + return ids.length > 0 ? ids : undefined +} + export const LinearBlock: BlockConfig = { type: 'linear', name: 'Linear (Legacy)', @@ -318,7 +364,7 @@ export const LinearBlock: BlockConfig = { { text: 'Update project status', field: 'projectStatusId', core: true }, ], linear_delete_project_status: [ - { text: 'Delete project status', field: 'projectStatusId', core: true }, + { text: 'Archive project status', field: 'projectStatusId', core: true }, ], linear_list_project_statuses: [ 'List project statuses', @@ -364,7 +410,7 @@ export const LinearBlock: BlockConfig = { { label: 'Update Workflow State', id: 'linear_update_workflow_state' }, { label: 'List Cycles', id: 'linear_list_cycles' }, { label: 'Get Cycle', id: 'linear_get_cycle' }, - { label: 'Create Cycle', id: 'linear_create_cycle' }, + { label: 'Create Cycle', id: 'linear_create_cycle', hidden: true }, { label: 'Get Active Cycle', id: 'linear_get_active_cycle' }, { label: 'Create Attachment', id: 'linear_create_attachment' }, { label: 'List Attachments', id: 'linear_list_attachments' }, @@ -409,7 +455,7 @@ export const LinearBlock: BlockConfig = { { label: 'List Project Milestones', id: 'linear_list_project_milestones' }, { label: 'Create Project Status', id: 'linear_create_project_status' }, { label: 'Update Project Status', id: 'linear_update_project_status' }, - { label: 'Delete Project Status', id: 'linear_delete_project_status' }, + { label: 'Archive Project Status', id: 'linear_delete_project_status' }, { label: 'List Project Statuses', id: 'linear_list_project_statuses' }, ], value: () => 'linear_read_issues', @@ -610,7 +656,7 @@ export const LinearBlock: BlockConfig = { title: 'Title', type: 'short-input', placeholder: 'Enter issue title', - required: true, + required: { field: 'operation', value: 'linear_create_issue' }, condition: { field: 'operation', value: ['linear_create_issue', 'linear_update_issue'], @@ -733,6 +779,7 @@ Return ONLY the comment text - no explanations.`, title: 'Color (hex)', type: 'short-input', placeholder: '#5E6AD2', + required: { field: 'operation', value: 'linear_create_workflow_state' }, condition: { field: 'operation', value: [ @@ -767,14 +814,20 @@ Return ONLY the comment text - no explanations.`, id: 'priority', title: 'Priority', type: 'dropdown', - options: [ + options: (params) => [ + { + label: params?.values.operation === 'linear_update_issue' ? 'No change' : 'Default', + id: '', + }, { label: 'No Priority', id: '0' }, { label: 'Urgent', id: '1' }, { label: 'High', id: '2' }, { label: 'Normal', id: '3' }, { label: 'Low', id: '4' }, ], - value: () => '0', + value: (params) => + params?.operation === 'linear_update_issue' ? '' : params?.operation ? '0' : undefined, + dependsOn: ['operation'], condition: { field: 'operation', value: ['linear_create_issue', 'linear_update_issue', 'linear_create_project'], @@ -819,7 +872,13 @@ Return ONLY the search query - no explanations.`, type: 'switch', condition: { field: 'operation', - value: ['linear_read_issues', 'linear_search_issues', 'linear_list_projects'], + value: [ + 'linear_read_issues', + 'linear_search_issues', + 'linear_list_projects', + 'linear_list_customers', + 'linear_list_customer_requests', + ], }, }, { @@ -1216,7 +1275,7 @@ Return ONLY the date string in YYYY-MM-DD format - no explanations, no quotes, n title: 'Customer Name', type: 'short-input', placeholder: 'Enter customer name', - required: true, + required: { field: 'operation', value: 'linear_create_customer' }, condition: { field: 'operation', value: ['linear_create_customer', 'linear_update_customer'], @@ -1330,11 +1389,22 @@ Return ONLY the description text - no explanations.`, id: 'customerRequestPriority', title: 'Urgency', type: 'dropdown', - options: [ + options: (params) => [ + { + label: + params?.values.operation === 'linear_update_customer_request' ? 'No change' : 'Default', + id: '', + }, { label: 'Not Important (0)', id: '0' }, { label: 'Important (1)', id: '1' }, ], - value: () => '0', + value: (params) => + params?.operation === 'linear_update_customer_request' + ? '' + : params?.operation + ? '0' + : undefined, + dependsOn: ['operation'], condition: { field: 'operation', value: ['linear_create_customer_request', 'linear_update_customer_request'], @@ -1345,6 +1415,7 @@ Return ONLY the description text - no explanations.`, title: 'Link to Issue', type: 'short-input', placeholder: 'Enter issue ID to link', + required: { field: 'operation', value: 'linear_create_customer_request' }, condition: { field: 'operation', value: ['linear_create_customer_request', 'linear_update_customer_request'], @@ -1399,7 +1470,14 @@ Return ONLY the description text - no explanations.`, title: 'Status Color', type: 'short-input', placeholder: 'Enter hex color (e.g., #FF0000)', - required: true, + required: { + field: 'operation', + value: [ + 'linear_create_customer_status', + 'linear_create_customer_tier', + 'linear_create_project_status', + ], + }, condition: { field: 'operation', value: [ @@ -1578,7 +1656,7 @@ Return ONLY the date string in YYYY-MM-DD format - no explanations, no quotes, n { label: 'Backlog', id: 'backlog' }, { label: 'Planned', id: 'planned' }, { label: 'Started', id: 'started' }, - { label: 'Paused', id: 'paused' }, + { label: 'Paused (deprecated)', id: 'paused', hidden: true }, { label: 'Completed', id: 'completed' }, { label: 'Canceled', id: 'canceled' }, ], @@ -1611,6 +1689,16 @@ Return ONLY the date string in YYYY-MM-DD format - no explanations, no quotes, n value: ['linear_update_project_status', 'linear_delete_project_status'], }, }, + { + id: 'projectUpdateStatusId', + title: 'Status ID', + type: 'short-input', + placeholder: 'Enter project status ID to move the project to', + condition: { + field: 'operation', + value: 'linear_update_project', + }, + }, { id: 'projectStatusIndefinite', title: 'Can Stay Indefinitely', @@ -1742,22 +1830,41 @@ Return ONLY the date string in YYYY-MM-DD format - no explanations, no quotes, n tool: (params) => { return params.operation || 'linear_read_issues' }, - params: (params) => { + params: (params, context) => { + const operation = mapperOperation(params, context) // Use canonical param IDs (raw subBlock IDs are deleted after serialization) const effectiveTeamId = params.teamId ? String(params.teamId).trim() : '' const effectiveProjectId = params.projectId ? String(params.projectId).trim() : '' + /** + * The block-only field when it is filled. On a tool call the model fills the tool's own + * param instead, so a blank block field falls back to it; the canvas keeps the field as is. + */ + const fieldOr = (blockValue: unknown, toolValue: unknown): unknown => + isBlank(blockValue) && isToolCall(context) ? toolValue : blockValue + const baseParams: Record = { oauthCredential: params.oauthCredential, } - switch (params.operation) { + const customerDetails = () => ({ + domains: idList(params.customerDomains) ?? toolCallArg(context, idList(params.domains)), + externalIds: + idList(params.customerExternalIds) ?? toolCallArg(context, idList(params.externalIds)), + logoUrl: trimmedText(fieldOr(params.customerLogoUrl, params.logoUrl)), + ownerId: trimmedText(fieldOr(params.customerOwnerId, params.ownerId)), + revenue: optionalNumber(fieldOr(params.customerRevenue, params.revenue)), + size: optionalNumber(fieldOr(params.customerSize, params.size)), + }) + + switch (operation) { case 'linear_read_issues': return { ...baseParams, teamId: effectiveTeamId || undefined, projectId: effectiveProjectId || undefined, includeArchived: params.includeArchived, + labelIds: idList(params.labelIds), first: params.first ? Number(params.first) : undefined, after: params.after?.trim() || undefined, } @@ -1786,8 +1893,8 @@ Return ONLY the date string in YYYY-MM-DD format - no explanations, no quotes, n description: params.description, stateId: params.stateId, assigneeId: params.assigneeId, - priority: params.priority ? Number(params.priority) : undefined, - estimate: params.estimate ? Number(params.estimate) : undefined, + priority: optionalNumber(params.priority), + estimate: optionalNumber(params.estimate), } case 'linear_update_issue': @@ -1801,8 +1908,8 @@ Return ONLY the date string in YYYY-MM-DD format - no explanations, no quotes, n description: params.description, stateId: params.stateId, assigneeId: params.assigneeId, - priority: params.priority ? Number(params.priority) : undefined, - estimate: params.estimate ? Number(params.estimate) : undefined, + priority: optionalNumber(params.priority), + estimate: optionalNumber(params.estimate), } case 'linear_archive_issue': @@ -1910,7 +2017,7 @@ Return ONLY the date string in YYYY-MM-DD format - no explanations, no quotes, n leadId: params.leadId, startDate: params.startDate, targetDate: params.targetDate, - priority: params.priority ? Number(params.priority) : undefined, + priority: optionalNumber(params.priority), } case 'linear_update_project': @@ -1922,7 +2029,8 @@ Return ONLY the date string in YYYY-MM-DD format - no explanations, no quotes, n projectId: effectiveProjectId, name: params.name, description: params.description, - state: params.projectState, + state: fieldOr(params.projectState, params.state), + statusId: trimmedText(fieldOr(params.projectUpdateStatusId, params.statusId)), leadId: params.leadId, targetDate: params.targetDate, } @@ -1994,17 +2102,19 @@ Return ONLY the date string in YYYY-MM-DD format - no explanations, no quotes, n after: params.after?.trim() || undefined, } - case 'linear_create_workflow_state': - if (!effectiveTeamId || !params.name?.trim() || !params.workflowType) { + case 'linear_create_workflow_state': { + const workflowType = fieldOr(params.workflowType, params.type) + if (!effectiveTeamId || !params.name?.trim() || !workflowType) { throw new Error('Team ID, name, and workflow type are required.') } return { ...baseParams, teamId: effectiveTeamId, name: params.name.trim(), - type: params.workflowType, + type: workflowType, color: params.color?.trim() || undefined, } + } case 'linear_update_workflow_state': if (!params.stateId?.trim()) { @@ -2034,17 +2144,20 @@ Return ONLY the date string in YYYY-MM-DD format - no explanations, no quotes, n cycleId: params.cycleId.trim(), } - case 'linear_create_cycle': - if (!effectiveTeamId || !params.startDate?.trim() || !params.endDate?.trim()) { + case 'linear_create_cycle': { + const startsAt = trimmedText(fieldOr(params.startDate, params.startsAt)) + const endsAt = trimmedText(fieldOr(params.endDate, params.endsAt)) + if (!effectiveTeamId || !startsAt || !endsAt) { throw new Error('Team ID, start date, and end date are required.') } return { ...baseParams, teamId: effectiveTeamId, name: params.name?.trim() || undefined, - startsAt: params.startDate.trim(), - endsAt: params.endDate.trim(), + startsAt, + endsAt, } + } case 'linear_get_active_cycle': if (!effectiveTeamId) { @@ -2067,7 +2180,8 @@ Return ONLY the date string in YYYY-MM-DD format - no explanations, no quotes, n const attachmentUrl = params.url?.trim() || (attachmentFile ? (attachmentFile as { url?: string }).url : undefined) - if (!attachmentUrl) { + // A tool call hands over a file reference the executor resolves to a URL later. + if (!attachmentUrl && !(isToolCall(context) && attachmentFile)) { throw new Error('URL or file is required.') } return { @@ -2075,7 +2189,7 @@ Return ONLY the date string in YYYY-MM-DD format - no explanations, no quotes, n issueId: params.issueId.trim(), url: attachmentUrl, file: attachmentFile, - title: params.attachmentTitle, + title: fieldOr(params.attachmentTitle, params.title), } } @@ -2097,7 +2211,7 @@ Return ONLY the date string in YYYY-MM-DD format - no explanations, no quotes, n return { ...baseParams, attachmentId: params.attachmentId.trim(), - title: params.attachmentTitle, + title: fieldOr(params.attachmentTitle, params.title), } case 'linear_delete_attachment': @@ -2109,16 +2223,29 @@ Return ONLY the date string in YYYY-MM-DD format - no explanations, no quotes, n attachmentId: params.attachmentId.trim(), } - case 'linear_create_issue_relation': - if (!params.issueId?.trim() || !params.relatedIssueId?.trim() || !params.relationType) { + case 'linear_create_issue_relation': { + const relationType = fieldOr(params.relationType, params.type) + if (!params.issueId?.trim() || !params.relatedIssueId?.trim() || !relationType) { throw new Error('Issue ID, related issue ID, and relation type are required.') } + const issueId = params.issueId.trim() + const relatedIssueId = params.relatedIssueId.trim() + // Linear has no "blocked by" type: A blocked by B is stored as B blocks A. + if (relationType === 'blocked') { + return { + ...baseParams, + issueId: relatedIssueId, + relatedIssueId: issueId, + type: 'blocks', + } + } return { ...baseParams, - issueId: params.issueId.trim(), - relatedIssueId: params.relatedIssueId.trim(), - type: params.relationType, + issueId, + relatedIssueId, + type: relationType, } + } case 'linear_list_issue_relations': if (!params.issueId?.trim()) { @@ -2142,6 +2269,8 @@ Return ONLY the date string in YYYY-MM-DD format - no explanations, no quotes, n case 'linear_create_favorite': if (!params.favoriteTargetId?.trim() || !params.favoriteType) { + // A tool call names the target with the tool's own issueId/projectId/cycleId/labelId. + if (isToolCall(context)) return baseParams throw new Error('Target ID and favorite type are required.') } return { @@ -2190,50 +2319,55 @@ Return ONLY the date string in YYYY-MM-DD format - no explanations, no quotes, n if (!params.notificationId?.trim()) { throw new Error('Notification ID is required.') } + // On a tool call with no Mark as Read setting, the model's readAt decides. + if (isToolCall(context) && isBlank(params.markAsRead)) { + return { ...baseParams, notificationId: params.notificationId.trim() } + } return { ...baseParams, notificationId: params.notificationId.trim(), readAt: params.markAsRead ? new Date().toISOString() : null, } - case 'linear_create_customer': - if (!params.customerName?.trim()) { + case 'linear_create_customer': { + const name = trimmedText(fieldOr(params.customerName, params.name)) + if (!name) { throw new Error('Customer name is required.') } return { ...baseParams, - name: params.customerName.trim(), - domains: params.customerDomains - ? params.customerDomains - .split(',') - .map((d: string) => d.trim()) - .filter(Boolean) - : undefined, + name, + ...customerDetails(), } + } case 'linear_list_customers': return { ...baseParams, first: params.first ? Number(params.first) : undefined, after: params.after?.trim() || undefined, - includeArchived: false, + includeArchived: params.includeArchived ?? false, } - case 'linear_create_customer_request': + case 'linear_create_customer_request': { + const issueId = trimmedText(fieldOr(params.linkedIssueId, params.issueId)) if (!params.customerId?.trim()) { throw new Error('Customer ID is required.') } + if (!issueId) { + throw new Error( + 'Link to Issue is required: Linear needs an issue for every customer request created through its API.' + ) + } return { ...baseParams, customerId: params.customerId.trim(), - body: params.requestBody?.trim(), + body: trimmedText(fieldOr(params.requestBody, params.body)), priority: - params.customerRequestPriority !== undefined - ? Number(params.customerRequestPriority) - : 0, - issueId: params.linkedIssueId?.trim(), - projectId: effectiveProjectId || undefined, + optionalNumber(fieldOr(params.customerRequestPriority, params.priority)) ?? 0, + issueId, } + } case 'linear_update_customer_request': if (!params.customerNeedId?.trim()) { @@ -2243,13 +2377,9 @@ Return ONLY the date string in YYYY-MM-DD format - no explanations, no quotes, n ...baseParams, customerNeedId: params.customerNeedId.trim(), customerId: params.customerId?.trim(), - body: params.requestBody?.trim(), - priority: - params.customerRequestPriority !== undefined - ? Number(params.customerRequestPriority) - : undefined, - issueId: params.linkedIssueId?.trim(), - projectId: effectiveProjectId || undefined, + body: trimmedText(fieldOr(params.requestBody, params.body)), + priority: optionalNumber(fieldOr(params.customerRequestPriority, params.priority)), + issueId: trimmedText(fieldOr(params.linkedIssueId, params.issueId)), } case 'linear_list_customer_requests': @@ -2257,48 +2387,35 @@ Return ONLY the date string in YYYY-MM-DD format - no explanations, no quotes, n ...baseParams, first: params.first ? Number(params.first) : undefined, after: params.after?.trim() || undefined, - includeArchived: false, + includeArchived: params.includeArchived ?? false, } case 'linear_get_customer': - if (!params.customerIdTarget?.trim()) { + case 'linear_delete_customer': { + const customerId = trimmedText(fieldOr(params.customerIdTarget, params.customerId)) + if (!customerId) { throw new Error('Customer ID is required.') } return { ...baseParams, - customerId: params.customerIdTarget.trim(), + customerId, } + } - case 'linear_update_customer': - if (!params.customerIdTarget?.trim()) { + case 'linear_update_customer': { + const customerId = trimmedText(fieldOr(params.customerIdTarget, params.customerId)) + if (!customerId) { throw new Error('Customer ID is required.') } return { ...baseParams, - customerId: params.customerIdTarget.trim(), - name: params.customerName?.trim() || undefined, - domains: params.customerDomains?.trim() - ? params.customerDomains.split(',').map((d: string) => d.trim()) - : undefined, - externalIds: params.customerExternalIds?.trim() - ? params.customerExternalIds.split(',').map((id: string) => id.trim()) - : undefined, - logoUrl: params.customerLogoUrl?.trim() || undefined, - ownerId: params.customerOwnerId?.trim() || undefined, - revenue: params.customerRevenue ? Number(params.customerRevenue) : undefined, - size: params.customerSize ? Number(params.customerSize) : undefined, + customerId, + name: trimmedText(fieldOr(params.customerName, params.name)), + ...customerDetails(), statusId: params.statusId?.trim() || undefined, tierId: params.tierId?.trim() || undefined, } - - case 'linear_delete_customer': - if (!params.customerIdTarget?.trim()) { - throw new Error('Customer ID is required.') - } - return { - ...baseParams, - customerId: params.customerIdTarget.trim(), - } + } case 'linear_merge_customers': if (!params.sourceCustomerId?.trim() || !params.targetCustomerId?.trim()) { @@ -2310,17 +2427,20 @@ Return ONLY the date string in YYYY-MM-DD format - no explanations, no quotes, n targetCustomerId: params.targetCustomerId.trim(), } - case 'linear_create_customer_status': - if (!params.statusName?.trim() || !params.statusColor?.trim()) { + case 'linear_create_customer_status': { + const name = trimmedText(fieldOr(params.statusName, params.name)) + const color = trimmedText(fieldOr(params.statusColor, params.color)) + if (!name || !color) { throw new Error('Status name and color are required.') } return { ...baseParams, - name: params.statusName.trim(), - color: params.statusColor.trim(), - description: params.statusDescription?.trim() || undefined, - displayName: params.statusDisplayName?.trim() || undefined, + name, + color, + description: trimmedText(fieldOr(params.statusDescription, params.description)), + displayName: trimmedText(fieldOr(params.statusDisplayName, params.displayName)), } + } case 'linear_update_customer_status': if (!params.statusId?.trim()) { @@ -2329,10 +2449,10 @@ Return ONLY the date string in YYYY-MM-DD format - no explanations, no quotes, n return { ...baseParams, statusId: params.statusId.trim(), - name: params.statusName?.trim() || undefined, - color: params.statusColor?.trim() || undefined, - description: params.statusDescription?.trim() || undefined, - displayName: params.statusDisplayName?.trim() || undefined, + name: trimmedText(fieldOr(params.statusName, params.name)), + color: trimmedText(fieldOr(params.statusColor, params.color)), + description: trimmedText(fieldOr(params.statusDescription, params.description)), + displayName: trimmedText(fieldOr(params.statusDisplayName, params.displayName)), } case 'linear_delete_customer_status': @@ -2351,17 +2471,20 @@ Return ONLY the date string in YYYY-MM-DD format - no explanations, no quotes, n after: params.after?.trim() || undefined, } - case 'linear_create_customer_tier': - if (!params.tierName?.trim() || !params.statusColor?.trim()) { + case 'linear_create_customer_tier': { + const name = trimmedText(fieldOr(params.tierName, params.name)) + const color = trimmedText(fieldOr(params.statusColor, params.color)) + if (!name || !color) { throw new Error('Tier name and color are required.') } return { ...baseParams, - name: params.tierName.trim(), - displayName: params.tierDisplayName?.trim() || params.tierName.trim(), - color: params.statusColor.trim(), - description: params.tierDescription?.trim() || undefined, + name, + displayName: trimmedText(fieldOr(params.tierDisplayName, params.displayName)) || name, + color, + description: trimmedText(fieldOr(params.tierDescription, params.description)), } + } case 'linear_update_customer_tier': if (!params.tierId?.trim()) { @@ -2370,10 +2493,10 @@ Return ONLY the date string in YYYY-MM-DD format - no explanations, no quotes, n return { ...baseParams, tierId: params.tierId.trim(), - name: params.tierName?.trim() || undefined, - displayName: params.tierDisplayName?.trim() || undefined, - color: params.statusColor?.trim() || undefined, - description: params.tierDescription?.trim() || undefined, + name: trimmedText(fieldOr(params.tierName, params.name)), + displayName: trimmedText(fieldOr(params.tierDisplayName, params.displayName)), + color: trimmedText(fieldOr(params.statusColor, params.color)), + description: trimmedText(fieldOr(params.tierDescription, params.description)), } case 'linear_delete_customer_tier': @@ -2401,39 +2524,47 @@ Return ONLY the date string in YYYY-MM-DD format - no explanations, no quotes, n projectId: effectiveProjectId, } - case 'linear_create_project_label': - if (!params.projectLabelName?.trim()) { + case 'linear_create_project_label': { + const name = trimmedText(fieldOr(params.projectLabelName, params.name)) + if (!name) { throw new Error('Project label name is required.') } return { ...baseParams, - name: params.projectLabelName.trim(), - description: params.projectLabelDescription?.trim() || undefined, - color: params.statusColor?.trim() || undefined, - isGroup: params.projectLabelIsGroup === 'true', - parentId: params.projectLabelParentId?.trim() || undefined, + name, + description: trimmedText(fieldOr(params.projectLabelDescription, params.description)), + color: trimmedText(fieldOr(params.statusColor, params.color)), + isGroup: isBlank(params.projectLabelIsGroup) + ? (parseOptionalBooleanInput(toolCallArg(context, params.isGroup)) ?? false) + : params.projectLabelIsGroup === 'true', + parentId: trimmedText(fieldOr(params.projectLabelParentId, params.parentId)), } + } - case 'linear_update_project_label': - if (!params.projectLabelId?.trim()) { + case 'linear_update_project_label': { + const labelId = trimmedText(fieldOr(params.projectLabelId, params.labelId)) + if (!labelId) { throw new Error('Project label ID is required.') } return { ...baseParams, - labelId: params.projectLabelId.trim(), - name: params.projectLabelName?.trim() || undefined, - description: params.projectLabelDescription?.trim() || undefined, - color: params.statusColor?.trim() || undefined, + labelId, + name: trimmedText(fieldOr(params.projectLabelName, params.name)), + description: trimmedText(fieldOr(params.projectLabelDescription, params.description)), + color: trimmedText(fieldOr(params.statusColor, params.color)), } + } - case 'linear_delete_project_label': - if (!params.projectLabelId?.trim()) { + case 'linear_delete_project_label': { + const labelId = trimmedText(fieldOr(params.projectLabelId, params.labelId)) + if (!labelId) { throw new Error('Project label ID is required.') } return { ...baseParams, - labelId: params.projectLabelId.trim(), + labelId, } + } case 'linear_list_project_labels': return { @@ -2444,36 +2575,33 @@ Return ONLY the date string in YYYY-MM-DD format - no explanations, no quotes, n } case 'linear_add_label_to_project': - if (!params.projectIdForMilestone?.trim() || !params.projectLabelId?.trim()) { - throw new Error('Project ID and label ID are required.') - } - return { - ...baseParams, - projectId: params.projectIdForMilestone.trim(), - labelId: params.projectLabelId.trim(), - } - - case 'linear_remove_label_from_project': - if (!params.projectIdForMilestone?.trim() || !params.projectLabelId?.trim()) { + case 'linear_remove_label_from_project': { + const projectId = trimmedText(fieldOr(params.projectIdForMilestone, params.projectId)) + const labelId = trimmedText(fieldOr(params.projectLabelId, params.labelId)) + if (!projectId || !labelId) { throw new Error('Project ID and label ID are required.') } return { ...baseParams, - projectId: params.projectIdForMilestone.trim(), - labelId: params.projectLabelId.trim(), + projectId, + labelId, } + } - case 'linear_create_project_milestone': - if (!params.projectIdForMilestone?.trim() || !params.milestoneName?.trim()) { + case 'linear_create_project_milestone': { + const projectId = trimmedText(fieldOr(params.projectIdForMilestone, params.projectId)) + const name = trimmedText(fieldOr(params.milestoneName, params.name)) + if (!projectId || !name) { throw new Error('Project ID and milestone name are required.') } return { ...baseParams, - projectId: params.projectIdForMilestone.trim(), - name: params.milestoneName.trim(), - description: params.milestoneDescription?.trim() || undefined, - targetDate: params.milestoneTargetDate?.trim() || undefined, + projectId, + name, + description: trimmedText(fieldOr(params.milestoneDescription, params.description)), + targetDate: trimmedText(fieldOr(params.milestoneTargetDate, params.targetDate)), } + } case 'linear_update_project_milestone': if (!params.milestoneId?.trim()) { @@ -2482,9 +2610,9 @@ Return ONLY the date string in YYYY-MM-DD format - no explanations, no quotes, n return { ...baseParams, milestoneId: params.milestoneId.trim(), - name: params.milestoneName?.trim() || undefined, - description: params.milestoneDescription?.trim() || undefined, - targetDate: params.milestoneTargetDate?.trim() || undefined, + name: trimmedText(fieldOr(params.milestoneName, params.name)), + description: trimmedText(fieldOr(params.milestoneDescription, params.description)), + targetDate: trimmedText(fieldOr(params.milestoneTargetDate, params.targetDate)), } case 'linear_delete_project_milestone': @@ -2496,59 +2624,77 @@ Return ONLY the date string in YYYY-MM-DD format - no explanations, no quotes, n milestoneId: params.milestoneId.trim(), } - case 'linear_list_project_milestones': - if (!params.projectIdForMilestone?.trim()) { + case 'linear_list_project_milestones': { + const projectId = trimmedText(fieldOr(params.projectIdForMilestone, params.projectId)) + if (!projectId) { throw new Error('Project ID is required.') } return { ...baseParams, - projectId: params.projectIdForMilestone.trim(), + projectId, first: params.first ? Number(params.first) : undefined, after: params.after?.trim() || undefined, } + } - case 'linear_create_project_status': - if ( - !params.projectStatusName?.trim() || - !params.projectStatusType?.trim() || - !params.statusColor?.trim() || - !params.projectStatusPosition?.trim() - ) { + case 'linear_create_project_status': { + const name = trimmedText(fieldOr(params.projectStatusName, params.name)) + const type = trimmedText(fieldOr(params.projectStatusType, params.type)) + const color = trimmedText(fieldOr(params.statusColor, params.color)) + const positionInput = fieldOr(params.projectStatusPosition, params.position) + const position = + typeof positionInput === 'number' + ? positionInput + : typeof positionInput === 'string' && positionInput.trim() + ? Number.parseFloat(positionInput.trim()) + : undefined + if (!name || !type || !color || position === undefined) { throw new Error('Project status name, type, color, and position are required.') } return { ...baseParams, - name: params.projectStatusName.trim(), - type: params.projectStatusType.trim(), - color: params.statusColor.trim(), - position: Number.parseFloat(params.projectStatusPosition.trim()), - description: params.projectStatusDescription?.trim() || undefined, - indefinite: params.projectStatusIndefinite === 'true', + name, + type, + color, + position, + description: trimmedText( + fieldOr(params.projectStatusDescription, params.description) + ), + indefinite: isBlank(params.projectStatusIndefinite) + ? (parseOptionalBooleanInput(toolCallArg(context, params.indefinite)) ?? false) + : params.projectStatusIndefinite === 'true', } + } - case 'linear_update_project_status': - if (!params.projectStatusId?.trim()) { + case 'linear_update_project_status': { + const statusId = trimmedText(fieldOr(params.projectStatusId, params.statusId)) + if (!statusId) { throw new Error('Project status ID is required.') } return { ...baseParams, - statusId: params.projectStatusId.trim(), - name: params.projectStatusName?.trim() || undefined, - color: params.statusColor?.trim() || undefined, - description: params.projectStatusDescription?.trim() || undefined, + statusId, + name: trimmedText(fieldOr(params.projectStatusName, params.name)), + color: trimmedText(fieldOr(params.statusColor, params.color)), + description: trimmedText( + fieldOr(params.projectStatusDescription, params.description) + ), indefinite: params.projectStatusIndefinite ? params.projectStatusIndefinite === 'true' - : undefined, + : parseOptionalBooleanInput(toolCallArg(context, params.indefinite)), } + } - case 'linear_delete_project_status': - if (!params.projectStatusId?.trim()) { + case 'linear_delete_project_status': { + const statusId = trimmedText(fieldOr(params.projectStatusId, params.statusId)) + if (!statusId) { throw new Error('Project status ID is required.') } return { ...baseParams, - statusId: params.projectStatusId.trim(), + statusId, } + } case 'linear_list_project_statuses': return { @@ -2651,6 +2797,10 @@ Return ONLY the date string in YYYY-MM-DD format - no explanations, no quotes, n milestoneDescription: { type: 'string', description: 'Milestone description' }, milestoneTargetDate: { type: 'string', description: 'Milestone target date (YYYY-MM-DD)' }, projectStatusId: { type: 'string', description: 'Project status identifier' }, + projectUpdateStatusId: { + type: 'string', + description: 'Project status ID to move the project to on Update Project', + }, projectStatusName: { type: 'string', description: 'Project status name' }, projectStatusDescription: { type: 'string', description: 'Project status description' }, projectStatusIndefinite: { diff --git a/apps/sim/blocks/blocks/pagerduty.ts b/apps/sim/blocks/blocks/pagerduty.ts index 7dc5ad95d49..388e8f75d33 100644 --- a/apps/sim/blocks/blocks/pagerduty.ts +++ b/apps/sim/blocks/blocks/pagerduty.ts @@ -1,6 +1,6 @@ import { PagerDutyIcon } from '@/components/icons' import { AuthMode, type BlockConfig, type BlockMeta, IntegrationType } from '@/blocks/types' -import { withSavedCredential } from '@/blocks/utils' +import { mapperOperation, withSavedCredential } from '@/blocks/utils' import { getTrigger } from '@/triggers' export const PagerDutyBlock: BlockConfig = { @@ -744,6 +744,55 @@ export const PagerDutyBlock: BlockConfig = { }, mode: 'advanced', }, + { + id: 'eventTimestamp', + title: 'Timestamp', + type: 'short-input', + placeholder: 'When the event was detected (ISO 8601, e.g., 2024-01-01T00:00:00Z)', + condition: { + field: 'operation', + value: 'send_event', + and: { field: 'eventAction', value: 'trigger' }, + }, + mode: 'advanced', + wandConfig: { + enabled: true, + prompt: + 'Generate an ISO 8601 timestamp. Return ONLY the timestamp string - no explanations, no extra text.', + generationType: 'timestamp', + }, + }, + { + id: 'eventCustomDetails', + title: 'Custom Details', + type: 'code', + language: 'json', + placeholder: '{\n "region": "us-east-1",\n "error_rate": 0.42\n}', + condition: { + field: 'operation', + value: 'send_event', + and: { field: 'eventAction', value: 'trigger' }, + }, + mode: 'advanced', + }, + { + id: 'includeTotal', + title: 'Include Total Count', + type: 'switch', + condition: { + field: 'operation', + value: [ + 'list_incidents', + 'list_incident_alerts', + 'list_services', + 'list_oncalls', + 'list_escalation_policies', + 'list_schedules', + 'list_users', + ], + }, + mode: 'advanced', + }, ...getTrigger('pagerduty_incident_triggered').subBlocks, ...getTrigger('pagerduty_incident_acknowledged').subBlocks, ...getTrigger('pagerduty_incident_resolved').subBlocks, @@ -772,10 +821,10 @@ export const PagerDutyBlock: BlockConfig = { ], config: { tool: (params) => `pagerduty_${params.operation}`, - params: (params) => { + params: (params, context) => { const result: Record = {} - switch (params.operation) { + switch (mapperOperation(params, context)) { case 'list_incidents': if (params.statuses) result.statuses = params.statuses if (params.listUrgencies) result.urgencies = params.listUrgencies @@ -875,6 +924,8 @@ export const PagerDutyBlock: BlockConfig = { if (params.eventComponent) result.component = params.eventComponent if (params.eventGroup) result.group = params.eventGroup if (params.eventClass) result.class = params.eventClass + if (params.eventTimestamp) result.timestamp = params.eventTimestamp + if (params.eventCustomDetails) result.customDetails = params.eventCustomDetails break } @@ -950,6 +1001,9 @@ export const PagerDutyBlock: BlockConfig = { eventComponent: { type: 'string', description: 'Event component' }, eventGroup: { type: 'string', description: 'Event group' }, eventClass: { type: 'string', description: 'Event class' }, + eventTimestamp: { type: 'string', description: 'Event detection time (ISO 8601)' }, + eventCustomDetails: { type: 'json', description: 'Additional event details object' }, + includeTotal: { type: 'boolean', description: 'Populate the total count on list operations' }, }, outputs: { diff --git a/apps/sim/blocks/blocks/sentry.ts b/apps/sim/blocks/blocks/sentry.ts index 18f42e618ed..431ae4ecc1b 100644 --- a/apps/sim/blocks/blocks/sentry.ts +++ b/apps/sim/blocks/blocks/sentry.ts @@ -95,9 +95,9 @@ export const SentryBlock: BlockConfig = { { id: 'projectSlug', - title: 'Project ID', + title: 'Project ID or Slug', type: 'short-input', - placeholder: 'Numeric project ID (optional)', + placeholder: 'Project ID or slug (optional)', condition: { field: 'operation', value: 'sentry_issues_list' }, mode: 'advanced', }, @@ -206,6 +206,19 @@ Return ONLY the search query.`, value: () => '', condition: { field: 'operation', value: 'sentry_issues_update' }, }, + { + id: 'priority', + title: 'New Priority', + type: 'dropdown', + options: [ + { label: 'No Change', id: '' }, + { label: 'High', id: 'high' }, + { label: 'Medium', id: 'medium' }, + { label: 'Low', id: 'low' }, + ], + value: () => '', + condition: { field: 'operation', value: 'sentry_issues_update' }, + }, { id: 'assignedTo', title: 'Assign To', @@ -387,7 +400,7 @@ Return ONLY the search query.`, id: 'limit', title: 'Limit', type: 'short-input', - placeholder: '50', + placeholder: '10', condition: { field: 'operation', value: 'sentry_events_list' }, mode: 'advanced', }, @@ -419,9 +432,9 @@ Return ONLY the search query.`, { id: 'projectSlug', - title: 'Project ID', + title: 'Project ID or Slug', type: 'short-input', - placeholder: 'Numeric project ID (optional)', + placeholder: 'Project ID or slug (optional)', condition: { field: 'operation', value: 'sentry_releases_list' }, mode: 'advanced', }, @@ -737,6 +750,7 @@ Return ONLY the timestamp string - no explanations, no quotes, no extra text.`, apiKey: { type: 'string', description: 'Sentry API authentication token' }, organizationSlug: { type: 'string', description: 'Organization slug' }, issueId: { type: 'string', description: 'Issue ID' }, + priority: { type: 'string', description: 'Issue priority (low, medium, high)' }, assignedTo: { type: 'string', description: 'User to assign issue to' }, isBookmarked: { type: 'boolean', description: 'Bookmark state' }, isSubscribed: { type: 'boolean', description: 'Subscription state' }, diff --git a/apps/sim/blocks/blocks/slack-workflow-operations.test.ts b/apps/sim/blocks/blocks/slack-workflow-operations.test.ts index 3597b4d26db..6f655f9b313 100644 --- a/apps/sim/blocks/blocks/slack-workflow-operations.test.ts +++ b/apps/sim/blocks/blocks/slack-workflow-operations.test.ts @@ -58,9 +58,22 @@ describe('Slack workflow operations in the existing block', () => { ).toEqual({ credential: 'bot', channel_id: 'C1', bookmark_id: 'Bk1', emoji: '' }) expect(() => mapParams({ operation: 'list_files', slack_list_files_count: 'many' })).toThrow() expect(() => - mapParams({ operation: 'share_canvas', slack_share_canvas_user_ids: 'invalid JSON' }) + mapParams({ + operation: 'revoke_list_access', + slack_revoke_list_access_user_ids: 'invalid JSON', + }) ).toThrow() }) + + it("passes a Slack ID list's comma-separated form through for the tool to parse", () => { + expect( + mapParams({ + operation: 'get_team_dnd_info', + apiBotCredentialId: 'bot', + slack_get_team_dnd_info_users: 'U1,U2', + }) + ).toEqual({ credential: 'bot', users: 'U1,U2' }) + }) }) describe('Slack custom-app permissions', () => { diff --git a/apps/sim/blocks/blocks/slack-workflow-operations.ts b/apps/sim/blocks/blocks/slack-workflow-operations.ts index 0f1ce5f1924..7fe319b01db 100644 --- a/apps/sim/blocks/blocks/slack-workflow-operations.ts +++ b/apps/sim/blocks/blocks/slack-workflow-operations.ts @@ -1,9 +1,10 @@ import { getScopesForService } from '@/lib/oauth/utils' -import type { BlockConfig, SubBlockConfig } from '@/blocks/types' +import type { BlockConfig, BlockToolParamsContext, SubBlockConfig } from '@/blocks/types' import { parseOptionalBooleanInput, parseOptionalJsonInput, parseOptionalNumberInput, + toolCallArg, } from '@/blocks/utils' interface SlackWorkflowField { @@ -17,6 +18,8 @@ interface SlackWorkflowField { dependsOn?: string[] default?: string allowEmpty?: boolean + /** A Slack ID list: Slack's comma-separated form (`U1,U2`) is passed through for the tool to parse. */ + idList?: boolean basic?: boolean min?: number max?: number @@ -214,6 +217,7 @@ export const SLACK_WORKFLOW_OPERATIONS: readonly SlackWorkflowOperation[] = [ param: 'user_ids', title: 'User IDs', type: 'json', + idList: true, required: false, }, { @@ -222,6 +226,7 @@ export const SLACK_WORKFLOW_OPERATIONS: readonly SlackWorkflowOperation[] = [ param: 'channel_ids', title: 'Channel IDs', type: 'json', + idList: true, required: false, }, ], @@ -245,6 +250,7 @@ export const SLACK_WORKFLOW_OPERATIONS: readonly SlackWorkflowOperation[] = [ param: 'user_ids', title: 'User IDs', type: 'json', + idList: true, required: false, }, { @@ -253,6 +259,7 @@ export const SLACK_WORKFLOW_OPERATIONS: readonly SlackWorkflowOperation[] = [ param: 'channel_ids', title: 'Channel IDs', type: 'json', + idList: true, required: false, }, ], @@ -373,6 +380,7 @@ export const SLACK_WORKFLOW_OPERATIONS: readonly SlackWorkflowOperation[] = [ param: 'users', title: 'User IDs', type: 'json', + idList: true, required: false, }, { @@ -945,6 +953,7 @@ export const SLACK_WORKFLOW_OPERATIONS: readonly SlackWorkflowOperation[] = [ param: 'channels', title: 'Default Channel IDs', type: 'json', + idList: true, required: false, }, { @@ -952,6 +961,7 @@ export const SLACK_WORKFLOW_OPERATIONS: readonly SlackWorkflowOperation[] = [ param: 'additional_channels', title: 'Additional Channel IDs', type: 'json', + idList: true, required: false, }, { @@ -1021,6 +1031,7 @@ export const SLACK_WORKFLOW_OPERATIONS: readonly SlackWorkflowOperation[] = [ param: 'channels', title: 'Default Channel IDs', type: 'json', + idList: true, required: false, }, { @@ -1028,6 +1039,7 @@ export const SLACK_WORKFLOW_OPERATIONS: readonly SlackWorkflowOperation[] = [ param: 'additional_channels', title: 'Additional Channel IDs', type: 'json', + idList: true, required: false, }, { @@ -1194,6 +1206,7 @@ export const SLACK_WORKFLOW_OPERATIONS: readonly SlackWorkflowOperation[] = [ param: 'users', title: 'User IDs', type: 'json', + idList: true, required: true, }, { @@ -1201,6 +1214,7 @@ export const SLACK_WORKFLOW_OPERATIONS: readonly SlackWorkflowOperation[] = [ param: 'additional_channels', title: 'Additional Channel IDs', type: 'json', + idList: true, required: false, }, { @@ -1259,6 +1273,7 @@ export const SLACK_WORKFLOW_OPERATIONS: readonly SlackWorkflowOperation[] = [ param: 'users', title: 'User IDs', type: 'json', + idList: true, required: true, }, { @@ -1420,20 +1435,36 @@ export function getSlackWorkflowSubBlocks(): SubBlockConfig[] { return result } +/** + * Maps a workflow operation's `slack__` block fields to its tool params. On a tool call + * those fields are absent and the model's args arrive under the tool's param names; an empty field + * then leaves the model's value in place instead of writing the field's default over it. + */ export function mapSlackWorkflowParams( operation: SlackWorkflowOperation, - params: Record + params: Record, + context?: BlockToolParamsContext ): Record { const result: Record = { - credential: params[operation.auth === 'bot' ? 'apiBotCredentialId' : 'apiOAuthCredentialId'], + credential: + params[operation.auth === 'bot' ? 'apiBotCredentialId' : 'apiOAuthCredentialId'] ?? + toolCallArg(context, params.credential), } for (const field of operation.fields) { const raw = params[field.id] - const value = - raw === undefined || raw === null || (raw === '' && !field.allowEmpty) ? field.default : raw + const isEmpty = raw === undefined || raw === null || (raw === '' && !field.allowEmpty) + if (isEmpty && toolCallArg(context, params[field.param]) !== undefined) continue + const value = isEmpty ? field.default : raw if (value === undefined) continue - if (field.type === 'json') result[field.param] = parseOptionalJsonInput(value, field.title) - else if (field.type === 'number') + if (field.type === 'json') { + const csvIdList = + field.idList === true && + typeof value === 'string' && + value.trim() !== '' && + !/^\s*[[{"]/.test(value) + if (csvIdList) result[field.param] = value + else result[field.param] = parseOptionalJsonInput(value, field.title) + } else if (field.type === 'number') result[field.param] = parseOptionalNumberInput(value, field.title, { integer: true, min: field.min, diff --git a/apps/sim/blocks/blocks/slack.test.ts b/apps/sim/blocks/blocks/slack.test.ts index ba244f1b057..bc0f68f1c5a 100644 --- a/apps/sim/blocks/blocks/slack.test.ts +++ b/apps/sim/blocks/blocks/slack.test.ts @@ -1,6 +1,6 @@ import { describe, expect, it } from 'vitest' import { evaluateSubBlockCondition } from '@/lib/workflows/subblocks/visibility' -import { SlackV2Block } from '@/blocks/blocks/slack' +import { SlackBlock, SlackV2Block } from '@/blocks/blocks/slack' function mapSlackV2Params(params: Record): Record { const mapParams = SlackV2Block.tools.config?.params @@ -8,6 +8,20 @@ function mapSlackV2Params(params: Record): Record +): Record { + const mapParams = block.tools.config?.params + if (!mapParams) throw new Error('Slack parameter mapper is required') + return { ...merged, ...mapParams(merged, { operation }) } +} + function isSlackV2SubBlockVisible(subBlockId: string, values: Record): boolean { const subBlock = SlackV2Block.subBlocks.find((candidate) => candidate.id === subBlockId) if (!subBlock) throw new Error(`Slack v2 subblock not found: ${subBlockId}`) @@ -110,4 +124,94 @@ describe('Slack block release', () => { { limit: 100 } ) }) + + describe('tool calls (operation only in context)', () => { + it('sends the stored bot credential for workflow operations', () => { + expect( + toolCall(SlackV2Block, 'add_bookmark', { + apiBotCredentialId: 'bot-cred', + channel_id: 'C1', + title: 'Docs', + link: 'https://example.com', + }) + ).toMatchObject({ credential: 'bot-cred', channel_id: 'C1', title: 'Docs' }) + }) + + it('keeps the model value over a workflow field default', () => { + expect( + toolCall(SlackV2Block, 'get_team_profile', { + apiBotCredentialId: 'bot-cred', + visibility: 'hidden', + }) + ).toMatchObject({ credential: 'bot-cred', visibility: 'hidden' }) + }) + + it('maps stored workflow fields when the model omits them', () => { + expect( + toolCall(SlackV2Block, 'list_files', { + apiOAuthCredentialId: 'cred', + slack_list_files_channel: 'C123', + }) + ).toMatchObject({ credential: 'cred', channel: 'C123' }) + }) + + it('keeps model args the v1 branches would otherwise overwrite', () => { + expect( + toolCall(SlackBlock, 'edit_canvas', { + oauthCredential: 'cred', + canvasId: 'F1', + operation: 'insert_at_end', + content: 'x', + }) + ).toMatchObject({ credential: 'cred', canvasId: 'F1', operation: 'insert_at_end' }) + expect( + toolCall(SlackBlock, 'get_channel_history', { channel: 'C1', inclusive: true }) + ).toMatchObject({ inclusive: true }) + expect(toolCall(SlackBlock, 'list_users', { includeDeleted: true, limit: 5 })).toMatchObject({ + includeDeleted: true, + limit: 5, + }) + expect( + toolCall(SlackBlock, 'list_channels', { includePrivate: false, limit: 20 }) + ).toMatchObject({ includePrivate: false, limit: 20 }) + expect(toolCall(SlackBlock, 'list_channels', { excludeArchived: false })).toMatchObject({ + excludeArchived: false, + }) + expect( + toolCall(SlackBlock, 'schedule_message', { channel: 'C1', text: 'hi', postAt: 1900000000 }) + ).toMatchObject({ postAt: 1900000000 }) + expect( + toolCall(SlackBlock, 'update_view', { externalId: 'ext-1', view: { type: 'modal' } }) + ).toMatchObject({ externalId: 'ext-1', view: { type: 'modal' } }) + }) + + it('maps stored v1 fields under their tool param names', () => { + expect( + toolCall(SlackV2Block, 'lookup_canvas_sections', { + oauthCredential: 'cred', + lookupCanvasId: 'F1', + sectionCriteria: '{"contains_text":"x"}', + }) + ).toMatchObject({ canvasId: 'F1', criteria: '{"contains_text":"x"}' }) + }) + + it('keeps model args for List and agent session operations', () => { + expect( + toolCall(SlackV2Block, 'list_items', { + listCredentialId: 'bot', + listId: 'L1', + limit: 10, + cursor: 'c1', + }) + ).toMatchObject({ credential: 'bot', listId: 'L1', limit: 10, cursor: 'c1' }) + expect( + toolCall(SlackV2Block, 'set_agent_session_status', { + agentCredentialId: 'bot', + channel: 'C1', + threadTs: '1.2', + status: 'processing', + }) + ).toMatchObject({ credential: 'bot', channel: 'C1', threadTs: '1.2', status: 'processing' }) + }) + }) }) diff --git a/apps/sim/blocks/blocks/slack.ts b/apps/sim/blocks/blocks/slack.ts index 54b6e93cee3..5ff889943bf 100644 --- a/apps/sim/blocks/blocks/slack.ts +++ b/apps/sim/blocks/blocks/slack.ts @@ -10,13 +10,16 @@ import { SLACK_WORKFLOW_OPERATIONS, SLACK_WORKFLOW_SENTENCES, } from '@/blocks/blocks/slack-workflow-operations' -import type { BlockConfig, BlockMeta, SubBlockConfig } from '@/blocks/types' +import type { BlockConfig, BlockMeta, BlockToolParamsContext, SubBlockConfig } from '@/blocks/types' import { AuthMode, IntegrationType } from '@/blocks/types' import { + isToolCall, + mapperOperation, normalizeFileInput, parseOptionalBooleanInput, parseOptionalJsonInput, parseOptionalNumberInput, + toolCallArg, } from '@/blocks/utils' import { getTrigger } from '@/triggers' import { SLACK_AGENT_SCOPES } from '@/triggers/slack/shared' @@ -1045,7 +1048,7 @@ Return ONLY the JSON array - no explanations, no quotes around the array, no ext id: 'historyMaxPages', title: 'Max Pages', type: 'short-input', - placeholder: '10', + placeholder: '10 (max 50)', mode: 'advanced', condition: { field: 'operation', @@ -1508,7 +1511,6 @@ Return ONLY the timestamp string - no explanations, no quotes, no extra text.`, field: 'operation', value: ['open_view', 'push_view'], }, - required: true, }, { id: 'viewInteractivityPointer', @@ -1877,13 +1879,13 @@ Return ONLY the integer Unix timestamp - no explanations, no quotes, no extra te throw new Error(`Invalid Slack operation: ${params.operation}`) } }, - params: (params) => { + params: (params, context) => { + const operation = mapperOperation(params, context) const { oauthCredential, authMethod, botToken, botCredential, - operation, destinationType, channel, dmUserId, @@ -2013,7 +2015,9 @@ Return ONLY the integer Unix timestamp - no explanations, no quotes, no extra te case 'ephemeral': { baseParams.text = messageFormat === 'blocks' && !text ? ' ' : text - baseParams.user = ephemeralUser ? String(ephemeralUser).trim() : '' + baseParams.user = ephemeralUser + ? String(ephemeralUser).trim() + : (toolCallArg(context, params.user) ?? '') if (threadTs) { baseParams.threadTs = threadTs } @@ -2041,11 +2045,11 @@ Return ONLY the integer Unix timestamp - no explanations, no quotes, no extra te } case 'get_message': - baseParams.timestamp = getMessageTimestamp + baseParams.timestamp = getMessageTimestamp ?? toolCallArg(context, params.timestamp) break case 'get_thread': { - baseParams.threadTs = getThreadTimestamp + baseParams.threadTs = getThreadTimestamp ?? toolCallArg(context, params.threadTs) if (threadLimit) { const parsedLimit = Number.parseInt(threadLimit, 10) if (!Number.isNaN(parsedLimit) && parsedLimit > 0) { @@ -2056,7 +2060,7 @@ Return ONLY the integer Unix timestamp - no explanations, no quotes, no extra te } case 'set_status': { - baseParams.threadTs = getThreadTimestamp + baseParams.threadTs = getThreadTimestamp ?? toolCallArg(context, params.threadTs) baseParams.status = status ?? '' if (loadingMessages) { baseParams.loadingMessages = loadingMessages @@ -2065,14 +2069,14 @@ Return ONLY the integer Unix timestamp - no explanations, no quotes, no extra te } case 'set_title': { - baseParams.threadTs = getThreadTimestamp - baseParams.title = assistantTitle + baseParams.threadTs = getThreadTimestamp ?? toolCallArg(context, params.threadTs) + baseParams.title = assistantTitle ?? toolCallArg(context, params.title) break } case 'set_suggested_prompts': { - baseParams.threadTs = getThreadTimestamp - baseParams.prompts = suggestedPrompts + baseParams.threadTs = getThreadTimestamp ?? toolCallArg(context, params.threadTs) + baseParams.prompts = suggestedPrompts ?? toolCallArg(context, params.prompts) if (promptsTitle) { baseParams.promptsTitle = promptsTitle } @@ -2080,14 +2084,14 @@ Return ONLY the integer Unix timestamp - no explanations, no quotes, no extra te } case 'get_permalink': { - baseParams.messageTs = getMessageTimestamp + baseParams.messageTs = getMessageTimestamp ?? toolCallArg(context, params.messageTs) break } case 'get_channel_history': case 'get_thread_replies': { if (operation === 'get_thread_replies') { - baseParams.threadTs = getThreadTimestamp + baseParams.threadTs = getThreadTimestamp ?? toolCallArg(context, params.threadTs) } if (historyOldest) { baseParams.oldest = String(historyOldest).trim() @@ -2110,18 +2114,28 @@ Return ONLY the integer Unix timestamp - no explanations, no quotes, no extra te if (historyCursor) { baseParams.cursor = String(historyCursor).trim() } - baseParams.inclusive = historyInclusive === 'true' + baseParams.inclusive = + historyInclusive === undefined + ? (toolCallArg(context, params.inclusive) ?? false) + : historyInclusive === 'true' || historyInclusive === true break } case 'list_channels': { - baseParams.includePrivate = includePrivate !== 'false' - baseParams.excludeArchived = true + baseParams.includePrivate = includePrivate !== 'false' && includePrivate !== false + const modelExcludeArchived = toolCallArg(context, params.excludeArchived) + baseParams.excludeArchived = + modelExcludeArchived !== false && modelExcludeArchived !== 'false' const hasChannelLimit = channelLimit !== undefined && channelLimit !== null && (typeof channelLimit !== 'string' || Boolean(channelLimit.trim())) - const parsedLimit = hasChannelLimit ? Number(channelLimit) : 100 + const modelLimit = toolCallArg(context, params.limit) + const parsedLimit = hasChannelLimit + ? Number(channelLimit) + : modelLimit === undefined || modelLimit === null || modelLimit === '' + ? 100 + : Number(modelLimit) if (!Number.isInteger(parsedLimit) || parsedLimit < 1 || parsedLimit > 200) { throw new Error('Conversations per page must be an integer between 1 and 200') } @@ -2133,7 +2147,9 @@ Return ONLY the integer Unix timestamp - no explanations, no quotes, no extra te } case 'list_members': { - baseParams.limit = memberLimit ? Number.parseInt(memberLimit, 10) : 100 + baseParams.limit = memberLimit + ? Number.parseInt(memberLimit, 10) + : (toolCallArg(context, params.limit) ?? 100) if (paginationCursor) { baseParams.cursor = String(paginationCursor).trim() } @@ -2141,8 +2157,10 @@ Return ONLY the integer Unix timestamp - no explanations, no quotes, no extra te } case 'list_users': { - baseParams.includeDeleted = includeDeleted === 'true' - baseParams.limit = userLimit ? Number.parseInt(userLimit, 10) : 100 + baseParams.includeDeleted = includeDeleted === 'true' || includeDeleted === true + baseParams.limit = userLimit + ? Number.parseInt(userLimit, 10) + : (toolCallArg(context, params.limit) ?? 100) if (paginationCursor) { baseParams.cursor = String(paginationCursor).trim() } @@ -2161,35 +2179,41 @@ Return ONLY the integer Unix timestamp - no explanations, no quotes, no extra te break } - case 'update': - baseParams.timestamp = updateTimestamp - baseParams.text = messageFormat === 'blocks' && !updateText ? ' ' : updateText + case 'update': { + baseParams.timestamp = updateTimestamp ?? toolCallArg(context, params.timestamp) + const updateBody = updateText ?? toolCallArg(context, params.text) + baseParams.text = messageFormat === 'blocks' && !updateBody ? ' ' : updateBody if (blocks) { baseParams.blocks = blocks } break + } case 'delete': - baseParams.timestamp = deleteTimestamp + baseParams.timestamp = deleteTimestamp ?? toolCallArg(context, params.timestamp) break case 'react': case 'unreact': - baseParams.timestamp = reactionTimestamp - baseParams.name = emojiName + baseParams.timestamp = reactionTimestamp ?? toolCallArg(context, params.timestamp) + baseParams.name = emojiName ?? toolCallArg(context, params.name) break case 'get_channel_info': - baseParams.includeNumMembers = includeNumMembers !== 'false' + baseParams.includeNumMembers = + includeNumMembers !== 'false' && includeNumMembers !== false break case 'get_user_presence': - baseParams.userId = presenceUserId + baseParams.userId = presenceUserId ?? toolCallArg(context, params.userId) break case 'edit_canvas': - baseParams.canvasId = editCanvasId - baseParams.operation = canvasOperation + baseParams.canvasId = editCanvasId ?? toolCallArg(context, params.canvasId) + // A tool call's own `operation` arg (the edit kind) stays in the merged params. + if (canvasOperation !== undefined || !isToolCall(context)) { + baseParams.operation = canvasOperation + } if (canvasContent) { baseParams.content = canvasContent } @@ -2211,18 +2235,20 @@ Return ONLY the integer Unix timestamp - no explanations, no quotes, no extra te break case 'get_canvas': - baseParams.canvasId = getCanvasId + baseParams.canvasId = getCanvasId ?? toolCallArg(context, params.canvasId) break case 'list_canvases': - baseParams.count = parseOptionalNumberInput(canvasListCount, 'Canvas Limit', { - integer: true, - min: 1, - }) - baseParams.page = parseOptionalNumberInput(canvasListPage, 'Canvas Page', { - integer: true, - min: 1, - }) + baseParams.count = + parseOptionalNumberInput(canvasListCount, 'Canvas Limit', { + integer: true, + min: 1, + }) ?? toolCallArg(context, params.count) + baseParams.page = + parseOptionalNumberInput(canvasListPage, 'Canvas Page', { + integer: true, + min: 1, + }) ?? toolCallArg(context, params.page) if (canvasListUser) { baseParams.user = String(canvasListUser).trim() } @@ -2238,40 +2264,41 @@ Return ONLY the integer Unix timestamp - no explanations, no quotes, no extra te break case 'lookup_canvas_sections': - baseParams.canvasId = lookupCanvasId - baseParams.criteria = sectionCriteria + baseParams.canvasId = lookupCanvasId ?? toolCallArg(context, params.canvasId) + baseParams.criteria = sectionCriteria ?? toolCallArg(context, params.criteria) break case 'delete_canvas': - baseParams.canvasId = deleteCanvasId + baseParams.canvasId = deleteCanvasId ?? toolCallArg(context, params.canvasId) break case 'create_conversation': - baseParams.name = conversationName - baseParams.isPrivate = isPrivate === 'true' + baseParams.name = conversationName ?? toolCallArg(context, params.name) + baseParams.isPrivate = isPrivate === 'true' || isPrivate === true if (teamId) { baseParams.teamId = teamId } break case 'invite_to_conversation': - baseParams.users = inviteUsers + baseParams.users = inviteUsers ?? toolCallArg(context, params.users) if (inviteForce === 'true') { baseParams.force = true } break case 'open_view': - baseParams.triggerId = viewTriggerId + baseParams.triggerId = viewTriggerId ?? toolCallArg(context, params.triggerId) if (viewInteractivityPointer) { baseParams.interactivityPointer = viewInteractivityPointer } - baseParams.view = viewPayload + baseParams.view = viewPayload ?? toolCallArg(context, params.view) break case 'update_view': { const trimmedViewId = viewId ? String(viewId).trim() : '' - const trimmedExternalId = viewExternalId ? String(viewExternalId).trim() : '' + const externalId = viewExternalId || toolCallArg(context, params.externalId) + const trimmedExternalId = externalId ? String(externalId).trim() : '' if (!trimmedViewId && !trimmedExternalId) { throw new Error('update_view requires either View ID or External ID') } @@ -2284,24 +2311,24 @@ Return ONLY the integer Unix timestamp - no explanations, no quotes, no extra te if (viewHash) { baseParams.hash = viewHash } - baseParams.view = viewPayload + baseParams.view = viewPayload ?? toolCallArg(context, params.view) break } case 'push_view': - baseParams.triggerId = viewTriggerId + baseParams.triggerId = viewTriggerId ?? toolCallArg(context, params.triggerId) if (viewInteractivityPointer) { baseParams.interactivityPointer = viewInteractivityPointer } - baseParams.view = viewPayload + baseParams.view = viewPayload ?? toolCallArg(context, params.view) break case 'publish_view': - baseParams.userId = publishUserId + baseParams.userId = publishUserId ?? toolCallArg(context, params.userId) if (viewHash) { baseParams.hash = viewHash } - baseParams.view = viewPayload + baseParams.view = viewPayload ?? toolCallArg(context, params.view) break case 'schedule_message': { @@ -2312,7 +2339,8 @@ Return ONLY the integer Unix timestamp - no explanations, no quotes, no extra te if (threadTs) { baseParams.threadTs = threadTs } - const parsedPostAt = Number.parseInt(String(scheduleAt ?? '').trim(), 10) + const postAt = scheduleAt ?? toolCallArg(context, params.postAt) + const parsedPostAt = Number.parseInt(String(postAt ?? '').trim(), 10) if (Number.isNaN(parsedPostAt)) { throw new Error('Send At must be a Unix timestamp in seconds') } @@ -2341,15 +2369,15 @@ Return ONLY the integer Unix timestamp - no explanations, no quotes, no extra te break case 'rename_conversation': - baseParams.name = renameChannelName + baseParams.name = renameChannelName ?? toolCallArg(context, params.name) break case 'set_conversation_topic': - baseParams.topic = conversationTopic + baseParams.topic = conversationTopic ?? toolCallArg(context, params.topic) break case 'set_conversation_purpose': - baseParams.purpose = conversationPurpose + baseParams.purpose = conversationPurpose ?? toolCallArg(context, params.purpose) break } @@ -2598,6 +2626,8 @@ Return ONLY the integer Unix timestamp - no explanations, no quotes, no extra te type: 'json', description: 'Array of user IDs who are members of the channel', }, + ids: { type: 'json', description: 'IDs of the returned channels or users' }, + names: { type: 'json', description: 'Names of the returned channels or users' }, users: { type: 'json', @@ -3017,12 +3047,8 @@ function getSlackV2AgentSubBlocks(): SubBlockConfig[] { id: 'agentThreadTs', title: 'Thread Timestamp', type: 'short-input', - placeholder: 'Thread timestamp (thread_ts)', + placeholder: 'Thread timestamp (thread_ts); leave empty for session channels', condition: { field: 'operation', value: [...SLACK_V2_AGENT_OPERATIONS] }, - required: { - field: 'operation', - value: ['set_agent_session_status', 'rename_agent_session'], - }, }, { id: 'agentSessionStatus', @@ -3102,9 +3128,19 @@ function getSlackV2AgentSubBlocks(): SubBlockConfig[] { ] } -function mapSlackListParams(params: Record): Record { +/** + * Maps a Slack List operation's block fields to its tool params. On a tool call the block-only + * fields are absent and the model's args arrive under the tool's param names, so each assignment + * falls back to the model's value through {@link toolCallArg}. + */ +function mapSlackListParams( + operation: string, + params: Record, + context: BlockToolParamsContext | undefined +): Record { + const modelArg = (param: string) => toolCallArg(context, params[param]) const result: Record = { - credential: params.listCredentialId, + credential: params.listCredentialId ?? modelArg('credential'), listId: params.listId, } const optional = (field: string) => { @@ -3117,56 +3153,63 @@ function mapSlackListParams(params: Record): Record { - const operation = getSlackWorkflowOperation(params.operation) - if (operation) return mapSlackWorkflowParams(operation, params) - if (SLACK_V2_LIST_OPERATIONS.includes(params.operation as never)) { - return mapSlackListParams(params) + params: (params, context) => { + const operationId = mapperOperation(params, context) + const workflowOperation = getSlackWorkflowOperation(operationId) + if (workflowOperation) return mapSlackWorkflowParams(workflowOperation, params, context) + if (SLACK_V2_LIST_OPERATIONS.includes(operationId as never)) { + return mapSlackListParams(operationId, params, context) } const mapParams = SlackBlock.tools.config?.params if (!mapParams) throw new Error('Slack parameter mapper is required') - const baseParams = mapParams(params) - if (!SLACK_V2_AGENT_OPERATIONS.includes(params.operation as never)) return baseParams + const baseParams = mapParams(params, context) + if (!SLACK_V2_AGENT_OPERATIONS.includes(operationId as never)) return baseParams + const modelArg = (param: string) => toolCallArg(context, params[param]) return { ...baseParams, - credential: params.agentCredentialId, - channel: params.agentChannelId, - threadTs: params.agentThreadTs, - status: params.agentSessionStatus, - title: params.agentSessionTitle, - initiatorUserId: params.agentInitiatorUserId, - iconEmoji: params.agentIconEmoji, - iconUrl: params.agentIconUrl, - username: params.agentUsername, - prompts: params.suggestedPrompts, + credential: params.agentCredentialId ?? modelArg('credential'), + channel: params.agentChannelId ?? modelArg('channel'), + threadTs: params.agentThreadTs ?? modelArg('threadTs'), + status: params.agentSessionStatus ?? modelArg('status'), + title: params.agentSessionTitle ?? modelArg('title'), + initiatorUserId: params.agentInitiatorUserId ?? modelArg('initiatorUserId'), + iconEmoji: params.agentIconEmoji ?? modelArg('iconEmoji'), + iconUrl: params.agentIconUrl ?? modelArg('iconUrl'), + username: params.agentUsername ?? modelArg('username'), + prompts: params.suggestedPrompts ?? modelArg('prompts'), promptsTitle: params.promptsTitle, } }, @@ -3864,7 +3909,7 @@ Block Kit messages can contain buttons, selects and forms, but interactions requ emoji: { type: 'json', description: 'Custom emoji names mapped to image URLs or aliases' }, team: { type: 'json', description: 'Workspace details' }, job_id: { type: 'string', description: 'List export job ID' }, - status: { type: 'string', description: 'List export job status' }, + status: { type: 'string', description: 'List export job status, or agent session status' }, download_url: { type: 'string', description: 'List export download URL when ready' }, response_metadata: { type: 'json', description: 'Pagination metadata including next_cursor' }, dnd_enabled: { type: 'boolean', description: 'Whether Do Not Disturb is enabled' }, diff --git a/apps/sim/lib/internal/github/operations.ts b/apps/sim/lib/internal/github/operations.ts index b30e3941b9a..50d5198471b 100644 --- a/apps/sim/lib/internal/github/operations.ts +++ b/apps/sim/lib/internal/github/operations.ts @@ -64,16 +64,42 @@ interface GitHubCommitFile { blob_url?: string } +interface GitHubGitActor { + name: string + email: string + date: string +} + +interface GitHubCommitUser { + login: string + avatar_url: string + html_url: string + id?: number + node_id?: string + type?: string + url?: string + site_admin?: boolean +} + interface GitHubCommitResponse { sha: string html_url: string commit: { + url?: string message: string - author: { name: string; email: string; date: string } - committer: { name: string; email: string; date: string } + comment_count?: number + author: GitHubGitActor + committer: GitHubGitActor + tree?: { sha: string; url: string } + verification?: { + verified: boolean + reason: string + signature?: string | null + payload?: string | null + } } - author?: { login: string; avatar_url: string; html_url: string } - committer?: { login: string; avatar_url: string; html_url: string } + author?: GitHubCommitUser | null + committer?: GitHubCommitUser | null stats?: { additions: number; deletions: number; total: number } files?: GitHubCommitFile[] } @@ -348,6 +374,27 @@ async function fetchChangedFileContent( } } +/** + * Merges a commit's git identity with its linked GitHub account. The account + * fields keep their `'Unknown'`/`''` fallbacks when the commit has no linked + * user, which the v1 output has always returned. + */ +function commitActorMetadata(actor: GitHubGitActor, user: GitHubCommitUser | null | undefined) { + return { + name: actor.name, + email: actor.email, + date: actor.date, + login: user?.login || 'Unknown', + avatar_url: user?.avatar_url || '', + html_url: user?.html_url || '', + id: user?.id, + node_id: user?.node_id, + type: user?.type, + url: user?.url, + site_admin: user?.site_admin, + } +} + export async function getGitHubLatestCommit( input: LatestCommitParams, context: GitHubOperationContext @@ -410,18 +457,12 @@ export async function getGitHubLatestCommit( sha: data.sha, html_url: data.html_url, commit_message: data.commit.message, - author: { - name: data.commit.author.name, - login: data.author?.login || 'Unknown', - avatar_url: data.author?.avatar_url || '', - html_url: data.author?.html_url || '', - }, - committer: { - name: data.commit.committer.name, - login: data.committer?.login || 'Unknown', - avatar_url: data.committer?.avatar_url || '', - html_url: data.committer?.html_url || '', - }, + commit_url: data.commit.url, + comment_count: data.commit.comment_count, + tree: data.commit.tree, + verification: data.commit.verification, + author: commitActorMetadata(data.commit.author, data.author), + committer: commitActorMetadata(data.commit.committer, data.committer), stats: data.stats, files: files.length > 0 ? files : undefined, }, diff --git a/apps/sim/lib/internal/slack/operations.test.ts b/apps/sim/lib/internal/slack/operations.test.ts index cce8756aaa4..fcb64190b3c 100644 --- a/apps/sim/lib/internal/slack/operations.test.ts +++ b/apps/sim/lib/internal/slack/operations.test.ts @@ -19,6 +19,7 @@ vi.mock('@/lib/internal/slack/file-input', () => ({ vi.mock('@/lib/core/security/input-validation.server', () => inputValidationMock) import { executeSlackDownload } from '@/lib/internal/slack/operations' +import { executeSlackGetChannelHistoryOperation } from '@/lib/internal/slack/operations/get-channel-history' import { MAX_FILE_SIZE } from '@/lib/uploads/utils/validation' const { mockValidateUrlWithDNS, mockSecureFetchWithPinnedIP, mockSecureFetchWithValidation } = @@ -90,4 +91,29 @@ describe('Slack operations', () => { } expect(result.present([storedFile])).toEqual({ success: true, output: { file: storedFile } }) }) + + it('stops following history cursors at the page ceiling whatever maxPages asks for', async () => { + vi.mocked(global.fetch).mockImplementation(async () => + slackResponse({ + ok: true, + messages: [{ ts: '1.0', text: 'hi' }], + response_metadata: { next_cursor: 'more' }, + }) + ) + + const result = await executeSlackGetChannelHistoryOperation( + { + authMethod: 'oauth', + accessToken: 'token', + botToken: '', + channel: 'C1', + limit: 999, + maxPages: 10000, + }, + new AbortController().signal + ) + + expect(global.fetch).toHaveBeenCalledTimes(50) + expect(result.output).toMatchObject({ pages: 50, hasMore: true, nextCursor: 'more' }) + }) }) diff --git a/apps/sim/tools/datadog/create_event.ts b/apps/sim/tools/datadog/create_event.ts index eeb3f3d4f5a..0a5c54eb85d 100644 --- a/apps/sim/tools/datadog/create_event.ts +++ b/apps/sim/tools/datadog/create_event.ts @@ -4,7 +4,7 @@ import type { EventAlertType, EventPriority, } from '@/tools/datadog/types' -import { datadogErrorMessage, resolveDatadogSite } from '@/tools/datadog/utils' +import { datadogErrorMessage, resolveDatadogSite, splitCommaList } from '@/tools/datadog/utils' import { DATADOG_API_KEY_CREDENTIAL_OAUTH } from '@/tools/shared/saved-credentials' import type { ToolConfig } from '@/tools/types' @@ -12,7 +12,7 @@ export const createEventTool: ToolConfig id: 'datadog_create_event', name: 'Datadog Create Event', description: - 'Post an event to the Datadog event stream. Use for deployment notifications, alerts, or any significant occurrences.', + 'Post an event to the Datadog event stream. Use for deployment notifications, alerts, or any significant occurrences. Uses the v1 events endpoint, which Datadog has deprecated and serves only to organizations that have used it before.', version: '1.0.0', oauth: DATADOG_API_KEY_CREDENTIAL_OAUTH, @@ -121,12 +121,8 @@ export const createEventTool: ToolConfig if (params.sourceTypeName) body.source_type_name = params.sourceTypeName if (params.dateHappened) body.date_happened = params.dateHappened - if (params.tags) { - body.tags = params.tags - .split(',') - .map((t: string) => t.trim()) - .filter((t: string) => t.length > 0) - } + const tags = splitCommaList(params.tags) + if (tags) body.tags = tags return body }, @@ -150,6 +146,7 @@ export const createEventTool: ToolConfig output: { event: { id: data.event?.id, + id_str: data.event?.id_str, title: data.event?.title, text: data.event?.text, date_happened: data.event?.date_happened, @@ -168,7 +165,15 @@ export const createEventTool: ToolConfig type: 'object', description: 'The created event details', properties: { - id: { type: 'number', description: 'Event ID' }, + id: { + type: 'number', + description: 'Event ID. Can lose precision above 2^53; prefer id_str', + }, + id_str: { + type: 'string', + description: 'Event ID as an exact string', + optional: true, + }, title: { type: 'string', description: 'Event title' }, text: { type: 'string', description: 'Event text' }, date_happened: { type: 'number', description: 'Unix timestamp when event occurred' }, diff --git a/apps/sim/tools/datadog/create_monitor.ts b/apps/sim/tools/datadog/create_monitor.ts index 6382756ece3..33e27bd2734 100644 --- a/apps/sim/tools/datadog/create_monitor.ts +++ b/apps/sim/tools/datadog/create_monitor.ts @@ -1,5 +1,10 @@ import type { CreateMonitorParams, CreateMonitorResponse, MonitorType } from '@/tools/datadog/types' -import { datadogErrorMessage, parseJsonParam, resolveDatadogSite } from '@/tools/datadog/utils' +import { + datadogErrorMessage, + parseJsonParam, + resolveDatadogSite, + splitCommaList, +} from '@/tools/datadog/utils' import { DATADOG_CREDENTIAL_OAUTH } from '@/tools/shared/saved-credentials' import type { ToolConfig } from '@/tools/types' @@ -106,12 +111,8 @@ export const createMonitorTool: ToolConfig t.trim()) - .filter((t: string) => t.length > 0) - } + const tags = splitCommaList(params.tags) + if (tags) body.tags = tags const options = parseJsonParam>(params.options, 'options parameter') if (options) body.options = options diff --git a/apps/sim/tools/datadog/datadog.test.ts b/apps/sim/tools/datadog/datadog.test.ts index 4ac79ec2288..901ffa76c88 100644 --- a/apps/sim/tools/datadog/datadog.test.ts +++ b/apps/sim/tools/datadog/datadog.test.ts @@ -4,9 +4,11 @@ import { executeUpdateSloOperation } from '@/lib/internal/datadog/operations/upd import * as datadogTools from '@/tools/datadog' import { cancelDowntimeTool } from '@/tools/datadog/cancel_downtime' import { createDowntimeTool } from '@/tools/datadog/create_downtime' +import { createEventTool } from '@/tools/datadog/create_event' import { createMonitorTool } from '@/tools/datadog/create_monitor' import { getIncidentTool } from '@/tools/datadog/get_incident' import { getMonitorTool } from '@/tools/datadog/get_monitor' +import { getSloHistoryTool } from '@/tools/datadog/get_slo_history' import { listDashboardsTool } from '@/tools/datadog/list_dashboards' import { listDowntimesTool } from '@/tools/datadog/list_downtimes' import { listIncidentsTool } from '@/tools/datadog/list_incidents' @@ -16,7 +18,13 @@ import { queryLogsTool } from '@/tools/datadog/query_logs' import { queryTimeseriesTool } from '@/tools/datadog/query_timeseries' import { sendLogsTool } from '@/tools/datadog/send_logs' import { submitMetricsTool } from '@/tools/datadog/submit_metrics' -import { DATADOG_SITES } from '@/tools/datadog/types' +import { + type CreateEventParams, + type CreateMonitorParams, + DATADOG_SITES, + type SubmitMetricsParams, + type UpdateIncidentParams, +} from '@/tools/datadog/types' import { unmuteMonitorTool } from '@/tools/datadog/unmute_monitor' import { updateIncidentTool } from '@/tools/datadog/update_incident' import { @@ -654,3 +662,76 @@ describe('every Datadog tool routes its host through the allowlist', () => { expect(unguarded).toEqual([]) }) }) + +describe('submit_metrics numeric intake codes', () => { + it('passes a numeric MetricIntakeType through instead of dropping it', () => { + const body = callBody(submitMetricsTool, { + ...auth, + series: JSON.stringify([{ metric: 'm', type: 3, points: [{ timestamp: 1, value: 2 }] }]), + } as SubmitMetricsParams) + expect(body.series[0].type).toBe(3) + }) + + it('drops a numeric code outside the enum', () => { + const body = callBody(submitMetricsTool, { + ...auth, + series: JSON.stringify([{ metric: 'm', type: 9, points: [{ timestamp: 1, value: 2 }] }]), + } as SubmitMetricsParams) + expect(body.series[0].type).toBeUndefined() + }) +}) + +describe('tags that arrive as an array', () => { + const tags = ['env:prod', ' team:a '] + + it('create_monitor sends the tags instead of throwing', () => { + const params: CreateMonitorParams = { + ...auth, + name: 'n', + type: 'metric alert', + query: 'q', + tags, + } + expect(callBody(createMonitorTool, params).tags).toEqual(['env:prod', 'team:a']) + }) + + it('create_event sends the tags instead of throwing', () => { + const params: CreateEventParams = { ...auth, title: 't', text: 'x', tags } + expect(callBody(createEventTool, params).tags).toEqual(['env:prod', 'team:a']) + }) +}) + +describe('update_incident body id', () => { + it('matches the trimmed path id', () => { + const params: UpdateIncidentParams = { ...auth, incidentId: ' abc-123 ', title: 'T' } + expect(callUrl(updateIncidentTool, params)).toContain('/api/v2/incidents/abc-123') + expect(callBody(updateIncidentTool, params).data.id).toBe('abc-123') + }) +}) + +describe('response fields Datadog returns alongside the main payload', () => { + it('keeps the exact event id string that a number cannot hold', async () => { + const response = new Response( + '{"event":{"id":1234567890123456789,"id_str":"1234567890123456789","title":"t"}}', + { status: 200 } + ) + const result = await createEventTool.transformResponse?.(response) + expect(result?.output.event.id_str).toBe('1234567890123456789') + }) + + it('surfaces SLO history query errors on a successful response', async () => { + const result = await getSloHistoryTool.transformResponse?.( + jsonResponse({ data: {}, errors: [{ error: 'query timed out' }] }) + ) + expect(result?.success).toBe(true) + expect(result?.output.errors).toEqual([{ error: 'query timed out' }]) + }) + + it('returns the included resources get_incident asked for', async () => { + const included = [{ id: 'u1', type: 'users' }] + const result = await getIncidentTool.transformResponse?.( + jsonResponse({ data: { id: 'i1', type: 'incidents', attributes: {} }, included }) + ) + expect(result?.output.included).toEqual(included) + }) +}) diff --git a/apps/sim/tools/datadog/get_incident.ts b/apps/sim/tools/datadog/get_incident.ts index 3f7862da960..3ee71b6ccd8 100644 --- a/apps/sim/tools/datadog/get_incident.ts +++ b/apps/sim/tools/datadog/get_incident.ts @@ -82,6 +82,7 @@ export const getIncidentTool: ToolConfig type: data.data?.type, attributes: data.data?.attributes ?? {}, }, + included: Array.isArray(data.included) ? data.included : [], }, } }, @@ -114,5 +115,10 @@ export const getIncidentTool: ToolConfig }, }, }, + included: { + type: 'array', + description: 'Related resources requested through include (users, attachments)', + optional: true, + }, }, } diff --git a/apps/sim/tools/datadog/get_slo_history.ts b/apps/sim/tools/datadog/get_slo_history.ts index 343902e356b..a42b62089dc 100644 --- a/apps/sim/tools/datadog/get_slo_history.ts +++ b/apps/sim/tools/datadog/get_slo_history.ts @@ -103,6 +103,7 @@ export const getSloHistoryTool: ToolConfig = { type: 'number', required: false, visibility: 'user-or-llm', - description: 'Maximum number of logs to return (e.g., 50, 100, max: 1000)', + description: 'Maximum number of logs to return (default: 50, max: 5000)', }, cursor: { type: 'string', diff --git a/apps/sim/tools/datadog/submit_metrics.ts b/apps/sim/tools/datadog/submit_metrics.ts index b6e33330635..ece0410fc19 100644 --- a/apps/sim/tools/datadog/submit_metrics.ts +++ b/apps/sim/tools/datadog/submit_metrics.ts @@ -13,11 +13,25 @@ import type { ToolConfig } from '@/tools/types' * A metric with no recognized type is submitted without a `type`, letting Datadog * infer it rather than silently mislabeling the series. */ -const METRIC_INTAKE_TYPE = { +const METRIC_INTAKE_TYPE: Readonly> = { count: 1, rate: 2, gauge: 3, -} as const +} + +/** + * Resolves a series `type` to Datadog's intake code. A name maps through + * {@link METRIC_INTAKE_TYPE}; a numeric code (0-3), as a model or upstream block may send + * in Datadog's own encoding, passes through unchanged. + */ +function metricIntakeType(type: unknown): number | undefined { + if (typeof type === 'number') { + return Number.isInteger(type) && type >= 0 && type <= 3 ? type : undefined + } + return typeof type === 'string' && Object.hasOwn(METRIC_INTAKE_TYPE, type) + ? METRIC_INTAKE_TYPE[type] + : undefined +} export const submitMetricsTool: ToolConfig = { id: 'datadog_submit_metrics', @@ -68,7 +82,7 @@ export const submitMetricsTool: ToolConfig filterUndefined({ metric: s.metric, - type: METRIC_INTAKE_TYPE[s.type as keyof typeof METRIC_INTAKE_TYPE], + type: metricIntakeType(s.type), points: s.points?.map((p) => ({ timestamp: p.timestamp, value: p.value })), tags: s.tags, unit: s.unit, diff --git a/apps/sim/tools/datadog/types.ts b/apps/sim/tools/datadog/types.ts index 736e523b035..ecb965bd50e 100644 --- a/apps/sim/tools/datadog/types.ts +++ b/apps/sim/tools/datadog/types.ts @@ -65,7 +65,8 @@ interface MetricPoint { export interface MetricSeries { metric: string - type?: MetricType + /** A type name, or Datadog's numeric `MetricIntakeType` code (0 unspecified, 1 count, 2 rate, 3 gauge). */ + type?: MetricType | number points: MetricPoint[] tags?: string[] unit?: string @@ -145,8 +146,8 @@ export interface CreateEventParams extends DatadogWriteOnlyParams { alertType?: EventAlertType priority?: EventPriority host?: string - /** Comma-separated tags */ - tags?: string + /** Comma-separated tags, or an array when a model or upstream block supplies one */ + tags?: string | string[] aggregationKey?: string sourceTypeName?: string /** Unix timestamp */ @@ -155,6 +156,7 @@ export interface CreateEventParams extends DatadogWriteOnlyParams { interface EventData { id?: number + id_str?: string title?: string text?: string date_happened?: number @@ -213,8 +215,8 @@ export interface CreateMonitorParams extends DatadogBaseParams { type: MonitorType query: string message?: string - /** Comma-separated tags */ - tags?: string + /** Comma-separated tags, or an array when a model or upstream block supplies one */ + tags?: string | string[] /** 1-5 */ priority?: number /** JSON string of MonitorOptions */ @@ -611,6 +613,8 @@ interface SloHistoryData { interface GetSloHistoryOutput { history: SloHistoryData sliValue?: number | null + /** Partial query errors Datadog returns alongside a 200, each `{ error }`. */ + errors?: { error?: string }[] } export interface GetSloHistoryResponse extends ToolResponse { @@ -1102,6 +1106,8 @@ export interface GetIncidentParams extends DatadogBaseParams { interface GetIncidentOutput { incident: IncidentData + /** Related resources Datadog returns for the `include` query param. */ + included?: Record[] } export interface GetIncidentResponse extends ToolResponse { diff --git a/apps/sim/tools/datadog/update_incident.ts b/apps/sim/tools/datadog/update_incident.ts index be5a9f4f965..3374c02bdec 100644 --- a/apps/sim/tools/datadog/update_incident.ts +++ b/apps/sim/tools/datadog/update_incident.ts @@ -132,7 +132,7 @@ export const updateIncidentTool: ToolConfig ({ handle })) } - return { data: { type: 'incidents', id: params.incidentId, attributes } } + return { data: { type: 'incidents', id: String(params.incidentId ?? '').trim(), attributes } } }, }, diff --git a/apps/sim/tools/datadog/update_slo.ts b/apps/sim/tools/datadog/update_slo.ts index 10735e4d1fa..a407ccda25d 100644 --- a/apps/sim/tools/datadog/update_slo.ts +++ b/apps/sim/tools/datadog/update_slo.ts @@ -29,7 +29,7 @@ export const updateSloTool: InternalToolConfig = JSON.parse( - '{"a2a_cancel_task":{"id":"a2a_cancel_task","name":"A2A Cancel Task","description":"Request cancellation of an in-progress A2A task.","version":"1.0.0","params":{"agentUrl":{"type":"string","required":true,"visibility":"user-only","description":"The A2A agent endpoint URL"},"taskId":{"type":"string","required":true,"visibility":"user-or-llm","description":"The task ID to cancel"},"apiKey":{"type":"string","required":false,"visibility":"user-only","description":"API key for authentication (if required)"}},"hostedApiKey":"none"},"a2a_get_agent_card":{"id":"a2a_get_agent_card","name":"A2A Get Agent Card","description":"Fetch the Agent Card (discovery document) for an external A2A agent.","version":"1.0.0","params":{"agentUrl":{"type":"string","required":true,"visibility":"user-only","description":"The A2A agent endpoint URL"},"apiKey":{"type":"string","required":false,"visibility":"user-only","description":"API key for authentication (if required)"}},"hostedApiKey":"none"},"a2a_get_task":{"id":"a2a_get_task","name":"A2A Get Task","description":"Retrieve the current state and result of an A2A task.","version":"1.0.0","params":{"agentUrl":{"type":"string","required":true,"visibility":"user-only","description":"The A2A agent endpoint URL"},"taskId":{"type":"string","required":true,"visibility":"user-or-llm","description":"The task ID to retrieve"},"historyLength":{"type":"number","required":false,"visibility":"user-or-llm","description":"Maximum number of history messages to include"},"apiKey":{"type":"string","required":false,"visibility":"user-only","description":"API key for authentication (if required)"}},"hostedApiKey":"none"},"a2a_send_message":{"id":"a2a_send_message","name":"A2A Send Message","description":"Send a message to an external A2A agent and return its response.","version":"1.0.0","params":{"agentUrl":{"type":"string","required":true,"visibility":"user-only","description":"The A2A agent endpoint URL"},"message":{"type":"string","required":true,"visibility":"user-or-llm","description":"The message text to send"},"data":{"type":"json","required":false,"visibility":"user-or-llm","description":"Optional structured JSON data to attach"},"files":{"type":"json","required":false,"visibility":"user-or-llm","description":"Optional files to attach"},"taskId":{"type":"string","required":false,"visibility":"user-or-llm","description":"Existing task ID to continue"},"contextId":{"type":"string","required":false,"visibility":"user-or-llm","description":"Conversation context ID to continue"},"apiKey":{"type":"string","required":false,"visibility":"user-only","description":"API key for authentication (if required)"}},"hostedApiKey":"none"},"affinity_batch_update_entity_fields":{"id":"affinity_batch_update_entity_fields","name":"Affinity Batch Update Entity Fields","description":"Write up to 100 non-list field values on one company or person in a single request.","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Affinity API key, sent as a bearer token"},"entityType":{"type":"string","required":true,"visibility":"user-or-llm","description":"Which entity to write the fields on: companies or persons"},"entityId":{"type":"string","required":true,"visibility":"user-or-llm","description":"ID of that company or person"},"updates":{"type":"json","required":true,"visibility":"user-or-llm","description":"Up to 100 field updates as [{\\"id\\":\\"\\",\\"value\\":{\\"type\\":\\"…\\",\\"data\\":…}}], using the same value shapes as a single field update"}},"oauth":{"required":false,"provider":"affinity","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"affinity_batch_update_list_entry_fields":{"id":"affinity_batch_update_list_entry_fields","name":"Affinity Batch Update List Entry Fields","description":"Write up to 100 field values on one list row in a single request. Requires the \\"Export data from Lists\\" permission.","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Affinity API key, sent as a bearer token"},"listId":{"type":"string","required":true,"visibility":"user-or-llm","description":"The list ID"},"listEntryId":{"type":"string","required":true,"visibility":"user-or-llm","description":"The list entry ID"},"updates":{"type":"json","required":true,"visibility":"user-or-llm","description":"Up to 100 field updates as [{\\"id\\":\\"\\",\\"value\\":{\\"type\\":\\"…\\",\\"data\\":…}}], using the same value shapes as a single field update"}},"oauth":{"required":false,"provider":"affinity","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"affinity_create_list":{"id":"affinity_create_list","name":"Affinity Create List","description":"Create a list. Its type fixes which entities it can hold, and the API key holder becomes its creator and owner.","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Affinity API key, sent as a bearer token"},"name":{"type":"string","required":true,"visibility":"user-or-llm","description":"Name of the new list"},"type":{"type":"string","required":true,"visibility":"user-or-llm","description":"Entity kind the list holds: company, opportunity, or person"},"isPublic":{"type":"boolean","required":false,"visibility":"user-or-llm","description":"Whether everyone in the organization can see the list"}},"oauth":{"required":false,"provider":"affinity","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"affinity_create_list_field_dropdown_option":{"id":"affinity_create_list_field_dropdown_option","name":"Affinity Create List Field Dropdown Option","description":"Add a selectable option to a dropdown field on a list. A ranked or status option also needs a rank and a color.","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Affinity API key, sent as a bearer token"},"listId":{"type":"string","required":true,"visibility":"user-or-llm","description":"The list ID"},"fieldId":{"type":"string","required":true,"visibility":"user-or-llm","description":"The dropdown field ID on that list"},"type":{"type":"string","required":true,"visibility":"user-or-llm","description":"Kind of option to create, matching the field. dropdown takes only a label; ranked-dropdown also requires rank and color; status-dropdown additionally requires a status category. Sending a field the kind does not accept is rejected"},"text":{"type":"string","required":true,"visibility":"user-or-llm","description":"The option label"},"rank":{"type":"number","required":false,"visibility":"user-or-llm","description":"Sort order. Required on a ranked-dropdown or status-dropdown option"},"color":{"type":"string","required":false,"visibility":"user-or-llm","description":"Option color: white, gray, blue, green, purple, orange, or red. Required on a ranked-dropdown or status-dropdown option"},"statusCategory":{"type":"string","required":false,"visibility":"user-or-llm","description":"Pipeline meaning of the option: open, won, lost, or on-hold. Status-dropdown options only"},"winRate":{"type":"number","required":false,"visibility":"user-or-llm","description":"Expected win rate of the status. Status-dropdown options only"}},"oauth":{"required":false,"provider":"affinity","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"affinity_create_merge":{"id":"affinity_create_merge","name":"Affinity Create Merge","description":"Fold a duplicate company or person into the record you are keeping. The merge runs asynchronously — poll the returned task to see it finish. Requires the \\"Manage duplicates\\" permission and an admin role.","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Affinity API key, sent as a bearer token"},"entityType":{"type":"string","required":true,"visibility":"user-or-llm","description":"What to merge: companies or persons"},"primaryId":{"type":"string","required":true,"visibility":"user-or-llm","description":"ID of the record to keep"},"duplicateId":{"type":"string","required":true,"visibility":"user-or-llm","description":"ID of the duplicate record to fold in"}},"oauth":{"required":false,"provider":"affinity","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"affinity_create_note":{"id":"affinity_create_note","name":"Affinity Create Note","description":"Write a note — attached to companies, persons, and opportunities, anchored to a meeting, call, or chat message, or posted as a reply to an existing note.","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Affinity API key, sent as a bearer token"},"type":{"type":"string","required":true,"visibility":"user-or-llm","description":"Note shape: entities to attach it to records, interaction to anchor it to a meeting, call, or chat message, or user-reply to reply to a note"},"html":{"type":"string","required":true,"visibility":"user-or-llm","description":"The note body as HTML"},"companyIds":{"type":"json","required":false,"visibility":"user-or-llm","description":"Companies to attach the note to, e.g. [1, 2]. Not used on a reply"},"personIds":{"type":"json","required":false,"visibility":"user-or-llm","description":"Persons to attach the note to, e.g. [1, 2]. Not used on a reply"},"opportunityIds":{"type":"json","required":false,"visibility":"user-or-llm","description":"Opportunities to attach the note to, e.g. [1, 2]. Not used on a reply"},"interactionId":{"type":"string","required":false,"visibility":"user-or-llm","description":"The interaction to anchor the note to. Required for an interaction note"},"interactionType":{"type":"string","required":false,"visibility":"user-or-llm","description":"Kind of the anchoring interaction: meeting, call, or chat-message. Required for an interaction note"},"parentId":{"type":"string","required":false,"visibility":"user-or-llm","description":"The note being replied to. Required for a user-reply note"},"creatorId":{"type":"string","required":false,"visibility":"user-or-llm","description":"Attribute the note to another internal person. Defaults to the API key holder"},"createdAt":{"type":"string","required":false,"visibility":"user-or-llm","description":"Backdate the note to this ISO 8601 timestamp"}},"oauth":{"required":false,"provider":"affinity","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"affinity_create_reminder":{"id":"affinity_create_reminder","name":"Affinity Create Reminder","description":"Create a reminder on one company, person, or opportunity. A recurring reminder resets whenever the chosen signal happens instead of firing once.","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Affinity API key, sent as a bearer token"},"type":{"type":"string","required":true,"visibility":"user-or-llm","description":"one-time to fire once, or recurring to reset on a signal"},"entityType":{"type":"string","required":true,"visibility":"user-or-llm","description":"What the reminder is about: company, person, or opportunity"},"entityId":{"type":"string","required":true,"visibility":"user-or-llm","description":"ID of that company, person, or opportunity"},"dueDate":{"type":"string","required":false,"visibility":"user-or-llm","description":"When the reminder is due, as an ISO 8601 timestamp. Required for a one-time reminder; on a recurring one Affinity computes it from the period when omitted"},"content":{"type":"string","required":false,"visibility":"user-or-llm","description":"What the reminder says"},"ownerId":{"type":"string","required":true,"visibility":"user-or-llm","description":"User the reminder is assigned to. Must be an internal user. The API key holder is recorded as the creator, which is a separate field"},"resetTrigger":{"type":"string","required":false,"visibility":"user-or-llm","description":"What restarts a recurring reminder: interaction, email, or event. Required when the type is recurring"},"periodDays":{"type":"number","required":false,"visibility":"user-or-llm","description":"Days between firings of a recurring reminder. Required when the type is recurring"}},"oauth":{"required":false,"provider":"affinity","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"affinity_delete_list_field_dropdown_option":{"id":"affinity_delete_list_field_dropdown_option","name":"Affinity Delete List Field Dropdown Option","description":"Permanently delete a dropdown option on a list field. Every list entry currently set to it is cleared, and those values cannot be recovered.","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Affinity API key, sent as a bearer token"},"listId":{"type":"string","required":true,"visibility":"user-or-llm","description":"The list ID"},"fieldId":{"type":"string","required":true,"visibility":"user-or-llm","description":"The dropdown field ID on that list"},"dropdownOptionId":{"type":"string","required":true,"visibility":"user-or-llm","description":"The dropdown option ID to delete"}},"oauth":{"required":false,"provider":"affinity","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"affinity_delete_note":{"id":"affinity_delete_note","name":"Affinity Delete Note","description":"Delete a note you created. Deleting a root note also deletes its replies; deleting a reply removes only that reply.","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Affinity API key, sent as a bearer token"},"noteId":{"type":"string","required":true,"visibility":"user-or-llm","description":"The note ID to delete"}},"oauth":{"required":false,"provider":"affinity","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"affinity_get_company":{"id":"affinity_get_company","name":"Affinity Get Company","description":"Look up one company by ID. Field data is returned only for the Field IDs or Field Types asked for.","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Affinity API key, sent as a bearer token"},"companyId":{"type":"string","required":true,"visibility":"user-or-llm","description":"The company ID"},"fieldIds":{"type":"json","required":false,"visibility":"user-or-llm","description":"Field IDs to return values for, e.g. [\\"affinity-data-location\\"]. Mutually exclusive with Field Types"},"fieldTypes":{"type":"json","required":false,"visibility":"user-or-llm","description":"Field categories to return values for: enriched, global, or relationship-intelligence. Mutually exclusive with Field IDs"}},"oauth":{"required":false,"provider":"affinity","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"affinity_get_current_user":{"id":"affinity_get_current_user","name":"Affinity Get Current User","description":"Verify an Affinity API key and return the tenant, the user behind the key, and the scopes the grant carries.","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Affinity API key, sent as a bearer token"}},"oauth":{"required":false,"provider":"affinity","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"affinity_get_entity_field_value":{"id":"affinity_get_entity_field_value","name":"Affinity Get Entity Field Value","description":"Read one non-list field value from a company or person.","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Affinity API key, sent as a bearer token"},"entityType":{"type":"string","required":true,"visibility":"user-or-llm","description":"Which entity to read the field from: companies or persons"},"entityId":{"type":"string","required":true,"visibility":"user-or-llm","description":"ID of that company or person"},"fieldId":{"type":"string","required":true,"visibility":"user-or-llm","description":"The field ID to read"}},"oauth":{"required":false,"provider":"affinity","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"affinity_get_list":{"id":"affinity_get_list","name":"Affinity Get List","description":"Read one list — its name, type, owner, and privacy setting.","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Affinity API key, sent as a bearer token"},"listId":{"type":"string","required":true,"visibility":"user-or-llm","description":"The list ID"}},"oauth":{"required":false,"provider":"affinity","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"affinity_get_list_entry":{"id":"affinity_get_list_entry","name":"Affinity Get List Entry","description":"Read one row of a list with its entity. Field data is returned only for the Field IDs or Field Types asked for.","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Affinity API key, sent as a bearer token"},"listId":{"type":"string","required":true,"visibility":"user-or-llm","description":"The list ID"},"listEntryId":{"type":"string","required":true,"visibility":"user-or-llm","description":"The list entry ID"},"fieldIds":{"type":"json","required":false,"visibility":"user-or-llm","description":"Field IDs to return values for, e.g. [\\"affinity-data-location\\"]. Mutually exclusive with Field Types"},"fieldTypes":{"type":"json","required":false,"visibility":"user-or-llm","description":"Field categories to return values for: enriched, global, list, or relationship-intelligence. Mutually exclusive with Field IDs"}},"oauth":{"required":false,"provider":"affinity","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"affinity_get_list_entry_field":{"id":"affinity_get_list_entry_field","name":"Affinity Get List Entry Field","description":"Read one field value on a list row.","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Affinity API key, sent as a bearer token"},"listId":{"type":"string","required":true,"visibility":"user-or-llm","description":"The list ID"},"listEntryId":{"type":"string","required":true,"visibility":"user-or-llm","description":"The list entry ID"},"fieldId":{"type":"string","required":true,"visibility":"user-or-llm","description":"The field ID to read"}},"oauth":{"required":false,"provider":"affinity","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"affinity_get_list_field_dropdown_option":{"id":"affinity_get_list_field_dropdown_option","name":"Affinity Get List Field Dropdown Option","description":"Read one dropdown option on a list field.","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Affinity API key, sent as a bearer token"},"listId":{"type":"string","required":true,"visibility":"user-or-llm","description":"The list ID"},"fieldId":{"type":"string","required":true,"visibility":"user-or-llm","description":"The dropdown field ID on that list"},"dropdownOptionId":{"type":"string","required":true,"visibility":"user-or-llm","description":"The dropdown option ID"}},"oauth":{"required":false,"provider":"affinity","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"affinity_get_merge":{"id":"affinity_get_merge","name":"Affinity Get Merge","description":"Read the status of one company or person merge, including why it failed if it did.","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Affinity API key, sent as a bearer token"},"entityType":{"type":"string","required":true,"visibility":"user-or-llm","description":"Which merge to read: companies or persons"},"mergeId":{"type":"string","required":true,"visibility":"user-or-llm","description":"The merge ID"}},"oauth":{"required":false,"provider":"affinity","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"affinity_get_merge_task":{"id":"affinity_get_merge_task","name":"Affinity Get Merge Task","description":"Read one merge task and how its merges are progressing. Poll this after starting a merge.","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Affinity API key, sent as a bearer token"},"entityType":{"type":"string","required":true,"visibility":"user-or-llm","description":"Which merge task to read: companies or persons"},"taskId":{"type":"string","required":true,"visibility":"user-or-llm","description":"The merge task ID"}},"oauth":{"required":false,"provider":"affinity","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"affinity_get_note":{"id":"affinity_get_note","name":"Affinity Get Note","description":"Read one note with its body, author, mentions, and attached records.","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Affinity API key, sent as a bearer token"},"noteId":{"type":"string","required":true,"visibility":"user-or-llm","description":"The note ID"},"includes":{"type":"json","required":false,"visibility":"user-or-llm","description":"Extra properties to return, e.g. [\\"repliesCount\\",\\"personsPreview\\",\\"companiesPreview\\",\\"opportunitiesPreview\\"]. Those four fields are omitted unless requested here"}},"oauth":{"required":false,"provider":"affinity","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"affinity_get_opportunity":{"id":"affinity_get_opportunity","name":"Affinity Get Opportunity","description":"Read one opportunity and the list it belongs to. Its field data lives on the list entry.","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Affinity API key, sent as a bearer token"},"opportunityId":{"type":"string","required":true,"visibility":"user-or-llm","description":"The opportunity ID"}},"oauth":{"required":false,"provider":"affinity","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"affinity_get_person":{"id":"affinity_get_person","name":"Affinity Get Person","description":"Look up one person by ID. Field data is returned only for the Field IDs or Field Types asked for.","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Affinity API key, sent as a bearer token"},"personId":{"type":"string","required":true,"visibility":"user-or-llm","description":"The person ID"},"fieldIds":{"type":"json","required":false,"visibility":"user-or-llm","description":"Field IDs to return values for, e.g. [\\"affinity-data-location\\"]. Mutually exclusive with Field Types"},"fieldTypes":{"type":"json","required":false,"visibility":"user-or-llm","description":"Field categories to return values for: enriched, global, or relationship-intelligence. Mutually exclusive with Field IDs"}},"oauth":{"required":false,"provider":"affinity","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"affinity_get_saved_view":{"id":"affinity_get_saved_view","name":"Affinity Get Saved View","description":"Read one saved view — its name, kind, and creation date.","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Affinity API key, sent as a bearer token"},"listId":{"type":"string","required":true,"visibility":"user-or-llm","description":"The list ID"},"viewId":{"type":"string","required":true,"visibility":"user-or-llm","description":"The saved view ID"}},"oauth":{"required":false,"provider":"affinity","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"affinity_get_transcript":{"id":"affinity_get_transcript","name":"Affinity Get Transcript","description":"Read one transcript with its first 100 fragments. Page the fragments endpoint for a longer meeting.","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Affinity API key, sent as a bearer token"},"transcriptId":{"type":"string","required":true,"visibility":"user-or-llm","description":"The transcript ID"}},"oauth":{"required":false,"provider":"affinity","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"affinity_get_user":{"id":"affinity_get_user","name":"Affinity Get User","description":"Read one internal user. A user and their person record share the same numeric ID, so a person ID works here.","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Affinity API key, sent as a bearer token"},"userId":{"type":"string","required":true,"visibility":"user-or-llm","description":"The user ID, which is also their person ID"}},"oauth":{"required":false,"provider":"affinity","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"affinity_list_calls":{"id":"affinity_list_calls","name":"Affinity List Calls","description":"Page through logged calls and their participants. Only calls the API key holder can see are returned.","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Affinity API key, sent as a bearer token"},"filter":{"type":"string","required":false,"visibility":"user-or-llm","description":"Affinity Filtering Language expression, e.g. \\"createdAt>=2026-01-01\\""},"cursor":{"type":"string","required":false,"visibility":"user-or-llm","description":"Cursor from a previous page, returned as nextCursor or prevCursor"},"limit":{"type":"number","required":false,"visibility":"user-or-llm","description":"Number of items to return per page, 1-100. Defaults to 100"}},"oauth":{"required":false,"provider":"affinity","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"affinity_list_chat_messages":{"id":"affinity_list_chat_messages","name":"Affinity List Chat Messages","description":"Page through logged chat messages and their participants. Only messages the API key holder can see are returned.","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Affinity API key, sent as a bearer token"},"filter":{"type":"string","required":false,"visibility":"user-or-llm","description":"Affinity Filtering Language expression, e.g. \\"createdAt>=2026-01-01\\""},"cursor":{"type":"string","required":false,"visibility":"user-or-llm","description":"Cursor from a previous page, returned as nextCursor or prevCursor"},"limit":{"type":"number","required":false,"visibility":"user-or-llm","description":"Number of items to return per page, 1-100. Defaults to 100"}},"oauth":{"required":false,"provider":"affinity","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"affinity_list_companies":{"id":"affinity_list_companies","name":"Affinity List Companies","description":"Page through companies. Companies come back without field data unless Field IDs or Field Types asks for it.","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Affinity API key, sent as a bearer token"},"ids":{"type":"json","required":false,"visibility":"user-or-llm","description":"Restrict the page to these company IDs, e.g. [1, 2, 3]"},"fieldIds":{"type":"json","required":false,"visibility":"user-or-llm","description":"Field IDs to return values for, e.g. [\\"affinity-data-location\\"]. Mutually exclusive with Field Types"},"fieldTypes":{"type":"json","required":false,"visibility":"user-or-llm","description":"Field categories to return values for: enriched, global, or relationship-intelligence. Mutually exclusive with Field IDs"},"cursor":{"type":"string","required":false,"visibility":"user-or-llm","description":"Cursor from a previous page, returned as nextCursor or prevCursor"},"limit":{"type":"number","required":false,"visibility":"user-or-llm","description":"Number of items to return per page, 1-100. Defaults to 100"}},"oauth":{"required":false,"provider":"affinity","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"affinity_list_coworker_connections":{"id":"affinity_list_coworker_connections","name":"Affinity List Coworker Connections","description":"Find warm paths into a company through shared work history: who in your Affinity data once worked alongside the people you want to reach. Grouped by target, strongest first.","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Affinity API key, sent as a bearer token"},"filter":{"type":"string","required":true,"visibility":"user-or-llm","description":"Required scope. The only supported filter is target.currentCompany.id, e.g. \\"target.currentCompany.id=123\\""},"cursor":{"type":"string","required":false,"visibility":"user-or-llm","description":"Cursor from a previous page, returned as nextCursor or prevCursor"},"limit":{"type":"number","required":false,"visibility":"user-or-llm","description":"Number of targets to return per page, 1-50. Defaults to 20"},"totalCount":{"type":"boolean","required":false,"visibility":"user-or-llm","description":"Include the total size of the collection. Costs an extra query"}},"oauth":{"required":false,"provider":"affinity","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"affinity_list_emails":{"id":"affinity_list_emails","name":"Affinity List Emails","description":"Page through email metadata — subject, participants, and timestamps. Affinity never exposes email bodies through the API.","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Affinity API key, sent as a bearer token"},"filter":{"type":"string","required":false,"visibility":"user-or-llm","description":"Affinity Filtering Language expression, e.g. \\"createdAt>=2026-01-01\\""},"cursor":{"type":"string","required":false,"visibility":"user-or-llm","description":"Cursor from a previous page, returned as nextCursor or prevCursor"},"limit":{"type":"number","required":false,"visibility":"user-or-llm","description":"Number of items to return per page, 1-100. Defaults to 100"}},"oauth":{"required":false,"provider":"affinity","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"affinity_list_entity_field_values":{"id":"affinity_list_entity_field_values","name":"Affinity List Entity Field Values","description":"Page through a company\'s or person\'s non-list field values. List fields are not returned here — read those through the list entry.","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Affinity API key, sent as a bearer token"},"entityType":{"type":"string","required":true,"visibility":"user-or-llm","description":"Which entity to read field values from: companies or persons"},"entityId":{"type":"string","required":true,"visibility":"user-or-llm","description":"ID of that company or person"},"ids":{"type":"json","required":false,"visibility":"user-or-llm","description":"Restrict to these field IDs. Mutually exclusive with Field Types"},"types":{"type":"json","required":false,"visibility":"user-or-llm","description":"Restrict to these field categories: enriched, global, relationship-intelligence. Mutually exclusive with Field IDs"},"cursor":{"type":"string","required":false,"visibility":"user-or-llm","description":"Cursor from a previous page, returned as nextCursor or prevCursor"},"limit":{"type":"number","required":false,"visibility":"user-or-llm","description":"Number of items to return per page, 1-100. Defaults to 20"}},"oauth":{"required":false,"provider":"affinity","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"affinity_list_entity_list_entries":{"id":"affinity_list_entity_list_entries","name":"Affinity List Entity List Entries","description":"Page through a company\'s or person\'s rows across every list, each carrying that list\'s field values and when the entity was added.","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Affinity API key, sent as a bearer token"},"entityType":{"type":"string","required":true,"visibility":"user-or-llm","description":"Which entity to look up the rows of: companies or persons"},"entityId":{"type":"string","required":true,"visibility":"user-or-llm","description":"ID of that company or person"},"cursor":{"type":"string","required":false,"visibility":"user-or-llm","description":"Cursor from a previous page, returned as nextCursor or prevCursor"},"limit":{"type":"number","required":false,"visibility":"user-or-llm","description":"Number of items to return per page, 1-100. Defaults to 100"}},"oauth":{"required":false,"provider":"affinity","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"affinity_list_entity_lists":{"id":"affinity_list_entity_lists","name":"Affinity List Entity Lists","description":"List every list a company or person appears on that the caller can view.","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Affinity API key, sent as a bearer token"},"entityType":{"type":"string","required":true,"visibility":"user-or-llm","description":"Which entity to look up the lists of: companies or persons"},"entityId":{"type":"string","required":true,"visibility":"user-or-llm","description":"ID of that company or person"},"cursor":{"type":"string","required":false,"visibility":"user-or-llm","description":"Cursor from a previous page, returned as nextCursor or prevCursor"},"limit":{"type":"number","required":false,"visibility":"user-or-llm","description":"Number of items to return per page, 1-100. Defaults to 100"}},"oauth":{"required":false,"provider":"affinity","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"affinity_list_entity_notes":{"id":"affinity_list_entity_notes","name":"Affinity List Entity Notes","description":"List the notes relevant to one company, person, or opportunity — directly attached notes plus notes reaching it through its people and meetings.","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Affinity API key, sent as a bearer token"},"entityType":{"type":"string","required":true,"visibility":"user-or-llm","description":"Which entity the notes hang off: companies, persons, or opportunities"},"entityId":{"type":"string","required":true,"visibility":"user-or-llm","description":"ID of that company, person, or opportunity"},"filter":{"type":"string","required":false,"visibility":"user-or-llm","description":"Affinity Filtering Language expression, e.g. \\"createdAt>=2026-01-01\\""},"cursor":{"type":"string","required":false,"visibility":"user-or-llm","description":"Cursor from a previous page, returned as nextCursor or prevCursor"},"limit":{"type":"number","required":false,"visibility":"user-or-llm","description":"Number of items to return per page, 1-100. Defaults to 100"},"totalCount":{"type":"boolean","required":false,"visibility":"user-or-llm","description":"Include the total size of the collection. Costs an extra query"}},"oauth":{"required":false,"provider":"affinity","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"affinity_list_entity_relationships":{"id":"affinity_list_entity_relationships","name":"Affinity List Entity Relationships","description":"List who knows a company or person, scored 0.0 to 1.0 by how much the two actually interact. Strongest first by default.","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Affinity API key, sent as a bearer token"},"entityType":{"type":"string","required":true,"visibility":"user-or-llm","description":"Which entity to look up relationships for: companies or persons"},"entityId":{"type":"string","required":true,"visibility":"user-or-llm","description":"ID of that company or person"},"filter":{"type":"string","required":false,"visibility":"user-or-llm","description":"Affinity Filtering Language expression. This endpoint filters on interactionScore only, e.g. \\"interactionScore>=0.5\\""},"orderBy":{"type":"json","required":false,"visibility":"user-or-llm","description":"Sort order: [\\"interactionScore\\"] for weakest first, [\\"-interactionScore\\"] for strongest first (the default)"},"cursor":{"type":"string","required":false,"visibility":"user-or-llm","description":"Cursor from a previous page, returned as nextCursor or prevCursor"},"limit":{"type":"number","required":false,"visibility":"user-or-llm","description":"Number of items to return per page, 1-100. Defaults to 100"},"totalCount":{"type":"boolean","required":false,"visibility":"user-or-llm","description":"Include the total size of the collection. Costs an extra query"}},"oauth":{"required":false,"provider":"affinity","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"affinity_list_field_dropdown_options":{"id":"affinity_list_field_dropdown_options","name":"Affinity List Field Dropdown Options","description":"List the selectable options on a dropdown or ranked-dropdown company or person field. Writing such a field needs the option ID, not its text.","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Affinity API key, sent as a bearer token"},"entityType":{"type":"string","required":true,"visibility":"user-or-llm","description":"Which field family the field belongs to: companies or persons"},"fieldId":{"type":"string","required":true,"visibility":"user-or-llm","description":"The dropdown or ranked-dropdown field ID"},"cursor":{"type":"string","required":false,"visibility":"user-or-llm","description":"Cursor from a previous page, returned as nextCursor or prevCursor"},"limit":{"type":"number","required":false,"visibility":"user-or-llm","description":"Number of items to return per page, 1-100. Defaults to 100"}},"oauth":{"required":false,"provider":"affinity","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"affinity_list_field_metadata":{"id":"affinity_list_field_metadata","name":"Affinity List Field Metadata","description":"List the non-list company or person fields, with the value type, filter operators, and sort support of each. Start here to find the Field IDs the read and write tools take.","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Affinity API key, sent as a bearer token"},"entityType":{"type":"string","required":true,"visibility":"user-or-llm","description":"Which fields to describe: companies or persons"},"includes":{"type":"json","required":false,"visibility":"user-or-llm","description":"Extra properties to return: [\\"filterability\\",\\"sortability\\"]. Both are omitted unless requested here"},"filter":{"type":"string","required":false,"visibility":"user-or-llm","description":"Affinity Filtering Language expression. This endpoint filters on name only, e.g. \\"name=~Status\\""},"cursor":{"type":"string","required":false,"visibility":"user-or-llm","description":"Cursor from a previous page, returned as nextCursor or prevCursor"},"limit":{"type":"number","required":false,"visibility":"user-or-llm","description":"Number of items to return per page, 1-100. Defaults to 100"}},"oauth":{"required":false,"provider":"affinity","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"affinity_list_field_value_changes":{"id":"affinity_list_field_value_changes","name":"Affinity List Field Value Changes","description":"Page through field value changes across the whole workspace. Built for delta sync: follow nextCursor to the end of a run, then resume from the last cursor next time.","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Affinity API key, sent as a bearer token"},"filter":{"type":"string","required":false,"visibility":"user-or-llm","description":"Affinity Filtering Language expression over field.id, listEntry.id, changer.id, changedAt, or actionType. Resume a sync with e.g. \\"changedAt>2026-06-01T12:00:00Z\\""},"orderBy":{"type":"json","required":false,"visibility":"user-or-llm","description":"Sort order: [\\"changedAt\\"] for oldest first (the default), [\\"-changedAt\\"] for newest first"},"cursor":{"type":"string","required":false,"visibility":"user-or-llm","description":"Cursor from a previous page, returned as nextCursor or prevCursor"},"limit":{"type":"number","required":false,"visibility":"user-or-llm","description":"Number of items to return per page, 1-100. Defaults to 100"}},"oauth":{"required":false,"provider":"affinity","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"affinity_list_investor_executive_connections":{"id":"affinity_list_investor_executive_connections","name":"Affinity List Investor Executive Connections","description":"Find warm paths into a company through investment history: which investors in your Affinity data backed a company the people you want to reach once led. Grouped by target, strongest first.","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Affinity API key, sent as a bearer token"},"filter":{"type":"string","required":true,"visibility":"user-or-llm","description":"Required scope. The only supported filter is target.currentCompany.id, e.g. \\"target.currentCompany.id=123\\""},"cursor":{"type":"string","required":false,"visibility":"user-or-llm","description":"Cursor from a previous page, returned as nextCursor or prevCursor"},"limit":{"type":"number","required":false,"visibility":"user-or-llm","description":"Number of targets to return per page, 1-50. Defaults to 20"},"totalCount":{"type":"boolean","required":false,"visibility":"user-or-llm","description":"Include the total size of the collection. Costs an extra query"}},"oauth":{"required":false,"provider":"affinity","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"affinity_list_list_entries":{"id":"affinity_list_list_entries","name":"Affinity List List Entries","description":"Page through the rows of a list. Rows come back without field data unless Field IDs or Field Types asks for it.","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Affinity API key, sent as a bearer token"},"listId":{"type":"string","required":true,"visibility":"user-or-llm","description":"The list ID"},"fieldIds":{"type":"json","required":false,"visibility":"user-or-llm","description":"Field IDs to return values for, e.g. [\\"affinity-data-location\\"]. Mutually exclusive with Field Types"},"fieldTypes":{"type":"json","required":false,"visibility":"user-or-llm","description":"Field categories to return values for: enriched, global, list, or relationship-intelligence. Mutually exclusive with Field IDs"},"cursor":{"type":"string","required":false,"visibility":"user-or-llm","description":"Cursor from a previous page, returned as nextCursor or prevCursor"},"limit":{"type":"number","required":false,"visibility":"user-or-llm","description":"Number of items to return per page, 1-100. Defaults to 100"}},"oauth":{"required":false,"provider":"affinity","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"affinity_list_list_entry_field_value_changes":{"id":"affinity_list_list_entry_field_value_changes","name":"Affinity List List Entry Field Value Changes","description":"Page through the history of one list row — who changed which field, when, and to what.","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Affinity API key, sent as a bearer token"},"listId":{"type":"string","required":true,"visibility":"user-or-llm","description":"The list ID"},"listEntryId":{"type":"string","required":true,"visibility":"user-or-llm","description":"The list entry ID"},"filter":{"type":"string","required":false,"visibility":"user-or-llm","description":"Affinity Filtering Language expression over field.id, changer.id, changedAt, or actionType, e.g. \\"field.id=field-1234\\""},"cursor":{"type":"string","required":false,"visibility":"user-or-llm","description":"Cursor from a previous page, returned as nextCursor or prevCursor"},"limit":{"type":"number","required":false,"visibility":"user-or-llm","description":"Number of items to return per page, 1-100. Defaults to 100"}},"oauth":{"required":false,"provider":"affinity","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"affinity_list_list_entry_fields":{"id":"affinity_list_list_entry_fields","name":"Affinity List List Entry Fields","description":"Page through every field value on one list row, including the list-specific columns. All fields are returned unless narrowed.","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Affinity API key, sent as a bearer token"},"listId":{"type":"string","required":true,"visibility":"user-or-llm","description":"The list ID"},"listEntryId":{"type":"string","required":true,"visibility":"user-or-llm","description":"The list entry ID"},"ids":{"type":"json","required":false,"visibility":"user-or-llm","description":"Restrict to these field IDs. Mutually exclusive with Field Types"},"types":{"type":"json","required":false,"visibility":"user-or-llm","description":"Restrict to these field categories: enriched, global, list, relationship-intelligence. Mutually exclusive with Field IDs"},"cursor":{"type":"string","required":false,"visibility":"user-or-llm","description":"Cursor from a previous page, returned as nextCursor or prevCursor"},"limit":{"type":"number","required":false,"visibility":"user-or-llm","description":"Number of items to return per page, 1-100. Defaults to 20"}},"oauth":{"required":false,"provider":"affinity","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"affinity_list_list_field_dropdown_options":{"id":"affinity_list_list_field_dropdown_options","name":"Affinity List List Field Dropdown Options","description":"List the selectable options on a dropdown, ranked-dropdown, or status-dropdown field of a list.","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Affinity API key, sent as a bearer token"},"listId":{"type":"string","required":true,"visibility":"user-or-llm","description":"The list ID"},"fieldId":{"type":"string","required":true,"visibility":"user-or-llm","description":"The dropdown field ID on that list"},"cursor":{"type":"string","required":false,"visibility":"user-or-llm","description":"Cursor from a previous page, returned as nextCursor or prevCursor"},"limit":{"type":"number","required":false,"visibility":"user-or-llm","description":"Number of items to return per page, 1-100. Defaults to 100"}},"oauth":{"required":false,"provider":"affinity","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"affinity_list_list_fields":{"id":"affinity_list_list_fields","name":"Affinity List List Fields","description":"List the fields available on one list, including its list-specific columns. Use these Field IDs when reading or writing list entries.","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Affinity API key, sent as a bearer token"},"listId":{"type":"string","required":true,"visibility":"user-or-llm","description":"The list ID"},"includes":{"type":"json","required":false,"visibility":"user-or-llm","description":"Extra properties to return: [\\"filterability\\",\\"sortability\\"]. Both are omitted unless requested here"},"filter":{"type":"string","required":false,"visibility":"user-or-llm","description":"Affinity Filtering Language expression. This endpoint filters on name only, e.g. \\"name=~Stage\\""},"cursor":{"type":"string","required":false,"visibility":"user-or-llm","description":"Cursor from a previous page, returned as nextCursor or prevCursor"},"limit":{"type":"number","required":false,"visibility":"user-or-llm","description":"Number of items to return per page, 1-100. Defaults to 100"}},"oauth":{"required":false,"provider":"affinity","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"affinity_list_lists":{"id":"affinity_list_lists","name":"Affinity List Lists","description":"Page through the lists in the organization that the caller can view.","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Affinity API key, sent as a bearer token"},"term":{"type":"string","required":false,"visibility":"user-or-llm","description":"Case-insensitive substring match on the list name"},"cursor":{"type":"string","required":false,"visibility":"user-or-llm","description":"Cursor from a previous page, returned as nextCursor or prevCursor"},"limit":{"type":"number","required":false,"visibility":"user-or-llm","description":"Number of items to return per page, 1-100. Defaults to 100"}},"oauth":{"required":false,"provider":"affinity","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"affinity_list_meetings":{"id":"affinity_list_meetings","name":"Affinity List Meetings","description":"Page through past and upcoming meetings with their organizer and attendees.","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Affinity API key, sent as a bearer token"},"filter":{"type":"string","required":false,"visibility":"user-or-llm","description":"Affinity Filtering Language expression, e.g. \\"createdAt>=2026-01-01\\""},"cursor":{"type":"string","required":false,"visibility":"user-or-llm","description":"Cursor from a previous page, returned as nextCursor or prevCursor"},"limit":{"type":"number","required":false,"visibility":"user-or-llm","description":"Number of items to return per page, 1-100. Defaults to 100"}},"oauth":{"required":false,"provider":"affinity","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"affinity_list_merge_tasks":{"id":"affinity_list_merge_tasks","name":"Affinity List Merge Tasks","description":"Page through merge tasks, each summarizing how many of its merges are in progress, succeeded, or failed.","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Affinity API key, sent as a bearer token"},"entityType":{"type":"string","required":true,"visibility":"user-or-llm","description":"Which merge tasks to list: companies or persons"},"filter":{"type":"string","required":false,"visibility":"user-or-llm","description":"Affinity Filtering Language expression. This endpoint filters on status only, e.g. \\"status=in-progress\\""},"cursor":{"type":"string","required":false,"visibility":"user-or-llm","description":"Cursor from a previous page, returned as nextCursor or prevCursor"},"limit":{"type":"number","required":false,"visibility":"user-or-llm","description":"Number of items to return per page, 1-100. Defaults to 100"}},"oauth":{"required":false,"provider":"affinity","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"affinity_list_merges":{"id":"affinity_list_merges","name":"Affinity List Merges","description":"Page through the company or person merges the organization has run, with the status and the records involved in each.","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Affinity API key, sent as a bearer token"},"entityType":{"type":"string","required":true,"visibility":"user-or-llm","description":"Which merges to list: companies or persons"},"filter":{"type":"string","required":false,"visibility":"user-or-llm","description":"Affinity Filtering Language expression over status or taskId, e.g. \\"status=failed\\""},"cursor":{"type":"string","required":false,"visibility":"user-or-llm","description":"Cursor from a previous page, returned as nextCursor or prevCursor"},"limit":{"type":"number","required":false,"visibility":"user-or-llm","description":"Number of items to return per page, 1-100. Defaults to 100"}},"oauth":{"required":false,"provider":"affinity","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"affinity_list_note_attached_companies":{"id":"affinity_list_note_attached_companies","name":"Affinity List Note Attached Companies","description":"List the companies directly attached to one note.","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Affinity API key, sent as a bearer token"},"noteId":{"type":"string","required":true,"visibility":"user-or-llm","description":"The note ID"},"cursor":{"type":"string","required":false,"visibility":"user-or-llm","description":"Cursor from a previous page, returned as nextCursor or prevCursor"},"limit":{"type":"number","required":false,"visibility":"user-or-llm","description":"Number of items to return per page, 1-100. Defaults to 100"},"totalCount":{"type":"boolean","required":false,"visibility":"user-or-llm","description":"Include the total size of the collection. Costs an extra query"}},"oauth":{"required":false,"provider":"affinity","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"affinity_list_note_attached_opportunities":{"id":"affinity_list_note_attached_opportunities","name":"Affinity List Note Attached Opportunities","description":"List the opportunities directly attached to one note.","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Affinity API key, sent as a bearer token"},"noteId":{"type":"string","required":true,"visibility":"user-or-llm","description":"The note ID"},"cursor":{"type":"string","required":false,"visibility":"user-or-llm","description":"Cursor from a previous page, returned as nextCursor or prevCursor"},"limit":{"type":"number","required":false,"visibility":"user-or-llm","description":"Number of items to return per page, 1-100. Defaults to 100"},"totalCount":{"type":"boolean","required":false,"visibility":"user-or-llm","description":"Include the total size of the collection. Costs an extra query"}},"oauth":{"required":false,"provider":"affinity","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"affinity_list_note_attached_persons":{"id":"affinity_list_note_attached_persons","name":"Affinity List Note Attached Persons","description":"List the persons directly attached to one note.","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Affinity API key, sent as a bearer token"},"noteId":{"type":"string","required":true,"visibility":"user-or-llm","description":"The note ID"},"cursor":{"type":"string","required":false,"visibility":"user-or-llm","description":"Cursor from a previous page, returned as nextCursor or prevCursor"},"limit":{"type":"number","required":false,"visibility":"user-or-llm","description":"Number of items to return per page, 1-100. Defaults to 100"},"totalCount":{"type":"boolean","required":false,"visibility":"user-or-llm","description":"Include the total size of the collection. Costs an extra query"}},"oauth":{"required":false,"provider":"affinity","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"affinity_list_note_replies":{"id":"affinity_list_note_replies","name":"Affinity List Note Replies","description":"Page through the replies on one note, including AI Notetaker replies.","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Affinity API key, sent as a bearer token"},"noteId":{"type":"string","required":true,"visibility":"user-or-llm","description":"The note ID whose replies to read"},"filter":{"type":"string","required":false,"visibility":"user-or-llm","description":"Affinity Filtering Language expression, e.g. \\"createdAt>=2026-01-01\\""},"cursor":{"type":"string","required":false,"visibility":"user-or-llm","description":"Cursor from a previous page, returned as nextCursor or prevCursor"},"limit":{"type":"number","required":false,"visibility":"user-or-llm","description":"Number of items to return per page, 1-100. Defaults to 100"},"totalCount":{"type":"boolean","required":false,"visibility":"user-or-llm","description":"Include the total size of the collection. Costs an extra query"}},"oauth":{"required":false,"provider":"affinity","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"affinity_list_notes":{"id":"affinity_list_notes","name":"Affinity List Notes","description":"Page through every note the caller can see. Replies are excluded.","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Affinity API key, sent as a bearer token"},"includes":{"type":"json","required":false,"visibility":"user-or-llm","description":"Extra properties to return, e.g. [\\"repliesCount\\",\\"personsPreview\\",\\"companiesPreview\\",\\"opportunitiesPreview\\"]. Those four fields are omitted unless requested here"},"filter":{"type":"string","required":false,"visibility":"user-or-llm","description":"Affinity Filtering Language expression, e.g. \\"createdAt>=2026-01-01\\""},"cursor":{"type":"string","required":false,"visibility":"user-or-llm","description":"Cursor from a previous page, returned as nextCursor or prevCursor"},"limit":{"type":"number","required":false,"visibility":"user-or-llm","description":"Number of items to return per page, 1-100. Defaults to 100"},"totalCount":{"type":"boolean","required":false,"visibility":"user-or-llm","description":"Include the total size of the collection. Costs an extra query"}},"oauth":{"required":false,"provider":"affinity","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"affinity_list_opportunities":{"id":"affinity_list_opportunities","name":"Affinity List Opportunities","description":"Page through opportunities. Field data lives on the list entry, not here — read it through the list or saved view the opportunity belongs to.","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Affinity API key, sent as a bearer token"},"ids":{"type":"json","required":false,"visibility":"user-or-llm","description":"Restrict the page to these opportunity IDs, e.g. [1, 2, 3]"},"cursor":{"type":"string","required":false,"visibility":"user-or-llm","description":"Cursor from a previous page, returned as nextCursor or prevCursor"},"limit":{"type":"number","required":false,"visibility":"user-or-llm","description":"Number of items to return per page, 1-100. Defaults to 100"}},"oauth":{"required":false,"provider":"affinity","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"affinity_list_persons":{"id":"affinity_list_persons","name":"Affinity List Persons","description":"Page through persons. Persons come back without field data unless Field IDs or Field Types asks for it.","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Affinity API key, sent as a bearer token"},"ids":{"type":"json","required":false,"visibility":"user-or-llm","description":"Restrict the page to these person IDs, e.g. [1, 2, 3]"},"fieldIds":{"type":"json","required":false,"visibility":"user-or-llm","description":"Field IDs to return values for, e.g. [\\"affinity-data-location\\"]. Mutually exclusive with Field Types"},"fieldTypes":{"type":"json","required":false,"visibility":"user-or-llm","description":"Field categories to return values for: enriched, global, or relationship-intelligence. Mutually exclusive with Field IDs"},"cursor":{"type":"string","required":false,"visibility":"user-or-llm","description":"Cursor from a previous page, returned as nextCursor or prevCursor"},"limit":{"type":"number","required":false,"visibility":"user-or-llm","description":"Number of items to return per page, 1-100. Defaults to 100"}},"oauth":{"required":false,"provider":"affinity","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"affinity_list_reminders":{"id":"affinity_list_reminders","name":"Affinity List Reminders","description":"Page through the reminders the caller can see. Filter by status to surface what is overdue.","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Affinity API key, sent as a bearer token"},"filter":{"type":"string","required":false,"visibility":"user-or-llm","description":"Affinity Filtering Language expression, e.g. \\"createdAt>=2026-01-01\\""},"cursor":{"type":"string","required":false,"visibility":"user-or-llm","description":"Cursor from a previous page, returned as nextCursor or prevCursor"},"limit":{"type":"number","required":false,"visibility":"user-or-llm","description":"Number of items to return per page, 1-100. Defaults to 100"},"totalCount":{"type":"boolean","required":false,"visibility":"user-or-llm","description":"Include the total size of the collection. Costs an extra query"}},"oauth":{"required":false,"provider":"affinity","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"affinity_list_saved_view_entries":{"id":"affinity_list_saved_view_entries","name":"Affinity List Saved View Entries","description":"Page through the rows of a saved view. The view\'s own filters and columns decide which rows and which field data come back.","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Affinity API key, sent as a bearer token"},"listId":{"type":"string","required":true,"visibility":"user-or-llm","description":"The list ID"},"viewId":{"type":"string","required":true,"visibility":"user-or-llm","description":"The saved view ID"},"cursor":{"type":"string","required":false,"visibility":"user-or-llm","description":"Cursor from a previous page, returned as nextCursor or prevCursor"},"limit":{"type":"number","required":false,"visibility":"user-or-llm","description":"Number of items to return per page, 1-100. Defaults to 100"}},"oauth":{"required":false,"provider":"affinity","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"affinity_list_saved_views":{"id":"affinity_list_saved_views","name":"Affinity List Saved Views","description":"List the saved views on a list that the caller can view.","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Affinity API key, sent as a bearer token"},"listId":{"type":"string","required":true,"visibility":"user-or-llm","description":"The list ID"},"cursor":{"type":"string","required":false,"visibility":"user-or-llm","description":"Cursor from a previous page, returned as nextCursor or prevCursor"},"limit":{"type":"number","required":false,"visibility":"user-or-llm","description":"Number of items to return per page, 1-100. Defaults to 100"}},"oauth":{"required":false,"provider":"affinity","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"affinity_list_transcript_fragments":{"id":"affinity_list_transcript_fragments","name":"Affinity List Transcript Fragments","description":"Page through everything said in a meeting, segment by segment with the speaker.","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Affinity API key, sent as a bearer token"},"transcriptId":{"type":"string","required":true,"visibility":"user-or-llm","description":"The transcript ID"},"cursor":{"type":"string","required":false,"visibility":"user-or-llm","description":"Cursor from a previous page, returned as nextCursor or prevCursor"},"limit":{"type":"number","required":false,"visibility":"user-or-llm","description":"Number of items to return per page, 1-100. Defaults to 100"},"totalCount":{"type":"boolean","required":false,"visibility":"user-or-llm","description":"Include the total size of the collection. Costs an extra query"}},"oauth":{"required":false,"provider":"affinity","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"affinity_list_transcripts":{"id":"affinity_list_transcripts","name":"Affinity List Transcripts","description":"Page through meeting transcript metadata. Read one transcript to get what was actually said.","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Affinity API key, sent as a bearer token"},"filter":{"type":"string","required":false,"visibility":"user-or-llm","description":"Affinity Filtering Language expression, e.g. \\"createdAt>=2026-01-01\\""},"cursor":{"type":"string","required":false,"visibility":"user-or-llm","description":"Cursor from a previous page, returned as nextCursor or prevCursor"},"limit":{"type":"number","required":false,"visibility":"user-or-llm","description":"Number of items to return per page, 1-100. Defaults to 100"},"totalCount":{"type":"boolean","required":false,"visibility":"user-or-llm","description":"Include the total size of the collection. Costs an extra query"}},"oauth":{"required":false,"provider":"affinity","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"affinity_list_users":{"id":"affinity_list_users","name":"Affinity List Users","description":"Page through the internal users in the organization. Email addresses and roles are returned only to callers with the \\"Manage Users\\" permission.","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Affinity API key, sent as a bearer token"},"term":{"type":"string","required":false,"visibility":"user-or-llm","description":"Case-insensitive match across first name, last name, and primary email"},"filter":{"type":"string","required":false,"visibility":"user-or-llm","description":"Affinity Filtering Language expression over id or status, e.g. \\"status=active\\""},"cursor":{"type":"string","required":false,"visibility":"user-or-llm","description":"Cursor from a previous page, returned as nextCursor or prevCursor"},"limit":{"type":"number","required":false,"visibility":"user-or-llm","description":"Number of items to return per page, 1-100. Defaults to 100"}},"oauth":{"required":false,"provider":"affinity","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"affinity_search_companies":{"id":"affinity_search_companies","name":"Affinity Search Companies","description":"Search companies by filters, sorts, and a free-text term. Requires the \\"Export All Organizations directory\\" permission.","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Affinity API key, sent as a bearer token"},"filters":{"type":"json","required":false,"visibility":"user-or-llm","description":"Filter group as {operator: \\"and\\"|\\"or\\", filters: [...]}, at most 50 leaves. Each leaf is {valueType, fieldId, operator, value}, and a leaf may itself be a nested group"},"searchTerm":{"type":"string","required":false,"visibility":"user-or-llm","description":"Free-text term matched against the searchable fields. At least 3 characters"},"searchFieldIds":{"type":"json","required":false,"visibility":"user-or-llm","description":"Field IDs the search term is matched against. Defaults to the searchable fields"},"sorts":{"type":"json","required":false,"visibility":"user-or-llm","description":"Sort order as [{fieldId, direction: \\"asc\\"|\\"desc\\", attributeId?}], up to 5, applied in order"},"fieldIds":{"type":"json","required":false,"visibility":"user-or-llm","description":"Field IDs to return values for, e.g. [\\"affinity-data-location\\"]. Mutually exclusive with Field Types"},"fieldTypes":{"type":"json","required":false,"visibility":"user-or-llm","description":"Field categories to return values for: enriched, global, or relationship-intelligence. Mutually exclusive with Field IDs"},"cursor":{"type":"string","required":false,"visibility":"user-or-llm","description":"Cursor from a previous page, returned as nextCursor or prevCursor"},"limit":{"type":"number","required":false,"visibility":"user-or-llm","description":"Number of items to return per page, 1-100. Defaults to 100"},"totalCount":{"type":"boolean","required":false,"visibility":"user-or-llm","description":"Include the total size of the collection. Costs an extra query"}},"oauth":{"required":false,"provider":"affinity","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"affinity_search_files":{"id":"affinity_search_files","name":"Affinity Search Files","description":"Search files by keyword, ordered by relevance. Narrow to specific files or to one company, or leave both unset to search the whole account.","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Affinity API key, sent as a bearer token"},"prompt":{"type":"string","required":true,"visibility":"user-or-llm","description":"What to search for. Between 3 and 500 characters"},"ids":{"type":"json","required":false,"visibility":"user-or-llm","description":"Restrict the search to these file IDs. Cannot be combined with Company ID"},"companyId":{"type":"string","required":false,"visibility":"user-or-llm","description":"Restrict the search to one company\'s files. Cannot be combined with file IDs"},"limit":{"type":"number","required":false,"visibility":"user-or-llm","description":"Maximum number of files to return, 1-100. Defaults to 20"}},"oauth":{"required":false,"provider":"affinity","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"affinity_search_list_entries":{"id":"affinity_search_list_entries","name":"Affinity Search List Entries","description":"Search the rows of one list by filters, sorts, and a free-text term. Requires the \\"Export data from Lists\\" permission.","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Affinity API key, sent as a bearer token"},"listId":{"type":"string","required":true,"visibility":"user-or-llm","description":"The list ID to search"},"filters":{"type":"json","required":false,"visibility":"user-or-llm","description":"Filter group as {operator: \\"and\\"|\\"or\\", filters: [...]}, at most 50 leaves. Each leaf is {valueType, fieldId, operator, value}, and a leaf may itself be a nested group"},"searchTerm":{"type":"string","required":false,"visibility":"user-or-llm","description":"Free-text term matched against the searchable fields. At least 3 characters"},"searchFieldIds":{"type":"json","required":false,"visibility":"user-or-llm","description":"Field IDs the search term is matched against. Defaults to the searchable fields"},"sorts":{"type":"json","required":false,"visibility":"user-or-llm","description":"Sort order as [{fieldId, direction: \\"asc\\"|\\"desc\\", attributeId?}], up to 5, applied in order"},"fieldIds":{"type":"json","required":false,"visibility":"user-or-llm","description":"Field IDs to return values for, e.g. [\\"affinity-data-location\\"]. Mutually exclusive with Field Types"},"fieldTypes":{"type":"json","required":false,"visibility":"user-or-llm","description":"Field categories to return values for: enriched, global, list, or relationship-intelligence. Mutually exclusive with Field IDs"},"cursor":{"type":"string","required":false,"visibility":"user-or-llm","description":"Cursor from a previous page, returned as nextCursor or prevCursor"},"limit":{"type":"number","required":false,"visibility":"user-or-llm","description":"Number of items to return per page, 1-100. Defaults to 100"},"totalCount":{"type":"boolean","required":false,"visibility":"user-or-llm","description":"Include the total size of the collection. Costs an extra query"}},"oauth":{"required":false,"provider":"affinity","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"affinity_search_notes":{"id":"affinity_search_notes","name":"Affinity Search Notes","description":"Search notes by keyword, ordered by relevance. Narrow to specific notes or to one company, or leave both unset to search the whole account.","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Affinity API key, sent as a bearer token"},"prompt":{"type":"string","required":true,"visibility":"user-or-llm","description":"What to search for. Between 3 and 500 characters"},"ids":{"type":"json","required":false,"visibility":"user-or-llm","description":"Restrict the search to these note IDs. Cannot be combined with Company ID"},"companyId":{"type":"string","required":false,"visibility":"user-or-llm","description":"Restrict the search to one company\'s notes. Cannot be combined with note IDs"},"limit":{"type":"number","required":false,"visibility":"user-or-llm","description":"Maximum number of notes to return, 1-100. Defaults to 20"}},"oauth":{"required":false,"provider":"affinity","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"affinity_search_persons":{"id":"affinity_search_persons","name":"Affinity Search Persons","description":"Search persons by filters, sorts, and a free-text term. Requires the \\"Export All People directory\\" permission.","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Affinity API key, sent as a bearer token"},"filters":{"type":"json","required":false,"visibility":"user-or-llm","description":"Filter group as {operator: \\"and\\"|\\"or\\", filters: [...]}, at most 50 leaves. Each leaf is {valueType, fieldId, operator, value}, and a leaf may itself be a nested group"},"searchTerm":{"type":"string","required":false,"visibility":"user-or-llm","description":"Free-text term matched against the searchable fields. At least 3 characters"},"searchFieldIds":{"type":"json","required":false,"visibility":"user-or-llm","description":"Field IDs the search term is matched against. Defaults to the searchable fields"},"sorts":{"type":"json","required":false,"visibility":"user-or-llm","description":"Sort order as [{fieldId, direction: \\"asc\\"|\\"desc\\", attributeId?}], up to 5, applied in order"},"fieldIds":{"type":"json","required":false,"visibility":"user-or-llm","description":"Field IDs to return values for, e.g. [\\"affinity-data-location\\"]. Mutually exclusive with Field Types"},"fieldTypes":{"type":"json","required":false,"visibility":"user-or-llm","description":"Field categories to return values for: enriched, global, or relationship-intelligence. Mutually exclusive with Field IDs"},"cursor":{"type":"string","required":false,"visibility":"user-or-llm","description":"Cursor from a previous page, returned as nextCursor or prevCursor"},"limit":{"type":"number","required":false,"visibility":"user-or-llm","description":"Number of items to return per page, 1-100. Defaults to 100"},"totalCount":{"type":"boolean","required":false,"visibility":"user-or-llm","description":"Include the total size of the collection. Costs an extra query"}},"oauth":{"required":false,"provider":"affinity","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"affinity_semantic_search":{"id":"affinity_semantic_search","name":"Affinity Semantic Search","description":"Find companies from a description in plain language — industry, technology, stage, or business model. Currently searches companies only.","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Affinity API key, sent as a bearer token"},"prompt":{"type":"string","required":true,"visibility":"user-or-llm","description":"What to look for, in plain language, e.g. \\"climate tech companies in our pipeline\\". Up to 500 characters"},"listIds":{"type":"json","required":false,"visibility":"user-or-llm","description":"Restrict the search to companies on these lists, e.g. [1, 2]"},"limit":{"type":"number","required":false,"visibility":"user-or-llm","description":"Maximum number of companies to return, 1-100. Defaults to 100"}},"oauth":{"required":false,"provider":"affinity","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"affinity_update_entity_field_value":{"id":"affinity_update_entity_field_value","name":"Affinity Update Entity Field Value","description":"Write one non-list field value on a company or person. The value type must match how the field is defined.","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Affinity API key, sent as a bearer token"},"entityType":{"type":"string","required":true,"visibility":"user-or-llm","description":"Which entity to write the field on: companies or persons"},"entityId":{"type":"string","required":true,"visibility":"user-or-llm","description":"ID of that company or person"},"fieldId":{"type":"string","required":true,"visibility":"user-or-llm","description":"The field ID to write"},"value":{"type":"json","required":true,"visibility":"user-or-llm","description":"The new value as {type, data}, where type matches the field\'s value type. Examples: {\\"type\\":\\"text\\",\\"data\\":\\"Series B\\"}, {\\"type\\":\\"number\\",\\"data\\":42}, {\\"type\\":\\"dropdown\\",\\"data\\":{\\"dropdownOptionId\\":7}}, {\\"type\\":\\"person\\",\\"data\\":{\\"id\\":123}}, {\\"type\\":\\"person-multi\\",\\"data\\":[{\\"id\\":123}]}. Pass data as null to clear the field"}},"oauth":{"required":false,"provider":"affinity","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"affinity_update_list_entry_field":{"id":"affinity_update_list_entry_field","name":"Affinity Update List Entry Field","description":"Write one field value on a list row. Requires the \\"Export data from Lists\\" permission.","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Affinity API key, sent as a bearer token"},"listId":{"type":"string","required":true,"visibility":"user-or-llm","description":"The list ID"},"listEntryId":{"type":"string","required":true,"visibility":"user-or-llm","description":"The list entry ID"},"fieldId":{"type":"string","required":true,"visibility":"user-or-llm","description":"The field ID to write"},"value":{"type":"json","required":true,"visibility":"user-or-llm","description":"The new value as {type, data}, where type matches the field\'s value type. Examples: {\\"type\\":\\"text\\",\\"data\\":\\"Series B\\"}, {\\"type\\":\\"number\\",\\"data\\":42}, {\\"type\\":\\"dropdown\\",\\"data\\":{\\"dropdownOptionId\\":7}}, {\\"type\\":\\"person\\",\\"data\\":{\\"id\\":123}}, {\\"type\\":\\"person-multi\\",\\"data\\":[{\\"id\\":123}]}. Pass data as null to clear the field"}},"oauth":{"required":false,"provider":"affinity","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"affinity_update_list_field_dropdown_option":{"id":"affinity_update_list_field_dropdown_option","name":"Affinity Update List Field Dropdown Option","description":"Change a dropdown option on a list field. Every field is optional — supply only what should change, and only fields the option\'s kind actually has.","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Affinity API key, sent as a bearer token"},"listId":{"type":"string","required":true,"visibility":"user-or-llm","description":"The list ID"},"fieldId":{"type":"string","required":true,"visibility":"user-or-llm","description":"The dropdown field ID on that list"},"dropdownOptionId":{"type":"string","required":true,"visibility":"user-or-llm","description":"The dropdown option ID to update"},"text":{"type":"string","required":false,"visibility":"user-or-llm","description":"Replacement option label. Supply at least one field to change"},"rank":{"type":"number","required":false,"visibility":"user-or-llm","description":"Sort order. Required on a ranked-dropdown or status-dropdown option"},"color":{"type":"string","required":false,"visibility":"user-or-llm","description":"Option color: white, gray, blue, green, purple, orange, or red. Required on a ranked-dropdown or status-dropdown option"},"statusCategory":{"type":"string","required":false,"visibility":"user-or-llm","description":"Pipeline meaning of the option: open, won, lost, or on-hold. Status-dropdown options only"},"winRate":{"type":"number","required":false,"visibility":"user-or-llm","description":"Expected win rate of the status. Status-dropdown options only"}},"oauth":{"required":false,"provider":"affinity","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"affinity_update_note":{"id":"affinity_update_note","name":"Affinity Update Note","description":"Rewrite a note\'s body or replace which records it is attached to. Each list of IDs replaces that association wholesale, an empty list clears it, and omitting one leaves it untouched. A note\'s type cannot be changed.","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Affinity API key, sent as a bearer token"},"noteId":{"type":"string","required":true,"visibility":"user-or-llm","description":"The note ID to update"},"html":{"type":"string","required":false,"visibility":"user-or-llm","description":"Replacement note body as HTML"},"companyIds":{"type":"json","required":false,"visibility":"user-or-llm","description":"Replacement set of attached companies, e.g. [1, 2]. Send [] to detach every company; omit to leave them unchanged"},"personIds":{"type":"json","required":false,"visibility":"user-or-llm","description":"Replacement set of attached persons, e.g. [1, 2]. Send [] to detach every person; omit to leave them unchanged"},"opportunityIds":{"type":"json","required":false,"visibility":"user-or-llm","description":"Replacement set of attached opportunities, e.g. [1, 2]. Send [] to detach every opportunity; omit to leave them unchanged"}},"oauth":{"required":false,"provider":"affinity","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"agentmail_create_draft":{"id":"agentmail_create_draft","name":"Create Draft","description":"Create a new email draft in AgentMail","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"AgentMail API key"},"inboxId":{"type":"string","required":true,"visibility":"user-or-llm","description":"ID of the inbox to create the draft in"},"to":{"type":"string","required":false,"visibility":"user-or-llm","description":"Recipient email addresses (comma-separated)"},"subject":{"type":"string","required":false,"visibility":"user-or-llm","description":"Draft subject line"},"text":{"type":"string","required":false,"visibility":"user-or-llm","description":"Plain text draft body"},"html":{"type":"string","required":false,"visibility":"user-or-llm","description":"HTML draft body"},"cc":{"type":"string","required":false,"visibility":"user-or-llm","description":"CC recipient email addresses (comma-separated)"},"bcc":{"type":"string","required":false,"visibility":"user-or-llm","description":"BCC recipient email addresses (comma-separated)"},"inReplyTo":{"type":"string","required":false,"visibility":"user-or-llm","description":"ID of message being replied to"},"sendAt":{"type":"string","required":false,"visibility":"user-or-llm","description":"ISO 8601 timestamp to schedule sending"}},"oauth":{"required":false,"provider":"agentmail","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"agentmail_create_inbox":{"id":"agentmail_create_inbox","name":"Create Inbox","description":"Create a new email inbox with AgentMail","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"AgentMail API key"},"username":{"type":"string","required":false,"visibility":"user-or-llm","description":"Username for the inbox email address"},"domain":{"type":"string","required":false,"visibility":"user-or-llm","description":"Domain for the inbox email address"},"displayName":{"type":"string","required":false,"visibility":"user-or-llm","description":"Display name for the inbox"}},"oauth":{"required":false,"provider":"agentmail","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"agentmail_delete_draft":{"id":"agentmail_delete_draft","name":"Delete Draft","description":"Delete an email draft in AgentMail","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"AgentMail API key"},"inboxId":{"type":"string","required":true,"visibility":"user-or-llm","description":"ID of the inbox containing the draft"},"draftId":{"type":"string","required":true,"visibility":"user-or-llm","description":"ID of the draft to delete"}},"oauth":{"required":false,"provider":"agentmail","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"agentmail_delete_inbox":{"id":"agentmail_delete_inbox","name":"Delete Inbox","description":"Delete an email inbox in AgentMail","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"AgentMail API key"},"inboxId":{"type":"string","required":true,"visibility":"user-or-llm","description":"ID of the inbox to delete"}},"oauth":{"required":false,"provider":"agentmail","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"agentmail_delete_thread":{"id":"agentmail_delete_thread","name":"Delete Thread","description":"Delete an email thread in AgentMail (moves to trash, or permanently deletes if already in trash)","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"AgentMail API key"},"inboxId":{"type":"string","required":true,"visibility":"user-or-llm","description":"ID of the inbox containing the thread"},"threadId":{"type":"string","required":true,"visibility":"user-or-llm","description":"ID of the thread to delete"},"permanent":{"type":"boolean","required":false,"visibility":"user-or-llm","description":"Force permanent deletion instead of moving to trash"}},"oauth":{"required":false,"provider":"agentmail","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"agentmail_forward_message":{"id":"agentmail_forward_message","name":"Forward Message","description":"Forward an email message to new recipients in AgentMail","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"AgentMail API key"},"inboxId":{"type":"string","required":true,"visibility":"user-or-llm","description":"ID of the inbox containing the message"},"messageId":{"type":"string","required":true,"visibility":"user-or-llm","description":"ID of the message to forward"},"to":{"type":"string","required":true,"visibility":"user-or-llm","description":"Recipient email addresses (comma-separated)"},"subject":{"type":"string","required":false,"visibility":"user-or-llm","description":"Override subject line"},"text":{"type":"string","required":false,"visibility":"user-or-llm","description":"Additional plain text to prepend"},"html":{"type":"string","required":false,"visibility":"user-or-llm","description":"Additional HTML to prepend"},"cc":{"type":"string","required":false,"visibility":"user-or-llm","description":"CC recipient email addresses (comma-separated)"},"bcc":{"type":"string","required":false,"visibility":"user-or-llm","description":"BCC recipient email addresses (comma-separated)"}},"oauth":{"required":false,"provider":"agentmail","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"agentmail_get_draft":{"id":"agentmail_get_draft","name":"Get Draft","description":"Get details of a specific email draft in AgentMail","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"AgentMail API key"},"inboxId":{"type":"string","required":true,"visibility":"user-or-llm","description":"ID of the inbox the draft belongs to"},"draftId":{"type":"string","required":true,"visibility":"user-or-llm","description":"ID of the draft to retrieve"}},"oauth":{"required":false,"provider":"agentmail","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"agentmail_get_inbox":{"id":"agentmail_get_inbox","name":"Get Inbox","description":"Get details of a specific email inbox in AgentMail","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"AgentMail API key"},"inboxId":{"type":"string","required":true,"visibility":"user-or-llm","description":"ID of the inbox to retrieve"}},"oauth":{"required":false,"provider":"agentmail","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"agentmail_get_message":{"id":"agentmail_get_message","name":"Get Message","description":"Get details of a specific email message in AgentMail","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"AgentMail API key"},"inboxId":{"type":"string","required":true,"visibility":"user-or-llm","description":"ID of the inbox containing the message"},"messageId":{"type":"string","required":true,"visibility":"user-or-llm","description":"ID of the message to retrieve"}},"oauth":{"required":false,"provider":"agentmail","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"agentmail_get_thread":{"id":"agentmail_get_thread","name":"Get Thread","description":"Get details of a specific email thread including messages in AgentMail","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"AgentMail API key"},"inboxId":{"type":"string","required":true,"visibility":"user-or-llm","description":"ID of the inbox containing the thread"},"threadId":{"type":"string","required":true,"visibility":"user-or-llm","description":"ID of the thread to retrieve"}},"oauth":{"required":false,"provider":"agentmail","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"agentmail_list_drafts":{"id":"agentmail_list_drafts","name":"List Drafts","description":"List email drafts in an inbox in AgentMail","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"AgentMail API key"},"inboxId":{"type":"string","required":true,"visibility":"user-or-llm","description":"ID of the inbox to list drafts from"},"limit":{"type":"number","required":false,"visibility":"user-or-llm","description":"Maximum number of drafts to return"},"pageToken":{"type":"string","required":false,"visibility":"user-or-llm","description":"Pagination token for next page of results"}},"oauth":{"required":false,"provider":"agentmail","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"agentmail_list_inboxes":{"id":"agentmail_list_inboxes","name":"List Inboxes","description":"List all email inboxes in AgentMail","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"AgentMail API key"},"limit":{"type":"number","required":false,"visibility":"user-or-llm","description":"Maximum number of inboxes to return"},"pageToken":{"type":"string","required":false,"visibility":"user-or-llm","description":"Pagination token for next page of results"}},"oauth":{"required":false,"provider":"agentmail","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"agentmail_list_messages":{"id":"agentmail_list_messages","name":"List Messages","description":"List messages in an inbox in AgentMail","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"AgentMail API key"},"inboxId":{"type":"string","required":true,"visibility":"user-or-llm","description":"ID of the inbox to list messages from"},"limit":{"type":"number","required":false,"visibility":"user-or-llm","description":"Maximum number of messages to return"},"pageToken":{"type":"string","required":false,"visibility":"user-or-llm","description":"Pagination token for next page of results"}},"oauth":{"required":false,"provider":"agentmail","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"agentmail_list_threads":{"id":"agentmail_list_threads","name":"List Threads","description":"List email threads in AgentMail","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"AgentMail API key"},"inboxId":{"type":"string","required":true,"visibility":"user-or-llm","description":"ID of the inbox to list threads from"},"limit":{"type":"number","required":false,"visibility":"user-or-llm","description":"Maximum number of threads to return"},"pageToken":{"type":"string","required":false,"visibility":"user-or-llm","description":"Pagination token for next page of results"},"labels":{"type":"string","required":false,"visibility":"user-or-llm","description":"Comma-separated labels to filter threads by"},"before":{"type":"string","required":false,"visibility":"user-or-llm","description":"Filter threads before this ISO 8601 timestamp"},"after":{"type":"string","required":false,"visibility":"user-or-llm","description":"Filter threads after this ISO 8601 timestamp"}},"oauth":{"required":false,"provider":"agentmail","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"agentmail_reply_message":{"id":"agentmail_reply_message","name":"Reply to Message","description":"Reply to an existing email message in AgentMail","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"AgentMail API key"},"inboxId":{"type":"string","required":true,"visibility":"user-or-llm","description":"ID of the inbox to reply from"},"messageId":{"type":"string","required":true,"visibility":"user-or-llm","description":"ID of the message to reply to"},"text":{"type":"string","required":false,"visibility":"user-or-llm","description":"Plain text reply body"},"html":{"type":"string","required":false,"visibility":"user-or-llm","description":"HTML reply body"},"to":{"type":"string","required":false,"visibility":"user-or-llm","description":"Override recipient email addresses (comma-separated)"},"cc":{"type":"string","required":false,"visibility":"user-or-llm","description":"CC email addresses (comma-separated)"},"bcc":{"type":"string","required":false,"visibility":"user-or-llm","description":"BCC email addresses (comma-separated)"},"replyAll":{"type":"boolean","required":false,"visibility":"user-or-llm","description":"Reply to all recipients of the original message"}},"oauth":{"required":false,"provider":"agentmail","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"agentmail_send_draft":{"id":"agentmail_send_draft","name":"Send Draft","description":"Send an existing email draft in AgentMail","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"AgentMail API key"},"inboxId":{"type":"string","required":true,"visibility":"user-or-llm","description":"ID of the inbox containing the draft"},"draftId":{"type":"string","required":true,"visibility":"user-or-llm","description":"ID of the draft to send"}},"oauth":{"required":false,"provider":"agentmail","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"agentmail_send_message":{"id":"agentmail_send_message","name":"Send Message","description":"Send an email message from an AgentMail inbox","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"AgentMail API key"},"inboxId":{"type":"string","required":true,"visibility":"user-or-llm","description":"ID of the inbox to send from"},"to":{"type":"string","required":true,"visibility":"user-or-llm","description":"Recipient email address (comma-separated for multiple)"},"subject":{"type":"string","required":true,"visibility":"user-or-llm","description":"Email subject line"},"text":{"type":"string","required":false,"visibility":"user-or-llm","description":"Plain text email body"},"html":{"type":"string","required":false,"visibility":"user-or-llm","description":"HTML email body"},"cc":{"type":"string","required":false,"visibility":"user-or-llm","description":"CC recipient email addresses (comma-separated)"},"bcc":{"type":"string","required":false,"visibility":"user-or-llm","description":"BCC recipient email addresses (comma-separated)"}},"oauth":{"required":false,"provider":"agentmail","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"agentmail_update_draft":{"id":"agentmail_update_draft","name":"Update Draft","description":"Update an existing email draft in AgentMail","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"AgentMail API key"},"inboxId":{"type":"string","required":true,"visibility":"user-or-llm","description":"ID of the inbox containing the draft"},"draftId":{"type":"string","required":true,"visibility":"user-or-llm","description":"ID of the draft to update"},"to":{"type":"string","required":false,"visibility":"user-or-llm","description":"Recipient email addresses (comma-separated)"},"subject":{"type":"string","required":false,"visibility":"user-or-llm","description":"Draft subject line"},"text":{"type":"string","required":false,"visibility":"user-or-llm","description":"Plain text draft body"},"html":{"type":"string","required":false,"visibility":"user-or-llm","description":"HTML draft body"},"cc":{"type":"string","required":false,"visibility":"user-or-llm","description":"CC recipient email addresses (comma-separated)"},"bcc":{"type":"string","required":false,"visibility":"user-or-llm","description":"BCC recipient email addresses (comma-separated)"},"sendAt":{"type":"string","required":false,"visibility":"user-or-llm","description":"ISO 8601 timestamp to schedule sending"}},"oauth":{"required":false,"provider":"agentmail","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"agentmail_update_inbox":{"id":"agentmail_update_inbox","name":"Update Inbox","description":"Update the display name of an email inbox in AgentMail","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"AgentMail API key"},"inboxId":{"type":"string","required":true,"visibility":"user-or-llm","description":"ID of the inbox to update"},"displayName":{"type":"string","required":true,"visibility":"user-or-llm","description":"New display name for the inbox"}},"oauth":{"required":false,"provider":"agentmail","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"agentmail_update_message":{"id":"agentmail_update_message","name":"Update Message","description":"Add or remove labels on an email message in AgentMail","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"AgentMail API key"},"inboxId":{"type":"string","required":true,"visibility":"user-or-llm","description":"ID of the inbox containing the message"},"messageId":{"type":"string","required":true,"visibility":"user-or-llm","description":"ID of the message to update"},"addLabels":{"type":"string","required":false,"visibility":"user-or-llm","description":"Comma-separated labels to add to the message"},"removeLabels":{"type":"string","required":false,"visibility":"user-or-llm","description":"Comma-separated labels to remove from the message"}},"oauth":{"required":false,"provider":"agentmail","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"agentmail_update_thread":{"id":"agentmail_update_thread","name":"Update Thread Labels","description":"Add or remove labels on an email thread in AgentMail","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"AgentMail API key"},"inboxId":{"type":"string","required":true,"visibility":"user-or-llm","description":"ID of the inbox containing the thread"},"threadId":{"type":"string","required":true,"visibility":"user-or-llm","description":"ID of the thread to update"},"addLabels":{"type":"string","required":false,"visibility":"user-or-llm","description":"Comma-separated labels to add to the thread"},"removeLabels":{"type":"string","required":false,"visibility":"user-or-llm","description":"Comma-separated labels to remove from the thread"}},"oauth":{"required":false,"provider":"agentmail","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"agentphone_create_call":{"id":"agentphone_create_call","name":"Create Outbound Call","description":"Initiate an outbound voice call from an AgentPhone agent","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"AgentPhone API key"},"agentId":{"type":"string","required":true,"visibility":"user-or-llm","description":"Agent that will handle the call"},"toNumber":{"type":"string","required":true,"visibility":"user-or-llm","description":"Phone number to call in E.164 format (e.g. +14155551234)"},"fromNumberId":{"type":"string","required":false,"visibility":"user-or-llm","description":"Phone number ID to use as caller ID. Must belong to the agent. If omitted, the agent\'s first assigned number is used."},"initialGreeting":{"type":"string","required":false,"visibility":"user-or-llm","description":"Optional greeting spoken when the recipient answers"},"voice":{"type":"string","required":false,"visibility":"user-or-llm","description":"Voice ID override for this call (defaults to the agent\'s configured voice)"},"systemPrompt":{"type":"string","required":false,"visibility":"user-or-llm","description":"When provided, uses a built-in LLM for the conversation instead of forwarding to your webhook"}},"oauth":{"required":false,"provider":"agentphone","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"agentphone_create_contact":{"id":"agentphone_create_contact","name":"Create Contact","description":"Create a new contact in AgentPhone","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"AgentPhone API key"},"phoneNumber":{"type":"string","required":true,"visibility":"user-or-llm","description":"Phone number in E.164 format (e.g. +14155551234)"},"name":{"type":"string","required":true,"visibility":"user-or-llm","description":"Contact\'s full name"},"email":{"type":"string","required":false,"visibility":"user-or-llm","description":"Contact\'s email address"},"notes":{"type":"string","required":false,"visibility":"user-or-llm","description":"Freeform notes stored on the contact"}},"oauth":{"required":false,"provider":"agentphone","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"agentphone_create_number":{"id":"agentphone_create_number","name":"Create Phone Number","description":"Provision a new SMS- and voice-enabled phone number","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"AgentPhone API key"},"country":{"type":"string","required":false,"visibility":"user-or-llm","description":"Two-letter country code (e.g. US, CA). Defaults to US."},"areaCode":{"type":"string","required":false,"visibility":"user-or-llm","description":"Preferred area code (US/CA only, e.g. \\"415\\"). Best-effort — may be ignored if unavailable."},"agentId":{"type":"string","required":false,"visibility":"user-or-llm","description":"Optionally attach the number to an agent immediately"}},"oauth":{"required":false,"provider":"agentphone","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"agentphone_delete_contact":{"id":"agentphone_delete_contact","name":"Delete Contact","description":"Delete a contact by ID","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"AgentPhone API key"},"contactId":{"type":"string","required":true,"visibility":"user-or-llm","description":"Contact ID"}},"oauth":{"required":false,"provider":"agentphone","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"agentphone_get_call":{"id":"agentphone_get_call","name":"Get Call","description":"Fetch a call and its full transcript","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"AgentPhone API key"},"callId":{"type":"string","required":true,"visibility":"user-or-llm","description":"ID of the call to retrieve"}},"oauth":{"required":false,"provider":"agentphone","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"agentphone_get_call_transcript":{"id":"agentphone_get_call_transcript","name":"Get Call Transcript","description":"Get the full ordered transcript for a call","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"AgentPhone API key"},"callId":{"type":"string","required":true,"visibility":"user-or-llm","description":"ID of the call to retrieve the transcript for"}},"oauth":{"required":false,"provider":"agentphone","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"agentphone_get_contact":{"id":"agentphone_get_contact","name":"Get Contact","description":"Fetch a single contact by ID","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"AgentPhone API key"},"contactId":{"type":"string","required":true,"visibility":"user-or-llm","description":"Contact ID"}},"oauth":{"required":false,"provider":"agentphone","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"agentphone_get_conversation":{"id":"agentphone_get_conversation","name":"Get Conversation","description":"Get a conversation along with its recent messages","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"AgentPhone API key"},"conversationId":{"type":"string","required":true,"visibility":"user-or-llm","description":"Conversation ID"},"messageLimit":{"type":"number","required":false,"visibility":"user-or-llm","description":"Number of recent messages to include (default 50, max 100)"}},"oauth":{"required":false,"provider":"agentphone","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"agentphone_get_conversation_messages":{"id":"agentphone_get_conversation_messages","name":"Get Conversation Messages","description":"Get paginated messages for a conversation","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"AgentPhone API key"},"conversationId":{"type":"string","required":true,"visibility":"user-or-llm","description":"Conversation ID"},"limit":{"type":"number","required":false,"visibility":"user-or-llm","description":"Number of messages to return (default 50, max 200)"},"before":{"type":"string","required":false,"visibility":"user-or-llm","description":"Return messages received before this ISO 8601 timestamp"},"after":{"type":"string","required":false,"visibility":"user-or-llm","description":"Return messages received after this ISO 8601 timestamp"}},"oauth":{"required":false,"provider":"agentphone","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"agentphone_get_number_messages":{"id":"agentphone_get_number_messages","name":"Get Phone Number Messages","description":"Fetch messages received on a specific phone number","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"AgentPhone API key"},"numberId":{"type":"string","required":true,"visibility":"user-or-llm","description":"ID of the phone number"},"limit":{"type":"number","required":false,"visibility":"user-or-llm","description":"Number of messages to return (default 50, max 200)"},"before":{"type":"string","required":false,"visibility":"user-or-llm","description":"Return messages received before this ISO 8601 timestamp"},"after":{"type":"string","required":false,"visibility":"user-or-llm","description":"Return messages received after this ISO 8601 timestamp"}},"oauth":{"required":false,"provider":"agentphone","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"agentphone_get_usage":{"id":"agentphone_get_usage","name":"Get Usage","description":"Retrieve current usage statistics for the AgentPhone account","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"AgentPhone API key"}},"oauth":{"required":false,"provider":"agentphone","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"agentphone_get_usage_daily":{"id":"agentphone_get_usage_daily","name":"Get Daily Usage","description":"Get a daily breakdown of usage (messages, calls, webhooks) for the last N days","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"AgentPhone API key"},"days":{"type":"number","required":false,"visibility":"user-or-llm","description":"Number of days to return (1-365, default 30)"}},"oauth":{"required":false,"provider":"agentphone","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"agentphone_get_usage_monthly":{"id":"agentphone_get_usage_monthly","name":"Get Monthly Usage","description":"Get monthly usage aggregation (messages, calls, webhooks) for the last N months","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"AgentPhone API key"},"months":{"type":"number","required":false,"visibility":"user-or-llm","description":"Number of months to return (1-24, default 6)"}},"oauth":{"required":false,"provider":"agentphone","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"agentphone_list_calls":{"id":"agentphone_list_calls","name":"List Calls","description":"List voice calls for this AgentPhone account","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"AgentPhone API key"},"limit":{"type":"number","required":false,"visibility":"user-or-llm","description":"Number of results to return (default 20, max 100)"},"offset":{"type":"number","required":false,"visibility":"user-or-llm","description":"Number of results to skip (min 0)"},"status":{"type":"string","required":false,"visibility":"user-or-llm","description":"Filter by status (completed, in-progress, failed)"},"direction":{"type":"string","required":false,"visibility":"user-or-llm","description":"Filter by direction (inbound, outbound)"},"type":{"type":"string","required":false,"visibility":"user-or-llm","description":"Filter by call type (pstn, web)"},"search":{"type":"string","required":false,"visibility":"user-or-llm","description":"Search by phone number (matches fromNumber or toNumber)"}},"oauth":{"required":false,"provider":"agentphone","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"agentphone_list_contacts":{"id":"agentphone_list_contacts","name":"List Contacts","description":"List contacts for this AgentPhone account","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"AgentPhone API key"},"search":{"type":"string","required":false,"visibility":"user-or-llm","description":"Filter by name or phone number (case-insensitive contains)"},"limit":{"type":"number","required":false,"visibility":"user-or-llm","description":"Number of results to return (default 50, max 200)"},"offset":{"type":"number","required":false,"visibility":"user-or-llm","description":"Number of results to skip (min 0)"}},"oauth":{"required":false,"provider":"agentphone","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"agentphone_list_conversations":{"id":"agentphone_list_conversations","name":"List Conversations","description":"List conversations (message threads) for this AgentPhone account","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"AgentPhone API key"},"limit":{"type":"number","required":false,"visibility":"user-or-llm","description":"Number of results to return (default 20, max 100)"},"offset":{"type":"number","required":false,"visibility":"user-or-llm","description":"Number of results to skip (min 0)"}},"oauth":{"required":false,"provider":"agentphone","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"agentphone_list_numbers":{"id":"agentphone_list_numbers","name":"List Phone Numbers","description":"List all phone numbers provisioned for this AgentPhone account","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"AgentPhone API key"},"limit":{"type":"number","required":false,"visibility":"user-or-llm","description":"Number of results to return (default 20, max 100)"},"offset":{"type":"number","required":false,"visibility":"user-or-llm","description":"Number of results to skip (min 0)"}},"oauth":{"required":false,"provider":"agentphone","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"agentphone_react_to_message":{"id":"agentphone_react_to_message","name":"React to Message","description":"Send an iMessage tapback reaction to a message (iMessage only)","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"AgentPhone API key"},"messageId":{"type":"string","required":true,"visibility":"user-or-llm","description":"ID of the message to react to"},"reaction":{"type":"string","required":true,"visibility":"user-or-llm","description":"Reaction type: love, like, dislike, laugh, emphasize, or question"}},"oauth":{"required":false,"provider":"agentphone","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"agentphone_release_number":{"id":"agentphone_release_number","name":"Release Phone Number","description":"Release (delete) a phone number. This action is irreversible.","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"AgentPhone API key"},"numberId":{"type":"string","required":true,"visibility":"user-or-llm","description":"ID of the phone number to release"}},"oauth":{"required":false,"provider":"agentphone","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"agentphone_send_message":{"id":"agentphone_send_message","name":"Send Message","description":"Send an outbound SMS or iMessage from an AgentPhone agent","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"AgentPhone API key"},"agentId":{"type":"string","required":true,"visibility":"user-or-llm","description":"Agent sending the message"},"toNumber":{"type":"string","required":true,"visibility":"user-or-llm","description":"Recipient phone number in E.164 format (e.g. +14155551234)"},"body":{"type":"string","required":true,"visibility":"user-or-llm","description":"Message text to send"},"mediaUrl":{"type":"string","required":false,"visibility":"user-or-llm","description":"Optional URL of an image, video, or file to attach"},"numberId":{"type":"string","required":false,"visibility":"user-or-llm","description":"Phone number ID to send from. If omitted, the agent\'s first assigned number is used."}},"oauth":{"required":false,"provider":"agentphone","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"agentphone_update_contact":{"id":"agentphone_update_contact","name":"Update Contact","description":"Update a contact\'s fields","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"AgentPhone API key"},"contactId":{"type":"string","required":true,"visibility":"user-or-llm","description":"Contact ID"},"phoneNumber":{"type":"string","required":false,"visibility":"user-or-llm","description":"New phone number in E.164 format"},"name":{"type":"string","required":false,"visibility":"user-or-llm","description":"New contact name"},"email":{"type":"string","required":false,"visibility":"user-or-llm","description":"New email address"},"notes":{"type":"string","required":false,"visibility":"user-or-llm","description":"New freeform notes"}},"oauth":{"required":false,"provider":"agentphone","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"agentphone_update_conversation":{"id":"agentphone_update_conversation","name":"Update Conversation","description":"Update conversation metadata (stored state). Pass null to clear existing metadata.","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"AgentPhone API key"},"conversationId":{"type":"string","required":true,"visibility":"user-or-llm","description":"Conversation ID"},"metadata":{"type":"json","required":false,"visibility":"user-or-llm","description":"Custom key-value metadata to store on the conversation. Pass null to clear existing metadata."}},"oauth":{"required":false,"provider":"agentphone","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"agiloft_async_status":{"id":"agiloft_async_status","name":"Agiloft Async Status","description":"Check whether an asynchronous Agiloft call, such as a run action button, has completed.","version":"1.0.0","params":{"instanceUrl":{"type":"string","required":true,"visibility":"user-only","description":"Agiloft instance URL (e.g., https://mycompany.agiloft.com)"},"knowledgeBase":{"type":"string","required":true,"visibility":"user-only","description":"Knowledge base name"},"login":{"type":"string","required":true,"visibility":"user-only","description":"Agiloft username"},"password":{"type":"string","required":true,"visibility":"user-only","description":"Agiloft password"},"table":{"type":"string","required":true,"visibility":"user-or-llm","description":"Table the asynchronous call was made against"},"callbackId":{"type":"string","required":true,"visibility":"user-or-llm","description":"Callback ID returned by the asynchronous call, e.g. from Run Action Button"}},"hostedApiKey":"none"},"agiloft_attach_file":{"id":"agiloft_attach_file","name":"Agiloft Attach File","description":"Attach a file to a field in an Agiloft record.","version":"1.0.0","params":{"instanceUrl":{"type":"string","required":true,"visibility":"user-only","description":"Agiloft instance URL (e.g., https://mycompany.agiloft.com)"},"knowledgeBase":{"type":"string","required":true,"visibility":"user-only","description":"Knowledge base name"},"login":{"type":"string","required":true,"visibility":"user-only","description":"Agiloft username"},"password":{"type":"string","required":true,"visibility":"user-only","description":"Agiloft password"},"table":{"type":"string","required":true,"visibility":"user-or-llm","description":"Table name (e.g., \\"contracts\\")"},"recordId":{"type":"string","required":true,"visibility":"user-or-llm","description":"ID of the record to attach the file to"},"fieldName":{"type":"string","required":true,"visibility":"user-or-llm","description":"Name of the attachment field"},"file":{"type":"file","required":true,"visibility":"user-or-llm","description":"File to attach"},"fileName":{"type":"string","required":false,"visibility":"user-or-llm","description":"Name to assign to the file (defaults to original file name)"},"overwrite":{"type":"boolean","required":false,"visibility":"user-or-llm","description":"Replace the contents of the field instead of adding another file to it"}},"hostedApiKey":"none"},"agiloft_attachment_info":{"id":"agiloft_attachment_info","name":"Agiloft Attachment Info","description":"Get information about file attachments on a record field.","version":"1.0.0","params":{"instanceUrl":{"type":"string","required":true,"visibility":"user-only","description":"Agiloft instance URL (e.g., https://mycompany.agiloft.com)"},"knowledgeBase":{"type":"string","required":true,"visibility":"user-only","description":"Knowledge base name"},"login":{"type":"string","required":true,"visibility":"user-only","description":"Agiloft username"},"password":{"type":"string","required":true,"visibility":"user-only","description":"Agiloft password"},"table":{"type":"string","required":true,"visibility":"user-or-llm","description":"Table name (e.g., \\"contracts\\")"},"recordId":{"type":"string","required":true,"visibility":"user-or-llm","description":"ID of the record to check attachments on"},"fieldName":{"type":"string","required":true,"visibility":"user-or-llm","description":"Name of the attachment field to inspect"}},"hostedApiKey":"none"},"agiloft_create_record":{"id":"agiloft_create_record","name":"Agiloft Create Record","description":"Create a new record in an Agiloft table.","version":"1.0.0","params":{"instanceUrl":{"type":"string","required":true,"visibility":"user-only","description":"Agiloft instance URL (e.g., https://mycompany.agiloft.com)"},"knowledgeBase":{"type":"string","required":true,"visibility":"user-only","description":"Knowledge base name"},"login":{"type":"string","required":true,"visibility":"user-only","description":"Agiloft username"},"password":{"type":"string","required":true,"visibility":"user-only","description":"Agiloft password"},"table":{"type":"string","required":true,"visibility":"user-or-llm","description":"Table name (e.g., \\"contracts\\", \\"contacts.employees\\")"},"data":{"type":"string","required":true,"visibility":"user-or-llm","description":"Record field values as a JSON object (e.g., {\\"first_name\\": \\"John\\", \\"status\\": \\"Active\\"})"}},"hostedApiKey":"none"},"agiloft_delete_record":{"id":"agiloft_delete_record","name":"Agiloft Delete Record","description":"Delete a record from an Agiloft table.","version":"1.0.0","params":{"instanceUrl":{"type":"string","required":true,"visibility":"user-only","description":"Agiloft instance URL (e.g., https://mycompany.agiloft.com)"},"knowledgeBase":{"type":"string","required":true,"visibility":"user-only","description":"Knowledge base name"},"login":{"type":"string","required":true,"visibility":"user-only","description":"Agiloft username"},"password":{"type":"string","required":true,"visibility":"user-only","description":"Agiloft password"},"table":{"type":"string","required":true,"visibility":"user-or-llm","description":"Table name (e.g., \\"contracts\\", \\"contacts.employees\\")"},"recordId":{"type":"string","required":true,"visibility":"user-or-llm","description":"ID of the record to delete"},"substituteIds":{"type":"string","required":false,"visibility":"user-or-llm","description":"Comma-separated IDs of records that adopt the dependants of the deleted record. Read only when the delete rule is REPLACE_WITH_ANOTHER."},"deleteRule":{"type":"string","required":false,"visibility":"user-or-llm","description":"How to treat records that depend on this one: ERROR_IF_DEPENDANTS (default — fails rather than cascading), APPLY_DELETE_WHERE_POSSIBLE, DELETE_WHERE_POSSIBLE_OTHERWISE_UNLINK, APPLY_UNLINK, UNLINK_WHERE_POSSIBLE_OTHERWISE_DELETE, or REPLACE_WITH_ANOTHER"}},"hostedApiKey":"none"},"agiloft_get_choice_line_id":{"id":"agiloft_get_choice_line_id","name":"Agiloft Get Choice Line ID","description":"Resolve the internal numeric ID of a choice-list value, for use in EWSelect WHERE clauses against choice fields.","version":"1.0.0","params":{"instanceUrl":{"type":"string","required":true,"visibility":"user-only","description":"Agiloft instance URL (e.g., https://mycompany.agiloft.com)"},"knowledgeBase":{"type":"string","required":true,"visibility":"user-only","description":"Knowledge base name"},"login":{"type":"string","required":true,"visibility":"user-only","description":"Agiloft username"},"password":{"type":"string","required":true,"visibility":"user-only","description":"Agiloft password"},"table":{"type":"string","required":true,"visibility":"user-or-llm","description":"Table name (e.g., \\"case\\", \\"contracts\\")"},"fieldName":{"type":"string","required":true,"visibility":"user-or-llm","description":"Choice field name (e.g., \\"priority\\", \\"status\\")"},"value":{"type":"string","required":true,"visibility":"user-or-llm","description":"Choice display value to resolve (e.g., \\"High\\", \\"Active\\")"}},"hostedApiKey":"none"},"agiloft_list_tables":{"id":"agiloft_list_tables","name":"Agiloft List Tables","description":"List the tables and fields in an Agiloft knowledge base, to discover the logical names other operations need.","version":"1.0.0","params":{"instanceUrl":{"type":"string","required":true,"visibility":"user-only","description":"Agiloft instance URL (e.g., https://mycompany.agiloft.com)"},"knowledgeBase":{"type":"string","required":true,"visibility":"user-only","description":"Knowledge base name"},"login":{"type":"string","required":true,"visibility":"user-only","description":"Agiloft username"},"password":{"type":"string","required":true,"visibility":"user-only","description":"Agiloft password"},"table":{"type":"string","required":false,"visibility":"user-or-llm","description":"Logical name of a single table to describe (e.g., \\"contacts\\"). Leave empty to list every table in the knowledge base."},"includeLinkedInfo":{"type":"boolean","required":false,"visibility":"user-or-llm","description":"Include the source table and column behind each linked field"},"skipColumnsInfo":{"type":"boolean","required":false,"visibility":"user-or-llm","description":"Return table names only, omitting field details, for a much smaller response"}},"hostedApiKey":"none"},"agiloft_lock_record":{"id":"agiloft_lock_record","name":"Agiloft Lock Record","description":"Lock, unlock, or check the lock status of an Agiloft record.","version":"1.0.0","params":{"instanceUrl":{"type":"string","required":true,"visibility":"user-only","description":"Agiloft instance URL (e.g., https://mycompany.agiloft.com)"},"knowledgeBase":{"type":"string","required":true,"visibility":"user-only","description":"Knowledge base name"},"login":{"type":"string","required":true,"visibility":"user-only","description":"Agiloft username"},"password":{"type":"string","required":true,"visibility":"user-only","description":"Agiloft password"},"table":{"type":"string","required":true,"visibility":"user-or-llm","description":"Table name (e.g., \\"contracts\\")"},"recordId":{"type":"string","required":true,"visibility":"user-or-llm","description":"ID of the record to lock, unlock, or check"},"lockAction":{"type":"string","required":true,"visibility":"user-or-llm","description":"Action to perform: \\"lock\\", \\"unlock\\", or \\"check\\""},"force":{"type":"boolean","required":false,"visibility":"user-or-llm","description":"Unlock only: release a lock held by another user."}},"hostedApiKey":"none"},"agiloft_nlp_search":{"id":"agiloft_nlp_search","name":"Agiloft Natural Language Search","description":"Search Agiloft records by describing what you want in plain language, such as \\"active NDAs submitted last month\\".","version":"1.0.0","params":{"instanceUrl":{"type":"string","required":true,"visibility":"user-only","description":"Agiloft instance URL (e.g., https://mycompany.agiloft.com)"},"knowledgeBase":{"type":"string","required":true,"visibility":"user-only","description":"Knowledge base name"},"login":{"type":"string","required":true,"visibility":"user-only","description":"Agiloft username"},"password":{"type":"string","required":true,"visibility":"user-only","description":"Agiloft password"},"nlpQuery":{"type":"string","required":true,"visibility":"user-or-llm","description":"The request in plain language, e.g. \\"Show me open, high-priority contracts\\". Structured field filters are not accepted — use Search Records for those."},"fields":{"type":"string","required":true,"visibility":"user-or-llm","description":"Comma-separated field names to return, e.g. \\"id, contract_title1, company_name\\""},"page":{"type":"string","required":false,"visibility":"user-or-llm","description":"Page number, starting from 0"},"limit":{"type":"string","required":false,"visibility":"user-or-llm","description":"Records per page"}},"hostedApiKey":"none"},"agiloft_read_record":{"id":"agiloft_read_record","name":"Agiloft Read Record","description":"Read a record by ID from an Agiloft table.","version":"1.0.0","params":{"instanceUrl":{"type":"string","required":true,"visibility":"user-only","description":"Agiloft instance URL (e.g., https://mycompany.agiloft.com)"},"knowledgeBase":{"type":"string","required":true,"visibility":"user-only","description":"Knowledge base name"},"login":{"type":"string","required":true,"visibility":"user-only","description":"Agiloft username"},"password":{"type":"string","required":true,"visibility":"user-only","description":"Agiloft password"},"table":{"type":"string","required":true,"visibility":"user-or-llm","description":"Table name (e.g., \\"contracts\\", \\"contacts.employees\\")"},"recordId":{"type":"string","required":true,"visibility":"user-or-llm","description":"ID of the record to read"},"fields":{"type":"string","required":false,"visibility":"user-or-llm","description":"Comma-separated list of field names to include in the response"}},"hostedApiKey":"none"},"agiloft_remove_attachment":{"id":"agiloft_remove_attachment","name":"Agiloft Remove Attachment","description":"Remove an attached file from a field in an Agiloft record.","version":"1.0.0","params":{"instanceUrl":{"type":"string","required":true,"visibility":"user-only","description":"Agiloft instance URL (e.g., https://mycompany.agiloft.com)"},"knowledgeBase":{"type":"string","required":true,"visibility":"user-only","description":"Knowledge base name"},"login":{"type":"string","required":true,"visibility":"user-only","description":"Agiloft username"},"password":{"type":"string","required":true,"visibility":"user-only","description":"Agiloft password"},"table":{"type":"string","required":true,"visibility":"user-or-llm","description":"Table name (e.g., \\"contracts\\")"},"recordId":{"type":"string","required":true,"visibility":"user-or-llm","description":"ID of the record containing the attachment"},"fieldName":{"type":"string","required":true,"visibility":"user-or-llm","description":"Name of the attachment field"},"position":{"type":"string","required":true,"visibility":"user-or-llm","description":"Position index of the file to remove (starting from 0)"}},"hostedApiKey":"none"},"agiloft_retrieve_attachment":{"id":"agiloft_retrieve_attachment","name":"Agiloft Retrieve Attachment","description":"Download an attached file from an Agiloft record field.","version":"1.0.0","params":{"instanceUrl":{"type":"string","required":true,"visibility":"user-only","description":"Agiloft instance URL (e.g., https://mycompany.agiloft.com)"},"knowledgeBase":{"type":"string","required":true,"visibility":"user-only","description":"Knowledge base name"},"login":{"type":"string","required":true,"visibility":"user-only","description":"Agiloft username"},"password":{"type":"string","required":true,"visibility":"user-only","description":"Agiloft password"},"table":{"type":"string","required":true,"visibility":"user-or-llm","description":"Table name (e.g., \\"contracts\\")"},"recordId":{"type":"string","required":true,"visibility":"user-or-llm","description":"ID of the record containing the attachment"},"fieldName":{"type":"string","required":true,"visibility":"user-or-llm","description":"Name of the attachment field"},"position":{"type":"string","required":true,"visibility":"user-or-llm","description":"Position index of the file in the field (starting from 0)"}},"hostedApiKey":"none"},"agiloft_run_action_button":{"id":"agiloft_run_action_button","name":"Agiloft Run Action Button","description":"Run an action button on an Agiloft record, such as an approval or send-for-signature step.","version":"1.0.0","params":{"instanceUrl":{"type":"string","required":true,"visibility":"user-only","description":"Agiloft instance URL (e.g., https://mycompany.agiloft.com)"},"knowledgeBase":{"type":"string","required":true,"visibility":"user-only","description":"Knowledge base name"},"login":{"type":"string","required":true,"visibility":"user-only","description":"Agiloft username"},"password":{"type":"string","required":true,"visibility":"user-only","description":"Agiloft password"},"table":{"type":"string","required":true,"visibility":"user-or-llm","description":"Table name (e.g., \\"contracts\\", \\"case\\")"},"recordId":{"type":"string","required":true,"visibility":"user-or-llm","description":"ID of the record to run the action button on"},"actionButtonField":{"type":"string","required":true,"visibility":"user-or-llm","description":"Logical name of the field holding the action button (e.g., \\"ab_field\\")"}},"hostedApiKey":"none"},"agiloft_saved_search":{"id":"agiloft_saved_search","name":"Agiloft Saved Search","description":"List the saved searches defined for an Agiloft table.","version":"1.0.0","params":{"instanceUrl":{"type":"string","required":true,"visibility":"user-only","description":"Agiloft instance URL (e.g., https://mycompany.agiloft.com)"},"knowledgeBase":{"type":"string","required":true,"visibility":"user-only","description":"Knowledge base name"},"login":{"type":"string","required":true,"visibility":"user-only","description":"Agiloft username"},"password":{"type":"string","required":true,"visibility":"user-only","description":"Agiloft password"},"table":{"type":"string","required":true,"visibility":"user-or-llm","description":"Logical table name to list saved searches for (e.g., \\"contract\\")"}},"hostedApiKey":"none"},"agiloft_search_records":{"id":"agiloft_search_records","name":"Agiloft Search Records","description":"Search for records in an Agiloft table using a query.","version":"1.0.0","params":{"instanceUrl":{"type":"string","required":true,"visibility":"user-only","description":"Agiloft instance URL (e.g., https://mycompany.agiloft.com)"},"knowledgeBase":{"type":"string","required":true,"visibility":"user-only","description":"Knowledge base name"},"login":{"type":"string","required":true,"visibility":"user-only","description":"Agiloft username"},"password":{"type":"string","required":true,"visibility":"user-only","description":"Agiloft password"},"table":{"type":"string","required":true,"visibility":"user-or-llm","description":"Table name to search in (e.g., \\"contracts\\", \\"contacts.employees\\")"},"query":{"type":"string","required":false,"visibility":"user-or-llm","description":"Ad hoc EWSearch query. Combine conditions with && (and) or || (or) and quote every value — e.g. \\"summary~=\'test\'&&priority=\'High\'\\". Required unless a saved search is given."},"search":{"type":"string","required":false,"visibility":"user-or-llm","description":"Label of a saved search defined on the table (e.g., \\"C: Status is Closed\\"). Can be combined with a query to narrow it further."},"fields":{"type":"string","required":false,"visibility":"user-or-llm","description":"Comma-separated list of field names to include in the results"},"page":{"type":"string","required":false,"visibility":"user-or-llm","description":"Page number for paginated results (starting from 0)"},"limit":{"type":"string","required":false,"visibility":"user-or-llm","description":"Maximum number of records to return per page. Agiloft treats 0 as \\"all records\\", so leave it unset or use a positive value to keep result sizes bounded."}},"hostedApiKey":"none"},"agiloft_select_records":{"id":"agiloft_select_records","name":"Agiloft Select Records","description":"Select record IDs matching a SQL WHERE clause from an Agiloft table.","version":"1.0.0","params":{"instanceUrl":{"type":"string","required":true,"visibility":"user-only","description":"Agiloft instance URL (e.g., https://mycompany.agiloft.com)"},"knowledgeBase":{"type":"string","required":true,"visibility":"user-only","description":"Knowledge base name"},"login":{"type":"string","required":true,"visibility":"user-only","description":"Agiloft username"},"password":{"type":"string","required":true,"visibility":"user-only","description":"Agiloft password"},"table":{"type":"string","required":true,"visibility":"user-or-llm","description":"Table name (e.g., \\"contracts\\", \\"contacts.employees\\")"},"where":{"type":"string","required":true,"visibility":"user-or-llm","description":"SQL WHERE clause using database column names (e.g., \\"summary like \'%new%\'\\" or \\"assigned_person=\'John Doe\'\\"). EWSelect has no page size and returns every matching ID, so append a database limit such as \\"limit 0,200\\" to bound the result."}},"hostedApiKey":"none"},"agiloft_update_record":{"id":"agiloft_update_record","name":"Agiloft Update Record","description":"Update an existing record in an Agiloft table.","version":"1.0.0","params":{"instanceUrl":{"type":"string","required":true,"visibility":"user-only","description":"Agiloft instance URL (e.g., https://mycompany.agiloft.com)"},"knowledgeBase":{"type":"string","required":true,"visibility":"user-only","description":"Knowledge base name"},"login":{"type":"string","required":true,"visibility":"user-only","description":"Agiloft username"},"password":{"type":"string","required":true,"visibility":"user-only","description":"Agiloft password"},"table":{"type":"string","required":true,"visibility":"user-or-llm","description":"Table name (e.g., \\"contracts\\", \\"contacts.employees\\")"},"recordId":{"type":"string","required":true,"visibility":"user-or-llm","description":"ID of the record to update"},"data":{"type":"string","required":true,"visibility":"user-or-llm","description":"Updated field values as a JSON object (e.g., {\\"status\\": \\"Active\\", \\"priority\\": \\"High\\"})"}},"hostedApiKey":"none"},"agiloft_upsert_record":{"id":"agiloft_upsert_record","name":"Agiloft Upsert Record","description":"Create an Agiloft record, or update it when a record already matches the given fields.","version":"1.0.0","params":{"instanceUrl":{"type":"string","required":true,"visibility":"user-only","description":"Agiloft instance URL (e.g., https://mycompany.agiloft.com)"},"knowledgeBase":{"type":"string","required":true,"visibility":"user-only","description":"Knowledge base name"},"login":{"type":"string","required":true,"visibility":"user-only","description":"Agiloft username"},"password":{"type":"string","required":true,"visibility":"user-only","description":"Agiloft password"},"table":{"type":"string","required":true,"visibility":"user-or-llm","description":"Table name (e.g., \\"contracts\\", \\"contacts.employees\\")"},"match":{"type":"string","required":true,"visibility":"user-or-llm","description":"Field used to find an existing record (e.g., \\"ext_id\\"). Pick something that identifies a record uniquely — if more than one record matches, Agiloft writes nothing and returns a conflict."},"async":{"type":"boolean","required":false,"visibility":"user-or-llm","description":"Queue the write instead of waiting for it. Returns a callback ID instead of a record ID; pass that to Async Status to poll the result."},"data":{"type":"string","required":true,"visibility":"user-or-llm","description":"Field values as a JSON object. On create these populate the new record; on update only the supplied fields change."}},"hostedApiKey":"none"},"ahrefs_anchors":{"id":"ahrefs_anchors","name":"Ahrefs Anchors","description":"Get the anchor text distribution for a target domain or URL\'s backlinks, showing how many links and referring domains use each anchor text.","version":"1.0.0","params":{"target":{"type":"string","required":true,"visibility":"user-or-llm","description":"The target domain or URL to analyze. Example: \\"example.com\\" or \\"https://example.com/page\\""},"mode":{"type":"string","required":false,"visibility":"user-or-llm","description":"Analysis mode: domain (entire domain), prefix (URL prefix), subdomains (include all subdomains, default), exact (exact URL match)"},"history":{"type":"string","required":false,"visibility":"user-or-llm","description":"Historical scope: \\"live\\" (currently live), \\"all_time\\" (default, includes lost backlinks), or \\"since:YYYY-MM-DD\\" (backlinks found since a date)"},"limit":{"type":"number","required":false,"visibility":"user-or-llm","description":"Maximum number of results to return. Example: 50 (default: 1000)"},"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Ahrefs API Key"}},"oauth":{"required":false,"provider":"ahrefs","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"ahrefs_backlinks":{"id":"ahrefs_backlinks","name":"Ahrefs Backlinks","description":"Get a list of backlinks pointing to a target domain or URL. Returns details about each backlink including source URL, anchor text, and domain rating.","version":"1.0.0","params":{"target":{"type":"string","required":true,"visibility":"user-or-llm","description":"The target domain or URL to analyze. Example: \\"example.com\\" or \\"https://example.com/page\\""},"mode":{"type":"string","required":false,"visibility":"user-or-llm","description":"Analysis mode: domain (entire domain), prefix (URL prefix), subdomains (include all subdomains, default), exact (exact URL match). Example: \\"domain\\""},"history":{"type":"string","required":false,"visibility":"user-or-llm","description":"Historical scope: \\"live\\" (currently live backlinks), \\"all_time\\" (default, includes lost backlinks), or \\"since:YYYY-MM-DD\\" (backlinks found since a date)."},"limit":{"type":"number","required":false,"visibility":"user-or-llm","description":"Maximum number of results to return. Example: 50 (default: 1000)"},"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Ahrefs API Key"}},"oauth":{"required":false,"provider":"ahrefs","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"ahrefs_backlinks_stats":{"id":"ahrefs_backlinks_stats","name":"Ahrefs Backlinks Stats","description":"Get backlink and referring domain totals for a target domain or URL, both currently live and across all time.","version":"1.0.0","params":{"target":{"type":"string","required":true,"visibility":"user-or-llm","description":"The target domain or URL to analyze. Example: \\"example.com\\" or \\"https://example.com/page\\""},"mode":{"type":"string","required":false,"visibility":"user-or-llm","description":"Analysis mode: domain (entire domain), prefix (URL prefix), subdomains (include all subdomains, default), exact (exact URL match). Example: \\"domain\\""},"date":{"type":"string","required":false,"visibility":"user-only","description":"Date to report metrics on, in YYYY-MM-DD format (defaults to today)"},"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Ahrefs API Key"}},"oauth":{"required":false,"provider":"ahrefs","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"ahrefs_batch_analysis":{"id":"ahrefs_batch_analysis","name":"Ahrefs Batch Analysis","description":"Get bulk SEO metrics (Domain Rating, backlinks, referring domains, organic traffic, and more) for multiple domains or URLs in a single request. Useful for comparing many competitors at once.","version":"1.0.0","params":{"targets":{"type":"string","required":true,"visibility":"user-or-llm","description":"Comma-separated list of domains or URLs to analyze. Example: \\"example.com,competitor.com\\""},"mode":{"type":"string","required":false,"visibility":"user-or-llm","description":"Analysis mode applied to every target: domain (entire domain), prefix (URL prefix), subdomains (include all subdomains, default), exact (exact URL match)"},"protocol":{"type":"string","required":false,"visibility":"user-or-llm","description":"Protocol applied to every target: \\"both\\" (default), \\"http\\", or \\"https\\""},"country":{"type":"string","required":false,"visibility":"user-or-llm","description":"Country code for traffic data. Example: \\"us\\", \\"gb\\", \\"de\\" (default: \\"us\\")"},"volumeMode":{"type":"string","required":false,"visibility":"user-or-llm","description":"Search volume calculation: \\"monthly\\" or \\"average\\" (default: \\"monthly\\")"},"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Ahrefs API Key"}},"oauth":{"required":false,"provider":"ahrefs","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"ahrefs_broken_backlinks":{"id":"ahrefs_broken_backlinks","name":"Ahrefs Broken Backlinks","description":"Get a list of broken backlinks pointing to a target domain or URL. Useful for identifying link reclamation opportunities.","version":"1.0.0","params":{"target":{"type":"string","required":true,"visibility":"user-or-llm","description":"The target domain or URL to analyze. Example: \\"example.com\\" or \\"https://example.com/page\\""},"mode":{"type":"string","required":false,"visibility":"user-or-llm","description":"Analysis mode: domain (entire domain), prefix (URL prefix), subdomains (include all subdomains, default), exact (exact URL match). Example: \\"domain\\""},"limit":{"type":"number","required":false,"visibility":"user-or-llm","description":"Maximum number of results to return. Example: 50 (default: 1000)"},"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Ahrefs API Key"}},"oauth":{"required":false,"provider":"ahrefs","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"ahrefs_domain_rating":{"id":"ahrefs_domain_rating","name":"Ahrefs Domain Rating","description":"Get the Domain Rating (DR) and Ahrefs Rank for a target domain. Domain Rating shows the strength of a website\'s backlink profile on a scale from 0 to 100.","version":"1.0.0","params":{"target":{"type":"string","required":true,"visibility":"user-or-llm","description":"The target domain to analyze (e.g., example.com)"},"date":{"type":"string","required":false,"visibility":"user-only","description":"Date for historical data in YYYY-MM-DD format (defaults to today)"},"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Ahrefs API Key"}},"oauth":{"required":false,"provider":"ahrefs","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"ahrefs_domain_rating_history":{"id":"ahrefs_domain_rating_history","name":"Ahrefs Domain Rating History","description":"Get the historical Domain Rating (DR) trend for a target domain or URL over a date range, grouped daily, weekly, or monthly.","version":"1.0.0","params":{"target":{"type":"string","required":true,"visibility":"user-or-llm","description":"The target domain or URL to analyze. Example: \\"example.com\\""},"dateFrom":{"type":"string","required":true,"visibility":"user-only","description":"Start date of the historical period, in YYYY-MM-DD format"},"dateTo":{"type":"string","required":false,"visibility":"user-only","description":"End date of the historical period, in YYYY-MM-DD format (defaults to today)"},"historyGrouping":{"type":"string","required":false,"visibility":"user-or-llm","description":"Time interval for grouping data points: \\"daily\\", \\"weekly\\", or \\"monthly\\" (default: \\"monthly\\")"},"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Ahrefs API Key"}},"oauth":{"required":false,"provider":"ahrefs","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"ahrefs_keyword_overview":{"id":"ahrefs_keyword_overview","name":"Ahrefs Keyword Overview","description":"Get detailed metrics for a keyword including search volume, keyword difficulty, CPC, clicks, and traffic potential.","version":"1.0.0","params":{"keyword":{"type":"string","required":true,"visibility":"user-or-llm","description":"The keyword to analyze"},"country":{"type":"string","required":false,"visibility":"user-or-llm","description":"Country code for keyword data. Example: \\"us\\", \\"gb\\", \\"de\\" (default: \\"us\\")"},"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Ahrefs API Key"}},"oauth":{"required":false,"provider":"ahrefs","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"ahrefs_keywords_history":{"id":"ahrefs_keywords_history","name":"Ahrefs Keywords History","description":"Get the historical organic keyword ranking distribution for a target domain or URL over a date range: how many keywords rank in each position bucket at each point in time.","version":"1.0.0","params":{"target":{"type":"string","required":true,"visibility":"user-or-llm","description":"The target domain or URL to analyze. Example: \\"example.com\\""},"dateFrom":{"type":"string","required":true,"visibility":"user-only","description":"Start date of the historical period, in YYYY-MM-DD format"},"dateTo":{"type":"string","required":false,"visibility":"user-only","description":"End date of the historical period, in YYYY-MM-DD format (defaults to today)"},"historyGrouping":{"type":"string","required":false,"visibility":"user-or-llm","description":"Time interval for grouping data points: \\"daily\\", \\"weekly\\", or \\"monthly\\" (default: \\"monthly\\")"},"country":{"type":"string","required":false,"visibility":"user-or-llm","description":"Country code for search results. Example: \\"us\\", \\"gb\\", \\"de\\" (default: \\"us\\")"},"mode":{"type":"string","required":false,"visibility":"user-or-llm","description":"Analysis mode: domain (entire domain), prefix (URL prefix), subdomains (include all subdomains, default), exact (exact URL match)"},"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Ahrefs API Key"}},"oauth":{"required":false,"provider":"ahrefs","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"ahrefs_metrics":{"id":"ahrefs_metrics","name":"Ahrefs Metrics","description":"Get a one-call organic and paid search overview for a target domain or URL: organic traffic, organic keywords, paid traffic, paid keywords, and estimated traffic cost.","version":"1.0.0","params":{"target":{"type":"string","required":true,"visibility":"user-or-llm","description":"The target domain or URL to analyze. Example: \\"example.com\\""},"country":{"type":"string","required":false,"visibility":"user-or-llm","description":"Country code for traffic data. Example: \\"us\\", \\"gb\\", \\"de\\""},"mode":{"type":"string","required":false,"visibility":"user-or-llm","description":"Analysis mode: domain (entire domain), prefix (URL prefix), subdomains (include all subdomains, default), exact (exact URL match). Example: \\"domain\\""},"date":{"type":"string","required":false,"visibility":"user-only","description":"Date to report metrics on, in YYYY-MM-DD format (defaults to today)"},"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Ahrefs API Key"}},"oauth":{"required":false,"provider":"ahrefs","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"ahrefs_metrics_history":{"id":"ahrefs_metrics_history","name":"Ahrefs Metrics History","description":"Get the historical organic and paid traffic trend for a target domain or URL over a date range: organic traffic/cost and paid traffic/cost at each point in time.","version":"1.0.0","params":{"target":{"type":"string","required":true,"visibility":"user-or-llm","description":"The target domain or URL to analyze. Example: \\"example.com\\""},"dateFrom":{"type":"string","required":true,"visibility":"user-only","description":"Start date of the historical period, in YYYY-MM-DD format"},"dateTo":{"type":"string","required":false,"visibility":"user-only","description":"End date of the historical period, in YYYY-MM-DD format (defaults to today)"},"volumeMode":{"type":"string","required":false,"visibility":"user-or-llm","description":"Search volume calculation: \\"monthly\\" or \\"average\\" (default: \\"monthly\\")"},"historyGrouping":{"type":"string","required":false,"visibility":"user-or-llm","description":"Time interval for grouping data points: \\"daily\\", \\"weekly\\", or \\"monthly\\" (default: \\"monthly\\")"},"country":{"type":"string","required":false,"visibility":"user-or-llm","description":"Country code for traffic data. Example: \\"us\\", \\"gb\\", \\"de\\" (default: \\"us\\")"},"mode":{"type":"string","required":false,"visibility":"user-or-llm","description":"Analysis mode: domain (entire domain), prefix (URL prefix), subdomains (include all subdomains, default), exact (exact URL match)"},"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Ahrefs API Key"}},"oauth":{"required":false,"provider":"ahrefs","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"ahrefs_organic_competitors":{"id":"ahrefs_organic_competitors","name":"Ahrefs Organic Competitors","description":"Get domains that compete with a target domain or URL for the same organic keywords, ranked by keyword overlap.","version":"1.0.0","params":{"target":{"type":"string","required":true,"visibility":"user-or-llm","description":"The target domain or URL to analyze. Example: \\"example.com\\""},"country":{"type":"string","required":false,"visibility":"user-or-llm","description":"Country code for search results. Example: \\"us\\", \\"gb\\", \\"de\\" (default: \\"us\\")"},"mode":{"type":"string","required":false,"visibility":"user-or-llm","description":"Analysis mode: domain (entire domain), prefix (URL prefix), subdomains (include all subdomains, default), exact (exact URL match). Example: \\"domain\\""},"date":{"type":"string","required":false,"visibility":"user-only","description":"Date to report metrics on, in YYYY-MM-DD format (defaults to today)"},"limit":{"type":"number","required":false,"visibility":"user-or-llm","description":"Maximum number of results to return. Example: 50 (default: 1000)"},"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Ahrefs API Key"}},"oauth":{"required":false,"provider":"ahrefs","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"ahrefs_organic_keywords":{"id":"ahrefs_organic_keywords","name":"Ahrefs Organic Keywords","description":"Get organic keywords that a target domain or URL ranks for in Google search results. Returns keyword details including search volume, ranking position, and estimated traffic.","version":"1.0.0","params":{"target":{"type":"string","required":true,"visibility":"user-or-llm","description":"The target domain or URL to analyze. Example: \\"example.com\\" or \\"https://example.com/page\\""},"country":{"type":"string","required":false,"visibility":"user-or-llm","description":"Country code for search results. Example: \\"us\\", \\"gb\\", \\"de\\" (default: \\"us\\")"},"mode":{"type":"string","required":false,"visibility":"user-or-llm","description":"Analysis mode: domain (entire domain), prefix (URL prefix), subdomains (include all subdomains, default), exact (exact URL match). Example: \\"domain\\""},"date":{"type":"string","required":false,"visibility":"user-only","description":"Date to report metrics on, in YYYY-MM-DD format (defaults to today)"},"limit":{"type":"number","required":false,"visibility":"user-or-llm","description":"Maximum number of results to return. Example: 50 (default: 1000)"},"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Ahrefs API Key"}},"oauth":{"required":false,"provider":"ahrefs","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"ahrefs_paid_pages":{"id":"ahrefs_paid_pages","name":"Ahrefs Paid Pages","description":"Get a target domain\'s pages that receive paid search traffic, sorted by estimated paid traffic. Returns page URLs with their paid traffic, keyword counts, and estimated spend.","version":"1.0.0","params":{"target":{"type":"string","required":true,"visibility":"user-or-llm","description":"The target domain or URL to analyze. Example: \\"example.com\\""},"country":{"type":"string","required":false,"visibility":"user-or-llm","description":"Country code for traffic data. Example: \\"us\\", \\"gb\\", \\"de\\" (default: \\"us\\")"},"mode":{"type":"string","required":false,"visibility":"user-or-llm","description":"Analysis mode: domain (entire domain), prefix (URL prefix), subdomains (include all subdomains, default), exact (exact URL match)"},"date":{"type":"string","required":false,"visibility":"user-only","description":"Date to report metrics on, in YYYY-MM-DD format (defaults to today)"},"limit":{"type":"number","required":false,"visibility":"user-or-llm","description":"Maximum number of results to return. Example: 50 (default: 1000)"},"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Ahrefs API Key"}},"oauth":{"required":false,"provider":"ahrefs","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"ahrefs_rank_tracker_competitors_overview":{"id":"ahrefs_rank_tracker_competitors_overview","name":"Ahrefs Rank Tracker Competitors Overview","description":"Get competitor rankings for the keywords tracked in an Ahrefs Rank Tracker project: each tracked keyword\'s volume and difficulty alongside every competitor\'s position, traffic, and traffic value. This endpoint is free and does not consume API units.","version":"1.0.0","params":{"projectId":{"type":"number","required":true,"visibility":"user-or-llm","description":"The Rank Tracker project ID (found in the project URL in Ahrefs)"},"date":{"type":"string","required":true,"visibility":"user-only","description":"Date to report rankings for, in YYYY-MM-DD format"},"device":{"type":"string","required":true,"visibility":"user-or-llm","description":"Rankings device type: \\"desktop\\" or \\"mobile\\""},"dateCompared":{"type":"string","required":false,"visibility":"user-only","description":"Comparison date in YYYY-MM-DD format, to compute position/traffic deltas"},"volumeMode":{"type":"string","required":false,"visibility":"user-or-llm","description":"Search volume calculation: \\"monthly\\" or \\"average\\" (default: \\"monthly\\")"},"limit":{"type":"number","required":false,"visibility":"user-or-llm","description":"Maximum number of results to return. Example: 50 (default: 1000)"},"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Ahrefs API Key"}},"oauth":{"required":false,"provider":"ahrefs","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"ahrefs_rank_tracker_competitors_stats":{"id":"ahrefs_rank_tracker_competitors_stats","name":"Ahrefs Rank Tracker Competitors Stats","description":"Get aggregate competitor stats for an Ahrefs Rank Tracker project: each competitor\'s traffic, traffic value, average position, and share of voice across all tracked keywords. This endpoint is free and does not consume API units.","version":"1.0.0","params":{"projectId":{"type":"number","required":true,"visibility":"user-or-llm","description":"The Rank Tracker project ID (found in the project URL in Ahrefs)"},"date":{"type":"string","required":true,"visibility":"user-only","description":"Date to report metrics for, in YYYY-MM-DD format"},"device":{"type":"string","required":true,"visibility":"user-or-llm","description":"Rankings device type: \\"desktop\\" or \\"mobile\\""},"volumeMode":{"type":"string","required":false,"visibility":"user-or-llm","description":"Search volume calculation: \\"monthly\\" or \\"average\\" (default: \\"monthly\\")"},"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Ahrefs API Key"}},"oauth":{"required":false,"provider":"ahrefs","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"ahrefs_rank_tracker_overview":{"id":"ahrefs_rank_tracker_overview","name":"Ahrefs Rank Tracker Overview","description":"Get ranking overview metrics for the keywords tracked in an Ahrefs Rank Tracker project: position, search volume, keyword difficulty, and estimated traffic. This endpoint is free and does not consume API units.","version":"1.0.0","params":{"projectId":{"type":"number","required":true,"visibility":"user-or-llm","description":"The Rank Tracker project ID (found in the project URL in Ahrefs)"},"date":{"type":"string","required":true,"visibility":"user-only","description":"Date to report rankings for, in YYYY-MM-DD format"},"device":{"type":"string","required":true,"visibility":"user-or-llm","description":"Rankings device type: \\"desktop\\" or \\"mobile\\""},"dateCompared":{"type":"string","required":false,"visibility":"user-only","description":"Comparison date in YYYY-MM-DD format, to compute position/traffic deltas"},"volumeMode":{"type":"string","required":false,"visibility":"user-or-llm","description":"Search volume calculation: \\"monthly\\" or \\"average\\" (default: \\"monthly\\")"},"limit":{"type":"number","required":false,"visibility":"user-or-llm","description":"Maximum number of results to return. Example: 50 (default: 1000)"},"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Ahrefs API Key"}},"oauth":{"required":false,"provider":"ahrefs","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"ahrefs_rank_tracker_serp_overview":{"id":"ahrefs_rank_tracker_serp_overview","name":"Ahrefs Rank Tracker SERP Overview","description":"Get the full SERP (search engine results page) for a keyword tracked in an Ahrefs Rank Tracker project, including every ranking URL with its position, title, and authority metrics. This endpoint is free and does not consume API units.","version":"1.0.0","params":{"projectId":{"type":"number","required":true,"visibility":"user-or-llm","description":"The Rank Tracker project ID (found in the project URL in Ahrefs)"},"keyword":{"type":"string","required":true,"visibility":"user-or-llm","description":"The tracked keyword to retrieve SERP data for"},"country":{"type":"string","required":true,"visibility":"user-or-llm","description":"Country code for the tracked keyword. Example: \\"us\\", \\"gb\\", \\"de\\""},"device":{"type":"string","required":true,"visibility":"user-or-llm","description":"Rankings device type: \\"desktop\\" or \\"mobile\\""},"topPositions":{"type":"number","required":false,"visibility":"user-or-llm","description":"Number of top organic positions to return (defaults to all available)"},"date":{"type":"string","required":false,"visibility":"user-only","description":"Timestamp to return the last available SERP Overview at, in YYYY-MM-DDThh:mm:ss format"},"locationId":{"type":"number","required":false,"visibility":"user-or-llm","description":"Location ID of the tracked keyword, if tracked at a specific location"},"languageCode":{"type":"string","required":false,"visibility":"user-or-llm","description":"Language code of the tracked keyword"},"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Ahrefs API Key"}},"oauth":{"required":false,"provider":"ahrefs","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"ahrefs_refdomains_history":{"id":"ahrefs_refdomains_history","name":"Ahrefs Referring Domains History","description":"Get the historical referring domains trend for a target domain or URL over a date range, grouped daily, weekly, or monthly.","version":"1.0.0","params":{"target":{"type":"string","required":true,"visibility":"user-or-llm","description":"The target domain or URL to analyze. Example: \\"example.com\\""},"dateFrom":{"type":"string","required":true,"visibility":"user-only","description":"Start date of the historical period, in YYYY-MM-DD format"},"dateTo":{"type":"string","required":false,"visibility":"user-only","description":"End date of the historical period, in YYYY-MM-DD format (defaults to today)"},"historyGrouping":{"type":"string","required":false,"visibility":"user-or-llm","description":"Time interval for grouping data points: \\"daily\\", \\"weekly\\", or \\"monthly\\" (default: \\"monthly\\")"},"mode":{"type":"string","required":false,"visibility":"user-or-llm","description":"Analysis mode: domain (entire domain), prefix (URL prefix), subdomains (include all subdomains, default), exact (exact URL match)"},"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Ahrefs API Key"}},"oauth":{"required":false,"provider":"ahrefs","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"ahrefs_referring_domains":{"id":"ahrefs_referring_domains","name":"Ahrefs Referring Domains","description":"Get a list of domains that link to a target domain or URL. Returns unique referring domains with their domain rating, backlink counts, and discovery dates.","version":"1.0.0","params":{"target":{"type":"string","required":true,"visibility":"user-or-llm","description":"The target domain or URL to analyze. Example: \\"example.com\\" or \\"https://example.com/page\\""},"mode":{"type":"string","required":false,"visibility":"user-or-llm","description":"Analysis mode: domain (entire domain), prefix (URL prefix), subdomains (include all subdomains, default), exact (exact URL match). Example: \\"domain\\""},"history":{"type":"string","required":false,"visibility":"user-or-llm","description":"Historical scope: \\"live\\" (currently live), \\"all_time\\" (default, includes lost domains), or \\"since:YYYY-MM-DD\\" (domains found since a date)."},"limit":{"type":"number","required":false,"visibility":"user-or-llm","description":"Maximum number of results to return. Example: 50 (default: 1000)"},"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Ahrefs API Key"}},"oauth":{"required":false,"provider":"ahrefs","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"ahrefs_related_terms":{"id":"ahrefs_related_terms","name":"Ahrefs Related Terms","description":"Get keyword ideas related to a seed keyword: terms the same top-ranking pages also rank for (\\"also rank for\\") or also discuss (\\"also talk about\\"), with volume, difficulty, and CPC.","version":"1.0.0","params":{"keyword":{"type":"string","required":true,"visibility":"user-or-llm","description":"The seed keyword to find related terms for"},"country":{"type":"string","required":false,"visibility":"user-or-llm","description":"Country code for keyword data. Example: \\"us\\", \\"gb\\", \\"de\\" (default: \\"us\\")"},"terms":{"type":"string","required":false,"visibility":"user-or-llm","description":"Type of related keywords to return: \\"also_rank_for\\", \\"also_talk_about\\", or \\"all\\" (default: \\"all\\")"},"viewFor":{"type":"string","required":false,"visibility":"user-or-llm","description":"Whether to derive related terms from the top 10 or top 100 ranking pages (default: \\"top_10\\")"},"limit":{"type":"number","required":false,"visibility":"user-or-llm","description":"Maximum number of results to return. Example: 50 (default: 1000)"},"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Ahrefs API Key"}},"oauth":{"required":false,"provider":"ahrefs","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"ahrefs_site_audit_page_explorer":{"id":"ahrefs_site_audit_page_explorer","name":"Ahrefs Site Audit Page Explorer","description":"Get crawled pages from an Ahrefs Site Audit project with health and SEO metrics: HTTP status, title, link counts, backlinks, indexability, and traffic. Optionally filter to pages affected by a specific issue.","version":"1.0.0","params":{"projectId":{"type":"number","required":true,"visibility":"user-or-llm","description":"The Site Audit project ID (found in the project URL in Ahrefs)"},"date":{"type":"string","required":false,"visibility":"user-only","description":"Crawl date in YYYY-MM-DDThh:mm:ss format (defaults to the most recent crawl)"},"limit":{"type":"number","required":false,"visibility":"user-or-llm","description":"Maximum number of results to return. Example: 50 (default: 1000)"},"offset":{"type":"number","required":false,"visibility":"user-or-llm","description":"Number of results to skip, for pagination"},"issueId":{"type":"string","required":false,"visibility":"user-or-llm","description":"Only return pages affected by this issue ID"},"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Ahrefs API Key"}},"oauth":{"required":false,"provider":"ahrefs","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"ahrefs_top_pages":{"id":"ahrefs_top_pages","name":"Ahrefs Top Pages","description":"Get the top pages of a target domain sorted by organic traffic. Returns page URLs with their traffic, keyword counts, and estimated traffic value.","version":"1.0.0","params":{"target":{"type":"string","required":true,"visibility":"user-or-llm","description":"The target domain to analyze. Example: \\"example.com\\""},"country":{"type":"string","required":false,"visibility":"user-or-llm","description":"Country code for traffic data. Example: \\"us\\", \\"gb\\", \\"de\\" (default: \\"us\\")"},"mode":{"type":"string","required":false,"visibility":"user-or-llm","description":"Analysis mode: domain (entire domain), prefix (URL prefix), subdomains (include all subdomains, default), exact (exact URL match). Example: \\"domain\\""},"date":{"type":"string","required":false,"visibility":"user-only","description":"Date to report metrics on, in YYYY-MM-DD format (defaults to today)"},"limit":{"type":"number","required":false,"visibility":"user-or-llm","description":"Maximum number of results to return. Example: 50 (default: 1000)"},"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Ahrefs API Key"}},"oauth":{"required":false,"provider":"ahrefs","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"airtable_create_records":{"id":"airtable_create_records","name":"Airtable Create Records","description":"Write new records to an Airtable table","version":"1.0.0","params":{"accessToken":{"type":"string","required":true,"visibility":"hidden","description":"OAuth access token"},"baseId":{"type":"string","required":true,"visibility":"user-or-llm","description":"Airtable base ID (starts with \\"app\\", e.g., \\"appXXXXXXXXXXXXXX\\")"},"tableId":{"type":"string","required":true,"visibility":"user-or-llm","description":"Table ID (starts with \\"tbl\\") or table name"},"records":{"type":"json","required":true,"visibility":"user-or-llm","description":"Array of records to create, each with a `fields` object"},"typecast":{"type":"boolean","required":false,"visibility":"user-or-llm","description":"When true, Airtable automatically converts string values to the field type"}},"oauth":{"required":true,"provider":"airtable"},"hostedApiKey":"none"},"airtable_delete_records":{"id":"airtable_delete_records","name":"Airtable Delete Records","description":"Delete one or more records from an Airtable table by ID","version":"1.0.0","params":{"accessToken":{"type":"string","required":true,"visibility":"hidden","description":"OAuth access token"},"baseId":{"type":"string","required":true,"visibility":"user-or-llm","description":"Airtable base ID (starts with \\"app\\", e.g., \\"appXXXXXXXXXXXXXX\\")"},"tableId":{"type":"string","required":true,"visibility":"user-or-llm","description":"Table ID (starts with \\"tbl\\") or table name"},"recordIds":{"type":"json","required":true,"visibility":"user-or-llm","description":"Array of record IDs to delete (each starts with \\"rec\\", e.g., [\\"recXXXXXXXXXXXXXX\\"]). Pass a single-element array to delete one record."}},"oauth":{"required":true,"provider":"airtable"},"hostedApiKey":"none"},"airtable_get_base_schema":{"id":"airtable_get_base_schema","name":"Airtable Get Base Schema","description":"Get the schema of all tables, fields, and views in an Airtable base","version":"1.0.0","params":{"accessToken":{"type":"string","required":true,"visibility":"hidden","description":"OAuth access token"},"baseId":{"type":"string","required":true,"visibility":"user-or-llm","description":"Airtable base ID (starts with \\"app\\", e.g., \\"appXXXXXXXXXXXXXX\\")"}},"oauth":{"required":true,"provider":"airtable"},"hostedApiKey":"none"},"airtable_get_record":{"id":"airtable_get_record","name":"Airtable Get Record","description":"Retrieve a single record from an Airtable table by its ID","version":"1.0.0","params":{"accessToken":{"type":"string","required":true,"visibility":"hidden","description":"OAuth access token"},"baseId":{"type":"string","required":true,"visibility":"user-or-llm","description":"Airtable base ID (starts with \\"app\\", e.g., \\"appXXXXXXXXXXXXXX\\")"},"tableId":{"type":"string","required":true,"visibility":"user-or-llm","description":"Table ID (starts with \\"tbl\\") or table name"},"recordId":{"type":"string","required":true,"visibility":"user-or-llm","description":"Record ID to retrieve (starts with \\"rec\\", e.g., \\"recXXXXXXXXXXXXXX\\")"}},"oauth":{"required":true,"provider":"airtable"},"hostedApiKey":"none"},"airtable_list_bases":{"id":"airtable_list_bases","name":"Airtable List Bases","description":"List all bases the authenticated user has access to","version":"1.0.0","params":{"accessToken":{"type":"string","required":true,"visibility":"hidden","description":"OAuth access token"},"offset":{"type":"string","required":false,"visibility":"user-or-llm","description":"Pagination offset for retrieving additional bases"}},"oauth":{"required":true,"provider":"airtable"},"hostedApiKey":"none"},"airtable_list_records":{"id":"airtable_list_records","name":"Airtable List Records","description":"Read records from an Airtable table","version":"1.0.0","params":{"accessToken":{"type":"string","required":true,"visibility":"hidden","description":"OAuth access token"},"baseId":{"type":"string","required":true,"visibility":"user-or-llm","description":"Airtable base ID (starts with \\"app\\", e.g., \\"appXXXXXXXXXXXXXX\\")"},"tableId":{"type":"string","required":true,"visibility":"user-or-llm","description":"Table ID (starts with \\"tbl\\") or table name"},"maxRecords":{"type":"number","required":false,"visibility":"user-or-llm","description":"Maximum total number of records to return. Each request returns at most one page (pageSize, up to 100); use offset to fetch the next page"},"filterFormula":{"type":"string","required":false,"visibility":"user-or-llm","description":"Formula to filter records (e.g., \\"({Field Name} = \'Value\')\\")"},"pageSize":{"type":"number","required":false,"visibility":"user-or-llm","description":"Number of records per page (max 100, default 100)"},"offset":{"type":"string","required":false,"visibility":"user-or-llm","description":"Pagination offset from a previous response, to fetch the next page of records"},"view":{"type":"string","required":false,"visibility":"user-or-llm","description":"View name or ID. Only records in the view are returned, sorted in the view order"}},"oauth":{"required":true,"provider":"airtable"},"hostedApiKey":"none"},"airtable_list_tables":{"id":"airtable_list_tables","name":"Airtable List Tables","description":"List all tables and their schema in an Airtable base","version":"1.0.0","params":{"accessToken":{"type":"string","required":true,"visibility":"hidden","description":"OAuth access token"},"baseId":{"type":"string","required":true,"visibility":"user-or-llm","description":"Airtable base ID (starts with \\"app\\", e.g., \\"appXXXXXXXXXXXXXX\\")"}},"oauth":{"required":true,"provider":"airtable"},"hostedApiKey":"none"},"airtable_update_multiple_records":{"id":"airtable_update_multiple_records","name":"Airtable Update Multiple Records","description":"Update multiple existing records in an Airtable table","version":"1.0.0","params":{"accessToken":{"type":"string","required":true,"visibility":"hidden","description":"OAuth access token"},"baseId":{"type":"string","required":true,"visibility":"user-or-llm","description":"Airtable base ID (starts with \\"app\\", e.g., \\"appXXXXXXXXXXXXXX\\")"},"tableId":{"type":"string","required":true,"visibility":"user-or-llm","description":"Table ID (starts with \\"tbl\\") or table name"},"records":{"type":"json","required":true,"visibility":"user-or-llm","description":"Array of records to update, each with an `id` and a `fields` object"},"typecast":{"type":"boolean","required":false,"visibility":"user-or-llm","description":"When true, Airtable automatically converts string values to the field type"}},"oauth":{"required":true,"provider":"airtable"},"hostedApiKey":"none"},"airtable_update_record":{"id":"airtable_update_record","name":"Airtable Update Record","description":"Update an existing record in an Airtable table by ID","version":"1.0.0","params":{"accessToken":{"type":"string","required":true,"visibility":"hidden","description":"OAuth access token"},"baseId":{"type":"string","required":true,"visibility":"user-or-llm","description":"Airtable base ID (starts with \\"app\\", e.g., \\"appXXXXXXXXXXXXXX\\")"},"tableId":{"type":"string","required":true,"visibility":"user-or-llm","description":"Table ID (starts with \\"tbl\\") or table name"},"recordId":{"type":"string","required":true,"visibility":"user-or-llm","description":"Record ID to update (starts with \\"rec\\", e.g., \\"recXXXXXXXXXXXXXX\\")"},"fields":{"type":"json","required":true,"visibility":"user-or-llm","description":"An object containing the field names and their new values"},"typecast":{"type":"boolean","required":false,"visibility":"user-or-llm","description":"When true, Airtable automatically converts string values to the field type"}},"oauth":{"required":true,"provider":"airtable"},"hostedApiKey":"none"},"airtable_upsert_records":{"id":"airtable_upsert_records","name":"Airtable Upsert Records","description":"Update existing records or create new ones in an Airtable table, matching on the specified merge fields","version":"1.0.0","params":{"accessToken":{"type":"string","required":true,"visibility":"hidden","description":"OAuth access token"},"baseId":{"type":"string","required":true,"visibility":"user-or-llm","description":"Airtable base ID (starts with \\"app\\", e.g., \\"appXXXXXXXXXXXXXX\\")"},"tableId":{"type":"string","required":true,"visibility":"user-or-llm","description":"Table ID (starts with \\"tbl\\") or table name"},"records":{"type":"json","required":true,"visibility":"user-or-llm","description":"Array of records to upsert, each with a `fields` object"},"fieldsToMergeOn":{"type":"json","required":true,"visibility":"user-or-llm","description":"Array of field names used to match existing records (max 3). A record is updated when all merge fields match, otherwise it is created. Example: [\\"Name\\"]"},"typecast":{"type":"boolean","required":false,"visibility":"user-or-llm","description":"When true, Airtable automatically converts string values to the field type"}},"oauth":{"required":true,"provider":"airtable"},"hostedApiKey":"none"},"algolia_add_record":{"id":"algolia_add_record","name":"Algolia Add Record","description":"Add or replace a record in an Algolia index","version":"1.0","params":{"applicationId":{"type":"string","required":true,"visibility":"user-only","description":"Algolia Application ID"},"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Algolia Admin API Key"},"indexName":{"type":"string","required":true,"visibility":"user-or-llm","description":"Name of the Algolia index"},"objectID":{"type":"string","required":false,"visibility":"user-or-llm","description":"Object ID for the record (auto-generated if not provided)"},"record":{"type":"json","required":true,"visibility":"user-or-llm","description":"JSON object representing the record to add"}},"oauth":{"required":false,"provider":"algolia","credentialKind":"service-account","credentialParams":{"applicationId":"providerWorkspaceId","apiKey":"accessToken"},"credentialSuppliedParams":["applicationId","apiKey"]},"hostedApiKey":"none"},"algolia_batch_operations":{"id":"algolia_batch_operations","name":"Algolia Batch Operations","description":"Perform batch add, update, partial update, or delete operations on records in an Algolia index","version":"1.0","params":{"applicationId":{"type":"string","required":true,"visibility":"user-only","description":"Algolia Application ID"},"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Algolia Admin API Key"},"indexName":{"type":"string","required":true,"visibility":"user-or-llm","description":"Name of the Algolia index"},"requests":{"type":"json","required":true,"visibility":"user-or-llm","description":"Array of batch operations. Each item has \\"action\\" (addObject, updateObject, partialUpdateObject, partialUpdateObjectNoCreate, deleteObject, delete, clear) and \\"body\\" (the record data; must include objectID for update/delete; use an empty object {} for the index-level delete/clear actions)"}},"oauth":{"required":false,"provider":"algolia","credentialKind":"service-account","credentialParams":{"applicationId":"providerWorkspaceId","apiKey":"accessToken"},"credentialSuppliedParams":["applicationId","apiKey"]},"hostedApiKey":"none"},"algolia_browse_records":{"id":"algolia_browse_records","name":"Algolia Browse Records","description":"Browse and iterate over all records in an Algolia index using cursor pagination","version":"1.0","params":{"applicationId":{"type":"string","required":true,"visibility":"user-only","description":"Algolia Application ID"},"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Algolia API Key (must have browse ACL)"},"indexName":{"type":"string","required":true,"visibility":"user-or-llm","description":"Name of the Algolia index to browse"},"query":{"type":"string","required":false,"visibility":"user-or-llm","description":"Search query to filter browsed records"},"filters":{"type":"string","required":false,"visibility":"user-or-llm","description":"Filter string to narrow down results"},"attributesToRetrieve":{"type":"string","required":false,"visibility":"user-or-llm","description":"Comma-separated list of attributes to retrieve"},"hitsPerPage":{"type":"number","required":false,"visibility":"user-or-llm","description":"Number of hits per page (default: 1000, max: 1000)"},"cursor":{"type":"string","required":false,"visibility":"user-or-llm","description":"Cursor from a previous browse response for pagination"},"aroundLatLng":{"type":"string","required":false,"visibility":"user-or-llm","description":"Coordinates for geo-search (e.g., \\"40.71,-74.01\\")"},"aroundRadius":{"type":"string","required":false,"visibility":"user-or-llm","description":"Maximum radius in meters for geo-search, or \\"all\\" for unlimited"},"insideBoundingBox":{"type":"json","required":false,"visibility":"user-or-llm","description":"Bounding box coordinates as [[lat1, lng1, lat2, lng2]] for geo-search"},"insidePolygon":{"type":"json","required":false,"visibility":"user-or-llm","description":"Polygon coordinates as [[lat1, lng1, lat2, lng2, lat3, lng3, ...]] for geo-search"}},"oauth":{"required":false,"provider":"algolia","credentialKind":"service-account","credentialParams":{"applicationId":"providerWorkspaceId","apiKey":"accessToken"},"credentialSuppliedParams":["applicationId","apiKey"]},"hostedApiKey":"none"},"algolia_clear_records":{"id":"algolia_clear_records","name":"Algolia Clear Records","description":"Clear all records from an Algolia index while keeping settings, synonyms, and rules","version":"1.0","params":{"applicationId":{"type":"string","required":true,"visibility":"user-only","description":"Algolia Application ID"},"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Algolia Admin API Key (must have deleteIndex ACL)"},"indexName":{"type":"string","required":true,"visibility":"user-or-llm","description":"Name of the Algolia index to clear"}},"oauth":{"required":false,"provider":"algolia","credentialKind":"service-account","credentialParams":{"applicationId":"providerWorkspaceId","apiKey":"accessToken"},"credentialSuppliedParams":["applicationId","apiKey"]},"hostedApiKey":"none"},"algolia_copy_move_index":{"id":"algolia_copy_move_index","name":"Algolia Copy/Move Index","description":"Copy or move an Algolia index to a new destination","version":"1.0","params":{"applicationId":{"type":"string","required":true,"visibility":"user-only","description":"Algolia Application ID"},"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Algolia Admin API Key"},"indexName":{"type":"string","required":true,"visibility":"user-or-llm","description":"Name of the source index"},"operation":{"type":"string","required":true,"visibility":"user-or-llm","description":"Operation to perform: \\"copy\\" or \\"move\\""},"destination":{"type":"string","required":true,"visibility":"user-or-llm","description":"Name of the destination index"},"scope":{"type":"json","required":false,"visibility":"user-or-llm","description":"Array of scopes to copy (only for \\"copy\\" operation): [\\"settings\\", \\"synonyms\\", \\"rules\\"]. Omit to copy everything including records."}},"oauth":{"required":false,"provider":"algolia","credentialKind":"service-account","credentialParams":{"applicationId":"providerWorkspaceId","apiKey":"accessToken"},"credentialSuppliedParams":["applicationId","apiKey"]},"hostedApiKey":"none"},"algolia_delete_by_filter":{"id":"algolia_delete_by_filter","name":"Algolia Delete By Filter","description":"Delete all records matching a filter from an Algolia index","version":"1.0","params":{"applicationId":{"type":"string","required":true,"visibility":"user-only","description":"Algolia Application ID"},"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Algolia Admin API Key (must have deleteIndex ACL)"},"indexName":{"type":"string","required":true,"visibility":"user-or-llm","description":"Name of the Algolia index"},"filters":{"type":"string","required":false,"visibility":"user-or-llm","description":"Filter expression to match records for deletion (e.g., \\"category:outdated\\")"},"facetFilters":{"type":"json","required":false,"visibility":"user-or-llm","description":"Array of facet filters (e.g., [\\"brand:Acme\\"])"},"numericFilters":{"type":"json","required":false,"visibility":"user-or-llm","description":"Array of numeric filters (e.g., [\\"price > 100\\"])"},"tagFilters":{"type":"json","required":false,"visibility":"user-or-llm","description":"Array of tag filters using the _tags attribute (e.g., [\\"published\\"])"},"aroundLatLng":{"type":"string","required":false,"visibility":"user-or-llm","description":"Coordinates for geo-search filter (e.g., \\"40.71,-74.01\\")"},"aroundRadius":{"type":"string","required":false,"visibility":"user-or-llm","description":"Maximum radius in meters for geo-search, or \\"all\\" for unlimited"},"insideBoundingBox":{"type":"json","required":false,"visibility":"user-or-llm","description":"Bounding box coordinates as [[lat1, lng1, lat2, lng2]] for geo-search filter"},"insidePolygon":{"type":"json","required":false,"visibility":"user-or-llm","description":"Polygon coordinates as [[lat1, lng1, lat2, lng2, lat3, lng3, ...]] for geo-search filter"}},"oauth":{"required":false,"provider":"algolia","credentialKind":"service-account","credentialParams":{"applicationId":"providerWorkspaceId","apiKey":"accessToken"},"credentialSuppliedParams":["applicationId","apiKey"]},"hostedApiKey":"none"},"algolia_delete_index":{"id":"algolia_delete_index","name":"Algolia Delete Index","description":"Delete an entire Algolia index and all its records","version":"1.0","params":{"applicationId":{"type":"string","required":true,"visibility":"user-only","description":"Algolia Application ID"},"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Algolia Admin API Key (must have deleteIndex ACL)"},"indexName":{"type":"string","required":true,"visibility":"user-or-llm","description":"Name of the Algolia index to delete"}},"oauth":{"required":false,"provider":"algolia","credentialKind":"service-account","credentialParams":{"applicationId":"providerWorkspaceId","apiKey":"accessToken"},"credentialSuppliedParams":["applicationId","apiKey"]},"hostedApiKey":"none"},"algolia_delete_record":{"id":"algolia_delete_record","name":"Algolia Delete Record","description":"Delete a record by objectID from an Algolia index","version":"1.0","params":{"applicationId":{"type":"string","required":true,"visibility":"user-only","description":"Algolia Application ID"},"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Algolia Admin API Key"},"indexName":{"type":"string","required":true,"visibility":"user-or-llm","description":"Name of the Algolia index"},"objectID":{"type":"string","required":true,"visibility":"user-or-llm","description":"The objectID of the record to delete"}},"oauth":{"required":false,"provider":"algolia","credentialKind":"service-account","credentialParams":{"applicationId":"providerWorkspaceId","apiKey":"accessToken"},"credentialSuppliedParams":["applicationId","apiKey"]},"hostedApiKey":"none"},"algolia_get_record":{"id":"algolia_get_record","name":"Algolia Get Record","description":"Get a record by objectID from an Algolia index","version":"1.0","params":{"applicationId":{"type":"string","required":true,"visibility":"user-only","description":"Algolia Application ID"},"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Algolia API Key"},"indexName":{"type":"string","required":true,"visibility":"user-or-llm","description":"Name of the Algolia index"},"objectID":{"type":"string","required":true,"visibility":"user-or-llm","description":"The objectID of the record to retrieve"},"attributesToRetrieve":{"type":"string","required":false,"visibility":"user-or-llm","description":"Comma-separated list of attributes to retrieve"}},"oauth":{"required":false,"provider":"algolia","credentialKind":"service-account","credentialParams":{"applicationId":"providerWorkspaceId","apiKey":"accessToken"},"credentialSuppliedParams":["applicationId","apiKey"]},"hostedApiKey":"none"},"algolia_get_records":{"id":"algolia_get_records","name":"Algolia Get Records","description":"Retrieve multiple records by objectID from one or more Algolia indices","version":"1.0","params":{"applicationId":{"type":"string","required":true,"visibility":"user-only","description":"Algolia Application ID"},"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Algolia API Key"},"indexName":{"type":"string","required":true,"visibility":"user-or-llm","description":"Default index name for all requests"},"requests":{"type":"json","required":true,"visibility":"user-or-llm","description":"Array of objects specifying records to retrieve. Each must have \\"objectID\\" and optionally \\"indexName\\" and \\"attributesToRetrieve\\"."}},"oauth":{"required":false,"provider":"algolia","credentialKind":"service-account","credentialParams":{"applicationId":"providerWorkspaceId","apiKey":"accessToken"},"credentialSuppliedParams":["applicationId","apiKey"]},"hostedApiKey":"none"},"algolia_get_settings":{"id":"algolia_get_settings","name":"Algolia Get Settings","description":"Retrieve the settings of an Algolia index","version":"1.0","params":{"applicationId":{"type":"string","required":true,"visibility":"user-only","description":"Algolia Application ID"},"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Algolia API Key"},"indexName":{"type":"string","required":true,"visibility":"user-or-llm","description":"Name of the Algolia index"}},"oauth":{"required":false,"provider":"algolia","credentialKind":"service-account","credentialParams":{"applicationId":"providerWorkspaceId","apiKey":"accessToken"},"credentialSuppliedParams":["applicationId","apiKey"]},"hostedApiKey":"none"},"algolia_get_task_status":{"id":"algolia_get_task_status","name":"Algolia Get Task Status","description":"Check whether an Algolia indexing task has finished publishing","version":"1.0","params":{"applicationId":{"type":"string","required":true,"visibility":"user-only","description":"Algolia Application ID"},"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Algolia API Key"},"indexName":{"type":"string","required":true,"visibility":"user-or-llm","description":"Name of the Algolia index the task ran against"},"taskID":{"type":"number","required":true,"visibility":"user-or-llm","description":"The taskID returned by a previous write operation"}},"oauth":{"required":false,"provider":"algolia","credentialKind":"service-account","credentialParams":{"applicationId":"providerWorkspaceId","apiKey":"accessToken"},"credentialSuppliedParams":["applicationId","apiKey"]},"hostedApiKey":"none"},"algolia_list_indices":{"id":"algolia_list_indices","name":"Algolia List Indices","description":"List all indices in an Algolia application","version":"1.0","params":{"applicationId":{"type":"string","required":true,"visibility":"user-only","description":"Algolia Application ID"},"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Algolia API Key"},"page":{"type":"number","required":false,"visibility":"user-or-llm","description":"Page number for paginating indices (default: not paginated)"},"hitsPerPage":{"type":"number","required":false,"visibility":"user-or-llm","description":"Number of indices per page (default: 100)"}},"oauth":{"required":false,"provider":"algolia","credentialKind":"service-account","credentialParams":{"applicationId":"providerWorkspaceId","apiKey":"accessToken"},"credentialSuppliedParams":["applicationId","apiKey"]},"hostedApiKey":"none"},"algolia_partial_update_record":{"id":"algolia_partial_update_record","name":"Algolia Partial Update Record","description":"Partially update a record in an Algolia index without replacing it entirely","version":"1.0","params":{"applicationId":{"type":"string","required":true,"visibility":"user-only","description":"Algolia Application ID"},"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Algolia Admin API Key"},"indexName":{"type":"string","required":true,"visibility":"user-or-llm","description":"Name of the Algolia index"},"objectID":{"type":"string","required":true,"visibility":"user-or-llm","description":"The objectID of the record to update"},"attributes":{"type":"json","required":true,"visibility":"user-or-llm","description":"JSON object with attributes to update. Supports built-in operations like {\\"stock\\": {\\"_operation\\": \\"Decrement\\", \\"value\\": 1}}"},"createIfNotExists":{"type":"boolean","required":false,"visibility":"user-or-llm","description":"Whether to create the record if it does not exist (default: true)"}},"oauth":{"required":false,"provider":"algolia","credentialKind":"service-account","credentialParams":{"applicationId":"providerWorkspaceId","apiKey":"accessToken"},"credentialSuppliedParams":["applicationId","apiKey"]},"hostedApiKey":"none"},"algolia_search":{"id":"algolia_search","name":"Algolia Search","description":"Search an Algolia index","version":"1.0","params":{"applicationId":{"type":"string","required":true,"visibility":"user-only","description":"Algolia Application ID"},"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Algolia API Key"},"indexName":{"type":"string","required":true,"visibility":"user-or-llm","description":"Name of the Algolia index to search"},"query":{"type":"string","required":true,"visibility":"user-or-llm","description":"Search query text"},"hitsPerPage":{"type":"number","required":false,"visibility":"user-or-llm","description":"Number of hits per page (default: 20)"},"page":{"type":"number","required":false,"visibility":"user-or-llm","description":"Page number to retrieve (default: 0)"},"filters":{"type":"string","required":false,"visibility":"user-or-llm","description":"Filter string (e.g., \\"category:electronics AND price < 100\\")"},"attributesToRetrieve":{"type":"string","required":false,"visibility":"user-or-llm","description":"Comma-separated list of attributes to retrieve"},"facets":{"type":"string","required":false,"visibility":"user-or-llm","description":"Comma-separated list of facet attribute names to retrieve counts for (use \\"*\\" for all)"},"getRankingInfo":{"type":"boolean","required":false,"visibility":"user-or-llm","description":"Whether to include detailed ranking information in each hit"},"aroundLatLng":{"type":"string","required":false,"visibility":"user-or-llm","description":"Coordinates for geo-search (e.g., \\"40.71,-74.01\\")"},"aroundRadius":{"type":"string","required":false,"visibility":"user-or-llm","description":"Maximum radius in meters for geo-search, or \\"all\\" for unlimited"},"insideBoundingBox":{"type":"json","required":false,"visibility":"user-or-llm","description":"Bounding box coordinates as [[lat1, lng1, lat2, lng2]] for geo-search"},"insidePolygon":{"type":"json","required":false,"visibility":"user-or-llm","description":"Polygon coordinates as [[lat1, lng1, lat2, lng2, lat3, lng3, ...]] for geo-search"}},"oauth":{"required":false,"provider":"algolia","credentialKind":"service-account","credentialParams":{"applicationId":"providerWorkspaceId","apiKey":"accessToken"},"credentialSuppliedParams":["applicationId","apiKey"]},"hostedApiKey":"none"},"algolia_update_settings":{"id":"algolia_update_settings","name":"Algolia Update Settings","description":"Update the settings of an Algolia index","version":"1.0","params":{"applicationId":{"type":"string","required":true,"visibility":"user-only","description":"Algolia Application ID"},"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Algolia Admin API Key (must have editSettings ACL)"},"indexName":{"type":"string","required":true,"visibility":"user-or-llm","description":"Name of the Algolia index"},"settings":{"type":"json","required":true,"visibility":"user-or-llm","description":"JSON object with settings to update (e.g., {\\"searchableAttributes\\": [\\"name\\", \\"description\\"], \\"customRanking\\": [\\"desc(popularity)\\"]})"},"forwardToReplicas":{"type":"boolean","required":false,"visibility":"user-or-llm","description":"Whether to apply changes to replica indices (default: false)"}},"oauth":{"required":false,"provider":"algolia","credentialKind":"service-account","credentialParams":{"applicationId":"providerWorkspaceId","apiKey":"accessToken"},"credentialSuppliedParams":["applicationId","apiKey"]},"hostedApiKey":"none"},"amplitude_event_segmentation":{"id":"amplitude_event_segmentation","name":"Amplitude Event Segmentation","description":"Query event analytics data with segmentation. Get event counts, uniques, averages, and more.","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Amplitude API Key"},"secretKey":{"type":"string","required":true,"visibility":"user-only","description":"Amplitude Secret Key"},"eventType":{"type":"string","required":true,"visibility":"user-or-llm","description":"Event type name to analyze"},"secondEventType":{"type":"string","required":false,"visibility":"user-or-llm","description":"Second event type to query alongside the first (event B in a formula such as \\"UNIQUES(A)/UNIQUES(B)\\")"},"start":{"type":"string","required":true,"visibility":"user-or-llm","description":"Start date in YYYYMMDD format"},"end":{"type":"string","required":true,"visibility":"user-or-llm","description":"End date in YYYYMMDD format"},"metric":{"type":"string","required":false,"visibility":"user-or-llm","description":"Metric type: uniques, totals, pct_dau, average, histogram, sums, value_avg, or formula (default: uniques)"},"interval":{"type":"string","required":false,"visibility":"user-or-llm","description":"Time interval: -300000 (real-time), -3600000 (hourly), 1 (daily), 7 (weekly), or 30 (monthly)"},"groupBy":{"type":"string","required":false,"visibility":"user-or-llm","description":"Property name to group by (prefix custom user properties with \\"gp:\\")"},"groupBy2":{"type":"string","required":false,"visibility":"user-or-llm","description":"Second property name to group by (prefix custom user properties with \\"gp:\\")"},"limit":{"type":"string","required":false,"visibility":"user-or-llm","description":"Maximum number of group-by values (default 1000, max 20000)"},"filters":{"type":"string","required":false,"visibility":"user-or-llm","description":"JSON array of filter objects applied to the event, e.g. [{\\"subprop_type\\":\\"event\\",\\"subprop_key\\":\\"city\\",\\"subprop_op\\":\\"is\\",\\"subprop_value\\":[\\"San Francisco\\"]}]"},"formula":{"type":"string","required":false,"visibility":"user-or-llm","description":"Required when metric is \\"formula\\", e.g. \\"UNIQUES(A)/UNIQUES(B)\\""},"segment":{"type":"string","required":false,"visibility":"user-or-llm","description":"JSON segment definition(s) applied to the query"},"dataResidency":{"type":"string","required":false,"visibility":"user-or-llm","description":"Data residency region: \\"us\\" (default) or \\"eu\\""}},"oauth":{"required":false,"provider":"amplitude","credentialKind":"service-account","credentialParams":{"apiKey":"providerWorkspaceId","secretKey":"accessToken","dataResidency":"domain"},"credentialSuppliedParams":["apiKey","secretKey","dataResidency"]},"hostedApiKey":"none"},"amplitude_funnels":{"id":"amplitude_funnels","name":"Amplitude Funnels","description":"Analyze conversion rates and drop-off between a sequence of events.","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Amplitude API Key"},"secretKey":{"type":"string","required":true,"visibility":"user-only","description":"Amplitude Secret Key"},"events":{"type":"string","required":true,"visibility":"user-or-llm","description":"JSON array of event objects, one per funnel step in order, e.g. [{\\"event_type\\":\\"signup\\"},{\\"event_type\\":\\"purchase\\"}]"},"start":{"type":"string","required":true,"visibility":"user-or-llm","description":"Start date in YYYYMMDD format"},"end":{"type":"string","required":true,"visibility":"user-or-llm","description":"End date in YYYYMMDD format"},"mode":{"type":"string","required":false,"visibility":"user-or-llm","description":"Funnel ordering: \\"ordered\\", \\"unordered\\", or \\"sequential\\" (default: ordered)"},"userType":{"type":"string","required":false,"visibility":"user-or-llm","description":"User type: \\"new\\" or \\"active\\" (default: active)"},"interval":{"type":"string","required":false,"visibility":"user-or-llm","description":"Time interval: -300000 (real-time), -3600000 (hourly), 1 (daily), 7 (weekly), or 30 (monthly)"},"conversionWindowSeconds":{"type":"string","required":false,"visibility":"user-or-llm","description":"Conversion window in seconds (default: 2592000, i.e. 30 days)"},"groupBy":{"type":"string","required":false,"visibility":"user-or-llm","description":"Property to group by (limit: one; prefix custom properties with \\"gp:\\")"},"limit":{"type":"string","required":false,"visibility":"user-or-llm","description":"Maximum number of group-by values (default and max: 1000)"},"segment":{"type":"string","required":false,"visibility":"user-or-llm","description":"JSON segment definition(s) applied to the query"},"dataResidency":{"type":"string","required":false,"visibility":"user-or-llm","description":"Data residency region: \\"us\\" (default) or \\"eu\\""}},"oauth":{"required":false,"provider":"amplitude","credentialKind":"service-account","credentialParams":{"apiKey":"providerWorkspaceId","secretKey":"accessToken","dataResidency":"domain"},"credentialSuppliedParams":["apiKey","secretKey","dataResidency"]},"hostedApiKey":"none"},"amplitude_get_active_users":{"id":"amplitude_get_active_users","name":"Amplitude Get Active Users","description":"Get active or new user counts over a date range from the Dashboard REST API.","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Amplitude API Key"},"secretKey":{"type":"string","required":true,"visibility":"user-only","description":"Amplitude Secret Key"},"start":{"type":"string","required":true,"visibility":"user-or-llm","description":"Start date in YYYYMMDD format"},"end":{"type":"string","required":true,"visibility":"user-or-llm","description":"End date in YYYYMMDD format"},"metric":{"type":"string","required":false,"visibility":"user-or-llm","description":"Metric type: \\"active\\" or \\"new\\" (default: active)"},"interval":{"type":"string","required":false,"visibility":"user-or-llm","description":"Time interval: 1 (daily), 7 (weekly), or 30 (monthly)"},"groupBy":{"type":"string","required":false,"visibility":"user-or-llm","description":"Property name to group by"},"segment":{"type":"string","required":false,"visibility":"user-or-llm","description":"JSON segment definition(s) applied to the query"},"dataResidency":{"type":"string","required":false,"visibility":"user-or-llm","description":"Data residency region: \\"us\\" (default) or \\"eu\\""}},"oauth":{"required":false,"provider":"amplitude","credentialKind":"service-account","credentialParams":{"apiKey":"providerWorkspaceId","secretKey":"accessToken","dataResidency":"domain"},"credentialSuppliedParams":["apiKey","secretKey","dataResidency"]},"hostedApiKey":"none"},"amplitude_get_revenue":{"id":"amplitude_get_revenue","name":"Amplitude Get Revenue","description":"Get revenue LTV data including ARPU, ARPPU, total revenue, and paying user counts.","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Amplitude API Key"},"secretKey":{"type":"string","required":true,"visibility":"user-only","description":"Amplitude Secret Key"},"start":{"type":"string","required":true,"visibility":"user-or-llm","description":"Start date in YYYYMMDD format"},"end":{"type":"string","required":true,"visibility":"user-or-llm","description":"End date in YYYYMMDD format"},"metric":{"type":"string","required":false,"visibility":"user-or-llm","description":"Metric: 0 (ARPU), 1 (ARPPU), 2 (Total Revenue), 3 (Paying Users)"},"interval":{"type":"string","required":false,"visibility":"user-or-llm","description":"Time interval: 1 (daily), 7 (weekly), or 30 (monthly)"},"groupBy":{"type":"string","required":false,"visibility":"user-or-llm","description":"Property name to group by (limit: one)"},"segment":{"type":"string","required":false,"visibility":"user-or-llm","description":"JSON segment definition(s) applied to the query"},"dataResidency":{"type":"string","required":false,"visibility":"user-or-llm","description":"Data residency region: \\"us\\" (default) or \\"eu\\""}},"oauth":{"required":false,"provider":"amplitude","credentialKind":"service-account","credentialParams":{"apiKey":"providerWorkspaceId","secretKey":"accessToken","dataResidency":"domain"},"credentialSuppliedParams":["apiKey","secretKey","dataResidency"]},"hostedApiKey":"none"},"amplitude_group_identify":{"id":"amplitude_group_identify","name":"Amplitude Group Identify","description":"Set group-level properties in Amplitude. Supports $set, $setOnce, $add, $append, $unset operations.","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Amplitude API Key"},"groupType":{"type":"string","required":true,"visibility":"user-or-llm","description":"Group classification (e.g., \\"company\\", \\"org_id\\")"},"groupValue":{"type":"string","required":true,"visibility":"user-or-llm","description":"Specific group identifier (e.g., \\"Acme Corp\\")"},"groupProperties":{"type":"string","required":true,"visibility":"user-or-llm","description":"JSON object of group properties. Use operations like $set, $setOnce, $add, $append, $unset."},"dataResidency":{"type":"string","required":false,"visibility":"user-or-llm","description":"Data residency region: \\"us\\" (default) or \\"eu\\""}},"oauth":{"required":false,"provider":"amplitude","credentialKind":"service-account","credentialParams":{"apiKey":"providerWorkspaceId","dataResidency":"domain"},"credentialSuppliedParams":["apiKey","dataResidency"]},"hostedApiKey":"none"},"amplitude_identify_user":{"id":"amplitude_identify_user","name":"Amplitude Identify User","description":"Set user properties in Amplitude using the Identify API. Supports $set, $setOnce, $add, $append, $unset operations.","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Amplitude API Key"},"userId":{"type":"string","required":false,"visibility":"user-or-llm","description":"User ID (required if no device_id)"},"deviceId":{"type":"string","required":false,"visibility":"user-or-llm","description":"Device ID (required if no user_id)"},"userProperties":{"type":"string","required":true,"visibility":"user-or-llm","description":"JSON object of user properties. Use operations like $set, $setOnce, $add, $append, $unset."},"dataResidency":{"type":"string","required":false,"visibility":"user-or-llm","description":"Data residency region: \\"us\\" (default) or \\"eu\\""}},"oauth":{"required":false,"provider":"amplitude","credentialKind":"service-account","credentialParams":{"apiKey":"providerWorkspaceId","dataResidency":"domain"},"credentialSuppliedParams":["apiKey","dataResidency"]},"hostedApiKey":"none"},"amplitude_list_events":{"id":"amplitude_list_events","name":"Amplitude List Events","description":"List all event types in the Amplitude project with their weekly totals and unique counts.","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Amplitude API Key"},"secretKey":{"type":"string","required":true,"visibility":"user-only","description":"Amplitude Secret Key"},"dataResidency":{"type":"string","required":false,"visibility":"user-or-llm","description":"Data residency region: \\"us\\" (default) or \\"eu\\""}},"oauth":{"required":false,"provider":"amplitude","credentialKind":"service-account","credentialParams":{"apiKey":"providerWorkspaceId","secretKey":"accessToken","dataResidency":"domain"},"credentialSuppliedParams":["apiKey","secretKey","dataResidency"]},"hostedApiKey":"none"},"amplitude_realtime_active_users":{"id":"amplitude_realtime_active_users","name":"Amplitude Real-time Active Users","description":"Get real-time active user counts at 5-minute granularity for the last 2 days.","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Amplitude API Key"},"secretKey":{"type":"string","required":true,"visibility":"user-only","description":"Amplitude Secret Key"},"dataResidency":{"type":"string","required":false,"visibility":"user-or-llm","description":"Data residency region: \\"us\\" (default) or \\"eu\\""}},"oauth":{"required":false,"provider":"amplitude","credentialKind":"service-account","credentialParams":{"apiKey":"providerWorkspaceId","secretKey":"accessToken","dataResidency":"domain"},"credentialSuppliedParams":["apiKey","secretKey","dataResidency"]},"hostedApiKey":"none"},"amplitude_retention":{"id":"amplitude_retention","name":"Amplitude Retention","description":"Measure how many users return to perform an action after a starting action.","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Amplitude API Key"},"secretKey":{"type":"string","required":true,"visibility":"user-only","description":"Amplitude Secret Key"},"startEvent":{"type":"string","required":true,"visibility":"user-or-llm","description":"JSON starting event object, e.g. {\\"event_type\\":\\"_new\\"} or {\\"event_type\\":\\"_active\\"}"},"returnEvent":{"type":"string","required":true,"visibility":"user-or-llm","description":"JSON returning event object, e.g. {\\"event_type\\":\\"_all\\"} or {\\"event_type\\":\\"_active\\"}"},"start":{"type":"string","required":true,"visibility":"user-or-llm","description":"Start date in YYYYMMDD format"},"end":{"type":"string","required":true,"visibility":"user-or-llm","description":"End date in YYYYMMDD format"},"retentionMode":{"type":"string","required":false,"visibility":"user-or-llm","description":"Retention type: \\"n-day\\" (sent as nday), \\"rolling\\", \\"bracket\\", or \\"nday_or_before\\" (default: n-day)"},"retentionBrackets":{"type":"string","required":false,"visibility":"user-or-llm","description":"Required when Retention Mode is \\"bracket\\". Day ranges with an exclusive end day, e.g. [[0,5]] for Day 0 to Day 4"},"interval":{"type":"string","required":false,"visibility":"user-or-llm","description":"Time interval: 1 (daily), 7 (weekly), or 30 (monthly)"},"groupBy":{"type":"string","required":false,"visibility":"user-or-llm","description":"Property to group by (limit: one; prefix custom properties with \\"gp:\\")"},"segment":{"type":"string","required":false,"visibility":"user-or-llm","description":"JSON segment definition(s) applied to the query"},"dataResidency":{"type":"string","required":false,"visibility":"user-or-llm","description":"Data residency region: \\"us\\" (default) or \\"eu\\""}},"oauth":{"required":false,"provider":"amplitude","credentialKind":"service-account","credentialParams":{"apiKey":"providerWorkspaceId","secretKey":"accessToken","dataResidency":"domain"},"credentialSuppliedParams":["apiKey","secretKey","dataResidency"]},"hostedApiKey":"none"},"amplitude_send_event":{"id":"amplitude_send_event","name":"Amplitude Send Event","description":"Track an event in Amplitude using the HTTP V2 API.","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Amplitude API Key"},"userId":{"type":"string","required":false,"visibility":"user-or-llm","description":"User ID (required if no device_id)"},"deviceId":{"type":"string","required":false,"visibility":"user-or-llm","description":"Device ID (required if no user_id)"},"eventType":{"type":"string","required":true,"visibility":"user-or-llm","description":"Name of the event (e.g., \\"page_view\\", \\"purchase\\")"},"eventProperties":{"type":"string","required":false,"visibility":"user-or-llm","description":"JSON object of custom event properties"},"userProperties":{"type":"string","required":false,"visibility":"user-or-llm","description":"JSON object of user properties to set (supports $set, $setOnce, $add, $append, $unset)"},"time":{"type":"string","required":false,"visibility":"user-or-llm","description":"Event timestamp in milliseconds since epoch"},"sessionId":{"type":"string","required":false,"visibility":"user-or-llm","description":"Session start time in milliseconds since epoch"},"insertId":{"type":"string","required":false,"visibility":"user-or-llm","description":"Unique ID for deduplication (within 7-day window)"},"appVersion":{"type":"string","required":false,"visibility":"user-or-llm","description":"Application version string"},"platform":{"type":"string","required":false,"visibility":"user-or-llm","description":"Platform (e.g., \\"Web\\", \\"iOS\\", \\"Android\\")"},"country":{"type":"string","required":false,"visibility":"user-or-llm","description":"Two-letter country code"},"language":{"type":"string","required":false,"visibility":"user-or-llm","description":"Language code (e.g., \\"en\\")"},"ip":{"type":"string","required":false,"visibility":"user-or-llm","description":"IP address for geo-location"},"price":{"type":"string","required":false,"visibility":"user-or-llm","description":"Price of the item purchased"},"quantity":{"type":"string","required":false,"visibility":"user-or-llm","description":"Quantity of items purchased"},"revenue":{"type":"string","required":false,"visibility":"user-or-llm","description":"Revenue amount"},"productId":{"type":"string","required":false,"visibility":"user-or-llm","description":"Product identifier"},"revenueType":{"type":"string","required":false,"visibility":"user-or-llm","description":"Revenue type (e.g., \\"purchase\\", \\"refund\\")"},"dataResidency":{"type":"string","required":false,"visibility":"user-or-llm","description":"Data residency region: \\"us\\" (default) or \\"eu\\""}},"oauth":{"required":false,"provider":"amplitude","credentialKind":"service-account","credentialParams":{"apiKey":"providerWorkspaceId","dataResidency":"domain"},"credentialSuppliedParams":["apiKey","dataResidency"]},"hostedApiKey":"none"},"amplitude_user_activity":{"id":"amplitude_user_activity","name":"Amplitude User Activity","description":"Get the event stream for a specific user by their Amplitude ID.","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Amplitude API Key"},"secretKey":{"type":"string","required":true,"visibility":"user-only","description":"Amplitude Secret Key"},"amplitudeId":{"type":"string","required":true,"visibility":"user-or-llm","description":"Amplitude internal user ID"},"offset":{"type":"string","required":false,"visibility":"user-or-llm","description":"Offset for pagination (default 0)"},"limit":{"type":"string","required":false,"visibility":"user-or-llm","description":"Maximum number of events to return (default 1000, max 1000)"},"direction":{"type":"string","required":false,"visibility":"user-or-llm","description":"Sort direction: \\"latest\\" or \\"earliest\\" (default: latest)"},"dataResidency":{"type":"string","required":false,"visibility":"user-or-llm","description":"Data residency region: \\"us\\" (default) or \\"eu\\""}},"oauth":{"required":false,"provider":"amplitude","credentialKind":"service-account","credentialParams":{"apiKey":"providerWorkspaceId","secretKey":"accessToken","dataResidency":"domain"},"credentialSuppliedParams":["apiKey","secretKey","dataResidency"]},"hostedApiKey":"none"},"amplitude_user_profile":{"id":"amplitude_user_profile","name":"Amplitude User Profile","description":"Get a user profile including properties, cohort memberships, and computed properties. Not available for EU data-residency projects.","version":"1.0.0","params":{"apiKey":{"type":"string","required":false,"visibility":"user-only","description":"Amplitude API Key. With it, the request authenticates with both keys over Basic auth"},"secretKey":{"type":"string","required":true,"visibility":"user-only","description":"Amplitude Secret Key"},"userId":{"type":"string","required":false,"visibility":"user-or-llm","description":"External user ID (required if no device_id)"},"deviceId":{"type":"string","required":false,"visibility":"user-or-llm","description":"Device ID (required if no user_id)"},"getAmpProps":{"type":"string","required":false,"visibility":"user-or-llm","description":"Include Amplitude user properties (true/false, default: false)"},"getCohortIds":{"type":"string","required":false,"visibility":"user-or-llm","description":"Include cohort IDs the user belongs to (true/false, default: false)"},"getComputations":{"type":"string","required":false,"visibility":"user-or-llm","description":"Include computed user properties (true/false, default: false)"}},"oauth":{"required":false,"provider":"amplitude","credentialKind":"service-account","credentialParams":{"apiKey":"providerWorkspaceId","secretKey":"accessToken"},"credentialSuppliedParams":["apiKey","secretKey"]},"hostedApiKey":"none"},"amplitude_user_search":{"id":"amplitude_user_search","name":"Amplitude User Search","description":"Search for a user by User ID, Device ID, or Amplitude ID using the Dashboard REST API.","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Amplitude API Key"},"secretKey":{"type":"string","required":true,"visibility":"user-only","description":"Amplitude Secret Key"},"user":{"type":"string","required":true,"visibility":"user-or-llm","description":"User ID, Device ID, or Amplitude ID to search for"},"dataResidency":{"type":"string","required":false,"visibility":"user-or-llm","description":"Data residency region: \\"us\\" (default) or \\"eu\\""}},"oauth":{"required":false,"provider":"amplitude","credentialKind":"service-account","credentialParams":{"apiKey":"providerWorkspaceId","secretKey":"accessToken","dataResidency":"domain"},"credentialSuppliedParams":["apiKey","secretKey","dataResidency"]},"hostedApiKey":"none"},"apify_get_dataset_items":{"id":"apify_get_dataset_items","name":"APIFY Get Dataset Items","description":"Retrieve items stored in an APIFY dataset","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"APIFY API token from console.apify.com/account#/integrations"},"datasetId":{"type":"string","required":true,"visibility":"user-or-llm","description":"Dataset ID to read items from. Example: \\"9RnD3Pql2vGZkc5H5\\""},"itemLimit":{"type":"number","required":false,"visibility":"user-or-llm","description":"Max items to return (1-250000). Default: all items. Example: 500"},"offset":{"type":"number","required":false,"visibility":"user-or-llm","description":"Number of items to skip at the start. Default: 0"},"fields":{"type":"string","required":false,"visibility":"user-or-llm","description":"Comma-separated list of fields to include. Example: \\"title,url,price\\""}},"oauth":{"required":false,"provider":"apify","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"apify_get_run":{"id":"apify_get_run","name":"APIFY Get Run","description":"Get the status and details of an APIFY actor run","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"APIFY API token from console.apify.com/account#/integrations"},"runId":{"type":"string","required":true,"visibility":"user-or-llm","description":"Actor run ID to fetch. Example: \\"HG7ML7M8z78YcAPEB\\""}},"oauth":{"required":false,"provider":"apify","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"apify_run_actor_async":{"id":"apify_run_actor_async","name":"APIFY Run Actor (Async)","description":"Start an APIFY Actor run and poll it within the same workflow step until completion or the polling deadline","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"APIFY API token from console.apify.com/account#/integrations"},"actorId":{"type":"string","required":true,"visibility":"user-or-llm","description":"Actor ID or username/actor-name. Examples: \\"apify/web-scraper\\", \\"janedoe/my-actor\\", \\"moJRLRc85AitArpNN\\""},"input":{"type":"string","required":false,"visibility":"user-or-llm","description":"Actor input as JSON string. Example: { \\"startUrls\\": [ { \\"url\\": \\"https://example.com\\" } ], \\"maxPages\\": 10 }"},"waitForFinish":{"type":"number","required":false,"visibility":"user-or-llm","description":"Initial wait time in seconds (0-60) before polling starts. Example: 30"},"itemLimit":{"type":"number","required":false,"default":100,"visibility":"user-or-llm","description":"Max dataset items to fetch (1-250000). Default: 100. Example: 500"},"memory":{"type":"number","required":false,"visibility":"user-or-llm","description":"Memory in megabytes allocated for the actor run (128-32768). Example: 1024 for 1GB, 2048 for 2GB"},"timeout":{"type":"number","required":false,"visibility":"user-or-llm","description":"Timeout in seconds for the actor run. Example: 300 for 5 minutes, 3600 for 1 hour"},"build":{"type":"string","required":false,"visibility":"user-or-llm","description":"Actor build to run. Examples: \\"latest\\", \\"beta\\", \\"1.2.3\\", \\"build-tag-name\\""}},"oauth":{"required":false,"provider":"apify","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"apify_run_actor_sync":{"id":"apify_run_actor_sync","name":"APIFY Run Actor (Sync)","description":"Run an APIFY actor synchronously and get results (max 5 minutes)","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"APIFY API token from console.apify.com/account#/integrations"},"actorId":{"type":"string","required":true,"visibility":"user-or-llm","description":"Actor ID or username/actor-name. Examples: \\"apify/web-scraper\\", \\"janedoe/my-actor\\", \\"moJRLRc85AitArpNN\\""},"input":{"type":"string","required":false,"visibility":"user-or-llm","description":"Actor input as JSON string. Example: { \\"startUrls\\": [ { \\"url\\": \\"https://example.com\\" } ], \\"maxPages\\": 10 }"},"memory":{"type":"number","required":false,"visibility":"user-or-llm","description":"Memory in megabytes allocated for the actor run (128-32768). Example: 1024 for 1GB, 2048 for 2GB"},"timeout":{"type":"number","required":false,"visibility":"user-or-llm","description":"Timeout in seconds for the actor run. Example: 300 for 5 minutes, 3600 for 1 hour"},"build":{"type":"string","required":false,"visibility":"user-or-llm","description":"Actor build to run. Examples: \\"latest\\", \\"beta\\", \\"1.2.3\\", \\"build-tag-name\\""}},"oauth":{"required":false,"provider":"apify","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"apify_run_task":{"id":"apify_run_task","name":"APIFY Run Task","description":"Run a saved APIFY actor task synchronously and get dataset items (max 5 minutes)","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"APIFY API token from console.apify.com/account#/integrations"},"taskId":{"type":"string","required":true,"visibility":"user-or-llm","description":"Task ID or username/task-name. Examples: \\"janedoe/my-task\\", \\"moJRLRc85AitArpNN\\""},"input":{"type":"string","required":false,"visibility":"user-or-llm","description":"JSON string that overrides the task\'s saved input. Example: { \\"startUrls\\": [ { \\"url\\": \\"https://example.com\\" } ] }"},"itemLimit":{"type":"number","required":false,"visibility":"user-or-llm","description":"Max dataset items to return (1-250000). Example: 500"},"memory":{"type":"number","required":false,"visibility":"user-or-llm","description":"Memory in megabytes allocated for the run (128-32768). Example: 1024 for 1GB"},"timeout":{"type":"number","required":false,"visibility":"user-or-llm","description":"Timeout in seconds for the run. Example: 300 for 5 minutes"},"build":{"type":"string","required":false,"visibility":"user-or-llm","description":"Actor build to run. Examples: \\"latest\\", \\"beta\\", \\"1.2.3\\""}},"oauth":{"required":false,"provider":"apify","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"apollo_account_bulk_create":{"id":"apollo_account_bulk_create","name":"Apollo Bulk Create Accounts","description":"Create up to 100 accounts at once in your Apollo database. Set run_dedupe=true to deduplicate by domain, organization_id, and name. Master key required.","version":"1.0.0","params":{"credentialType":{"type":"string","required":false,"visibility":"hidden","description":"Stored credential type supplied by credential resolution"},"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Apollo API key (master key required)"},"accounts":{"type":"array","required":true,"visibility":"user-or-llm","description":"Array of accounts to create (max 100). Each account should include a name, and may optionally include domain, phone, phone_status_cd, raw_address, owner_id, linkedin_url, facebook_url, twitter_url, salesforce_id, and hubspot_id."},"append_label_names":{"type":"array","required":false,"visibility":"user-only","description":"Array of label names to add to ALL accounts in this request"},"run_dedupe":{"type":"boolean","required":false,"visibility":"user-or-llm","description":"When true, performs aggressive deduplication by domain, organization_id, and name (defaults to false)"}},"oauth":{"required":false,"provider":"apollo","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"],"authoritativeParams":["credentialType"]},"hostedApiKey":"none"},"apollo_account_bulk_update":{"id":"apollo_account_bulk_update","name":"Apollo Bulk Update Accounts","description":"Update up to 1000 existing accounts at once in your Apollo database (higher limit than contacts!). Each account must include an id field. Master key required.","version":"1.0.0","params":{"credentialType":{"type":"string","required":false,"visibility":"hidden","description":"Stored credential type supplied by credential resolution"},"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Apollo API key (master key required)"},"account_ids":{"type":"array","required":false,"visibility":"user-or-llm","description":"Array of account IDs to update with the same values (max 1000). Use with name/owner_id for uniform updates. Use either this OR account_attributes."},"name":{"type":"string","required":false,"visibility":"user-or-llm","description":"When using account_ids, apply this name to all accounts"},"owner_id":{"type":"string","required":false,"visibility":"user-or-llm","description":"When using account_ids, apply this owner to all accounts"},"account_stage_id":{"type":"string","required":false,"visibility":"user-or-llm","description":"When using account_ids, apply this account stage to all accounts"},"account_attributes":{"type":"json","required":false,"visibility":"user-or-llm","description":"Array of account objects with individual updates (each must include id). Example: [{\\"id\\": \\"acc1\\", \\"name\\": \\"Acme\\", \\"owner_id\\": \\"u1\\", \\"account_stage_id\\": \\"s1\\", \\"typed_custom_fields\\": {\\"field_id\\": \\"value\\"}}]"},"async":{"type":"boolean","required":false,"visibility":"user-only","description":"When true, processes the update asynchronously. Only supported when using account_ids; returns 422 if used with account_attributes."}},"oauth":{"required":false,"provider":"apollo","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"],"authoritativeParams":["credentialType"]},"hostedApiKey":"none"},"apollo_account_create":{"id":"apollo_account_create","name":"Apollo Create Account","description":"Create a new account (company) in your Apollo database","version":"1.0.0","params":{"credentialType":{"type":"string","required":false,"visibility":"hidden","description":"Stored credential type supplied by credential resolution"},"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Apollo API key (master key required)"},"name":{"type":"string","required":true,"visibility":"user-or-llm","description":"Company name (e.g., \\"Acme Corporation\\")"},"domain":{"type":"string","required":false,"visibility":"user-or-llm","description":"Company domain without www. prefix (e.g., \\"acme.com\\")"},"phone":{"type":"string","required":false,"visibility":"user-or-llm","description":"Primary phone number for the account"},"owner_id":{"type":"string","required":false,"visibility":"user-only","description":"Apollo user ID of the account owner"},"account_stage_id":{"type":"string","required":false,"visibility":"user-only","description":"Apollo ID for the account stage to assign this account to"},"raw_address":{"type":"string","required":false,"visibility":"user-or-llm","description":"Corporate location (e.g., \\"San Francisco, CA, USA\\")"},"typed_custom_fields":{"type":"json","required":false,"visibility":"user-only","description":"Custom field values as { custom_field_id: value } map"}},"oauth":{"required":false,"provider":"apollo","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"],"authoritativeParams":["credentialType"]},"hostedApiKey":"none"},"apollo_account_search":{"id":"apollo_account_search","name":"Apollo Search Accounts","description":"Search your team\'s accounts in Apollo. Display limit: 50,000 records (100 records per page, 500 pages max). Use filters to narrow results. Master key required.","version":"1.0.0","params":{"credentialType":{"type":"string","required":false,"visibility":"hidden","description":"Stored credential type supplied by credential resolution"},"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Apollo API key (master key required)"},"q_organization_name":{"type":"string","required":false,"visibility":"user-or-llm","description":"Filter accounts by organization name (partial-match search)"},"account_stage_ids":{"type":"array","required":false,"visibility":"user-only","description":"Filter by account stage IDs"},"account_label_ids":{"type":"array","required":false,"visibility":"user-only","description":"Filter by account label IDs"},"sort_by_field":{"type":"string","required":false,"visibility":"user-or-llm","description":"Sort field: \\"account_last_activity_date\\", \\"account_created_at\\", or \\"account_updated_at\\""},"sort_ascending":{"type":"boolean","required":false,"visibility":"user-or-llm","description":"Sort ascending when true. Defaults to descending."},"page":{"type":"number","required":false,"visibility":"user-or-llm","description":"Page number for pagination (e.g., 1, 2, 3)"},"per_page":{"type":"number","required":false,"visibility":"user-or-llm","description":"Results per page, max 100 (e.g., 25, 50, 100)"}},"oauth":{"required":false,"provider":"apollo","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"],"authoritativeParams":["credentialType"]},"hostedApiKey":"none"},"apollo_account_update":{"id":"apollo_account_update","name":"Apollo Update Account","description":"Update an existing account in your Apollo database","version":"1.0.0","params":{"credentialType":{"type":"string","required":false,"visibility":"hidden","description":"Stored credential type supplied by credential resolution"},"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Apollo API key"},"account_id":{"type":"string","required":true,"visibility":"user-or-llm","description":"ID of the account to update (e.g., \\"acc_abc123\\")"},"name":{"type":"string","required":false,"visibility":"user-or-llm","description":"Company name (e.g., \\"Acme Corporation\\")"},"domain":{"type":"string","required":false,"visibility":"user-or-llm","description":"Company domain (e.g., \\"acme.com\\")"},"phone":{"type":"string","required":false,"visibility":"user-or-llm","description":"Company phone number"},"owner_id":{"type":"string","required":false,"visibility":"user-only","description":"Apollo user ID of the account owner"},"account_stage_id":{"type":"string","required":false,"visibility":"user-only","description":"Apollo ID for the account stage to assign this account to"},"raw_address":{"type":"string","required":false,"visibility":"user-or-llm","description":"Corporate location (e.g., \\"San Francisco, CA, USA\\")"},"typed_custom_fields":{"type":"json","required":false,"visibility":"user-only","description":"Custom field values as { custom_field_id: value } map"}},"oauth":{"required":false,"provider":"apollo","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"],"authoritativeParams":["credentialType"]},"hostedApiKey":"none"},"apollo_contact_bulk_create":{"id":"apollo_contact_bulk_create","name":"Apollo Bulk Create Contacts","description":"Create up to 100 contacts at once in your Apollo database. Supports deduplication to prevent creating duplicate contacts. Master key required.","version":"1.0.0","params":{"credentialType":{"type":"string","required":false,"visibility":"hidden","description":"Stored credential type supplied by credential resolution"},"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Apollo API key (master key required)"},"contacts":{"type":"array","required":true,"visibility":"user-or-llm","description":"Array of contacts to create (max 100). Each contact may include first_name, last_name, email, title, organization_name, account_id, owner_id, contact_stage_id, linkedin_url, phone (single string) or phone_numbers (array of {raw_number, position}), contact_emails, typed_custom_fields, and CRM IDs (salesforce_contact_id, hubspot_id, team_id) for cross-system matching"},"append_label_names":{"type":"array","required":false,"visibility":"user-or-llm","description":"Label names to add to all contacts in this request (e.g., [\\"Hot Lead\\"])"},"run_dedupe":{"type":"boolean","required":false,"visibility":"user-only","description":"Enable deduplication to prevent creating duplicate contacts. When true, existing contacts are returned without modification"}},"oauth":{"required":false,"provider":"apollo","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"],"authoritativeParams":["credentialType"]},"hostedApiKey":"none"},"apollo_contact_bulk_update":{"id":"apollo_contact_bulk_update","name":"Apollo Bulk Update Contacts","description":"Update up to 100 existing contacts at once in your Apollo database. Each contact must include an id field. Master key required.","version":"1.0.0","params":{"credentialType":{"type":"string","required":false,"visibility":"hidden","description":"Stored credential type supplied by credential resolution"},"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Apollo API key (master key required)"},"contact_ids":{"type":"array","required":false,"visibility":"user-or-llm","description":"Array of contact IDs to update. Must be paired with an object-form contact_attributes specifying the fields to apply uniformly to all listed contacts."},"contact_attributes":{"type":"json","required":false,"visibility":"user-or-llm","description":"Required. Either an array of per-contact updates (each with id) — used standalone — or a single object of attributes to apply to all contact_ids. Supported fields: owner_id, email, organization_name, title, first_name, last_name, account_id, present_raw_address, linkedin_url, typed_custom_fields"},"async":{"type":"boolean","required":false,"visibility":"user-only","description":"Force asynchronous processing. Automatically enabled for >100 contacts"}},"oauth":{"required":false,"provider":"apollo","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"],"authoritativeParams":["credentialType"]},"hostedApiKey":"none"},"apollo_contact_create":{"id":"apollo_contact_create","name":"Apollo Create Contact","description":"Create a new contact in your Apollo database","version":"1.0.0","params":{"credentialType":{"type":"string","required":false,"visibility":"hidden","description":"Stored credential type supplied by credential resolution"},"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Apollo API key"},"first_name":{"type":"string","required":true,"visibility":"user-or-llm","description":"First name of the contact"},"last_name":{"type":"string","required":true,"visibility":"user-or-llm","description":"Last name of the contact"},"email":{"type":"string","required":false,"visibility":"user-or-llm","description":"Email address of the contact"},"title":{"type":"string","required":false,"visibility":"user-or-llm","description":"Job title (e.g., \\"VP of Sales\\", \\"Software Engineer\\")"},"account_id":{"type":"string","required":false,"visibility":"user-or-llm","description":"Apollo account ID to associate with (e.g., \\"acc_abc123\\")"},"owner_id":{"type":"string","required":false,"visibility":"user-only","description":"User ID of the contact owner (accepted by Apollo but not officially documented for POST /contacts)"},"organization_name":{"type":"string","required":false,"visibility":"user-or-llm","description":"Name of the contact\'s employer (e.g., \\"Apollo\\")"},"website_url":{"type":"string","required":false,"visibility":"user-or-llm","description":"Corporate website URL (e.g., \\"https://www.apollo.io/\\")"},"label_names":{"type":"array","required":false,"visibility":"user-or-llm","description":"Lists/labels to add the contact to (e.g., [\\"Prospects\\"])"},"contact_stage_id":{"type":"string","required":false,"visibility":"user-or-llm","description":"Apollo ID for the contact stage"},"present_raw_address":{"type":"string","required":false,"visibility":"user-or-llm","description":"Personal location for the contact (e.g., \\"Atlanta, United States\\")"},"direct_phone":{"type":"string","required":false,"visibility":"user-or-llm","description":"Primary phone number"},"corporate_phone":{"type":"string","required":false,"visibility":"user-or-llm","description":"Work/office phone number"},"mobile_phone":{"type":"string","required":false,"visibility":"user-or-llm","description":"Mobile phone number"},"home_phone":{"type":"string","required":false,"visibility":"user-or-llm","description":"Home phone number"},"other_phone":{"type":"string","required":false,"visibility":"user-or-llm","description":"Alternative phone number"},"typed_custom_fields":{"type":"json","required":false,"visibility":"user-or-llm","description":"Custom field values keyed by custom field ID"},"run_dedupe":{"type":"boolean","required":false,"visibility":"user-only","description":"When true, Apollo deduplicates against existing contacts"}},"oauth":{"required":false,"provider":"apollo","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"],"authoritativeParams":["credentialType"]},"hostedApiKey":"none"},"apollo_contact_search":{"id":"apollo_contact_search","name":"Apollo Search Contacts","description":"Search your team\'s contacts in Apollo","version":"1.0.0","params":{"credentialType":{"type":"string","required":false,"visibility":"hidden","description":"Stored credential type supplied by credential resolution"},"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Apollo API key"},"q_keywords":{"type":"string","required":false,"visibility":"user-or-llm","description":"Keywords to search for"},"contact_stage_ids":{"type":"array","required":false,"visibility":"user-only","description":"Filter by contact stage IDs"},"contact_label_ids":{"type":"array","required":false,"visibility":"user-only","description":"Filter by Apollo label IDs (lists)"},"sort_by_field":{"type":"string","required":false,"visibility":"user-only","description":"Sort field: contact_last_activity_date, contact_email_last_opened_at, contact_email_last_clicked_at, contact_created_at, or contact_updated_at"},"sort_ascending":{"type":"boolean","required":false,"visibility":"user-only","description":"When true, sort ascending. Must be used together with sort_by_field"},"page":{"type":"number","required":false,"visibility":"user-or-llm","description":"Page number for pagination (e.g., 1, 2, 3)"},"per_page":{"type":"number","required":false,"visibility":"user-or-llm","description":"Results per page, max 100 (e.g., 25, 50, 100)"}},"oauth":{"required":false,"provider":"apollo","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"],"authoritativeParams":["credentialType"]},"hostedApiKey":"none"},"apollo_contact_update":{"id":"apollo_contact_update","name":"Apollo Update Contact","description":"Update an existing contact in your Apollo database","version":"1.0.0","params":{"credentialType":{"type":"string","required":false,"visibility":"hidden","description":"Stored credential type supplied by credential resolution"},"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Apollo API key"},"contact_id":{"type":"string","required":true,"visibility":"user-or-llm","description":"ID of the contact to update (e.g., \\"con_abc123\\")"},"first_name":{"type":"string","required":false,"visibility":"user-or-llm","description":"First name of the contact"},"last_name":{"type":"string","required":false,"visibility":"user-or-llm","description":"Last name of the contact"},"email":{"type":"string","required":false,"visibility":"user-or-llm","description":"Email address"},"title":{"type":"string","required":false,"visibility":"user-or-llm","description":"Job title (e.g., \\"VP of Sales\\", \\"Software Engineer\\")"},"account_id":{"type":"string","required":false,"visibility":"user-or-llm","description":"Apollo account ID (e.g., \\"acc_abc123\\")"},"owner_id":{"type":"string","required":false,"visibility":"user-only","description":"User ID of the contact owner (accepted by Apollo but not officially documented for PATCH /contacts/{id})"},"organization_name":{"type":"string","required":false,"visibility":"user-or-llm","description":"Name of the contact\'s employer (e.g., \\"Apollo\\")"},"website_url":{"type":"string","required":false,"visibility":"user-or-llm","description":"Corporate website URL (e.g., \\"https://www.apollo.io/\\")"},"label_names":{"type":"array","required":false,"visibility":"user-or-llm","description":"Lists/labels to add the contact to (e.g., [\\"Prospects\\"])"},"contact_stage_id":{"type":"string","required":false,"visibility":"user-or-llm","description":"Apollo ID for the contact stage"},"present_raw_address":{"type":"string","required":false,"visibility":"user-or-llm","description":"Personal location for the contact (e.g., \\"Atlanta, United States\\")"},"direct_phone":{"type":"string","required":false,"visibility":"user-or-llm","description":"Primary phone number"},"corporate_phone":{"type":"string","required":false,"visibility":"user-or-llm","description":"Work/office phone number"},"mobile_phone":{"type":"string","required":false,"visibility":"user-or-llm","description":"Mobile phone number"},"home_phone":{"type":"string","required":false,"visibility":"user-or-llm","description":"Home phone number"},"other_phone":{"type":"string","required":false,"visibility":"user-or-llm","description":"Alternative phone number"},"typed_custom_fields":{"type":"json","required":false,"visibility":"user-or-llm","description":"Custom field values keyed by custom field ID"}},"oauth":{"required":false,"provider":"apollo","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"],"authoritativeParams":["credentialType"]},"hostedApiKey":"none"},"apollo_email_accounts":{"id":"apollo_email_accounts","name":"Apollo Get Email Accounts","description":"Get list of team\'s linked email accounts in Apollo","version":"1.0.0","params":{"credentialType":{"type":"string","required":false,"visibility":"hidden","description":"Stored credential type supplied by credential resolution"},"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Apollo API key (master key required)"}},"oauth":{"required":false,"provider":"apollo","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"],"authoritativeParams":["credentialType"]},"hostedApiKey":"none"},"apollo_opportunity_create":{"id":"apollo_opportunity_create","name":"Apollo Create Opportunity","description":"Create a new deal for an account in your Apollo database (master key required)","version":"1.0.0","params":{"credentialType":{"type":"string","required":false,"visibility":"hidden","description":"Stored credential type supplied by credential resolution"},"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Apollo API key (master key required)"},"name":{"type":"string","required":true,"visibility":"user-or-llm","description":"Name of the opportunity/deal (e.g., \\"Enterprise License - Q1\\")"},"account_id":{"type":"string","required":false,"visibility":"user-or-llm","description":"ID of the account this opportunity belongs to (e.g., \\"acc_abc123\\")"},"amount":{"type":"string","required":false,"visibility":"user-or-llm","description":"Monetary value as a plain number string with no commas or currency symbols"},"opportunity_stage_id":{"type":"string","required":false,"visibility":"user-only","description":"ID of the opportunity stage"},"owner_id":{"type":"string","required":false,"visibility":"user-only","description":"User ID of the opportunity owner"},"closed_date":{"type":"string","required":false,"visibility":"user-or-llm","description":"Expected close date in YYYY-MM-DD format"},"typed_custom_fields":{"type":"json","required":false,"visibility":"user-only","description":"Custom field values as { custom_field_id: value } map"}},"oauth":{"required":false,"provider":"apollo","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"],"authoritativeParams":["credentialType"]},"hostedApiKey":"none"},"apollo_opportunity_get":{"id":"apollo_opportunity_get","name":"Apollo Get Opportunity","description":"Retrieve complete details of a specific deal/opportunity by ID","version":"1.0.0","params":{"credentialType":{"type":"string","required":false,"visibility":"hidden","description":"Stored credential type supplied by credential resolution"},"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Apollo API key"},"opportunity_id":{"type":"string","required":true,"visibility":"user-or-llm","description":"ID of the opportunity to retrieve (e.g., \\"opp_abc123\\")"}},"oauth":{"required":false,"provider":"apollo","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"],"authoritativeParams":["credentialType"]},"hostedApiKey":"none"},"apollo_opportunity_search":{"id":"apollo_opportunity_search","name":"Apollo Search Opportunities","description":"Search and list all deals/opportunities in your team\'s Apollo account","version":"1.0.0","params":{"credentialType":{"type":"string","required":false,"visibility":"hidden","description":"Stored credential type supplied by credential resolution"},"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Apollo API key"},"sort_by_field":{"type":"string","required":false,"visibility":"user-or-llm","description":"Sort field: \\"amount\\", \\"is_closed\\", or \\"is_won\\""},"page":{"type":"number","required":false,"visibility":"user-or-llm","description":"Page number for pagination (e.g., 1, 2, 3)"},"per_page":{"type":"number","required":false,"visibility":"user-or-llm","description":"Results per page, max 100 (e.g., 25, 50, 100)"}},"oauth":{"required":false,"provider":"apollo","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"],"authoritativeParams":["credentialType"]},"hostedApiKey":"none"},"apollo_opportunity_update":{"id":"apollo_opportunity_update","name":"Apollo Update Opportunity","description":"Update an existing deal/opportunity in your Apollo database","version":"1.0.0","params":{"credentialType":{"type":"string","required":false,"visibility":"hidden","description":"Stored credential type supplied by credential resolution"},"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Apollo API key"},"opportunity_id":{"type":"string","required":true,"visibility":"user-or-llm","description":"ID of the opportunity to update (e.g., \\"opp_abc123\\")"},"name":{"type":"string","required":false,"visibility":"user-or-llm","description":"Name of the opportunity/deal (e.g., \\"Enterprise License - Q1\\")"},"amount":{"type":"string","required":false,"visibility":"user-or-llm","description":"Monetary value as a plain number string with no commas or currency symbols"},"opportunity_stage_id":{"type":"string","required":false,"visibility":"user-only","description":"ID of the opportunity stage"},"owner_id":{"type":"string","required":false,"visibility":"user-only","description":"User ID of the opportunity owner"},"closed_date":{"type":"string","required":false,"visibility":"user-or-llm","description":"Expected close date in YYYY-MM-DD format"},"typed_custom_fields":{"type":"json","required":false,"visibility":"user-only","description":"Custom field values as { custom_field_id: value } map"}},"oauth":{"required":false,"provider":"apollo","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"],"authoritativeParams":["credentialType"]},"hostedApiKey":"none"},"apollo_organization_bulk_enrich":{"id":"apollo_organization_bulk_enrich","name":"Apollo Bulk Organization Enrichment","description":"Enrich data for up to 10 organizations at once using Apollo","version":"1.0.0","params":{"credentialType":{"type":"string","required":false,"visibility":"hidden","description":"Stored credential type supplied by credential resolution"},"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Apollo API key"},"domains":{"type":"array","required":true,"visibility":"user-or-llm","description":"Array of company domains to enrich (max 10, no www. or @, e.g., [\\"apollo.io\\", \\"stripe.com\\"])"}},"oauth":{"required":false,"provider":"apollo","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"],"authoritativeParams":["credentialType"]},"hostedApiKey":"none"},"apollo_organization_enrich":{"id":"apollo_organization_enrich","name":"Apollo Organization Enrichment","description":"Enrich data for a single organization using Apollo","version":"1.0.0","params":{"credentialType":{"type":"string","required":false,"visibility":"hidden","description":"Stored credential type supplied by credential resolution"},"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Apollo API key"},"domain":{"type":"string","required":true,"visibility":"user-or-llm","description":"Company domain (e.g., \\"apollo.io\\", \\"acme.com\\")"}},"oauth":{"required":false,"provider":"apollo","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"],"authoritativeParams":["credentialType"]},"hostedApiKey":"none"},"apollo_organization_search":{"id":"apollo_organization_search","name":"Apollo Organization Search","description":"Search Apollo\'s database for companies using filters","version":"1.0.0","params":{"credentialType":{"type":"string","required":false,"visibility":"hidden","description":"Stored credential type supplied by credential resolution"},"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Apollo API key"},"organization_locations":{"type":"array","required":false,"visibility":"user-or-llm","description":"Company HQ locations (cities, US states, or countries)"},"organization_not_locations":{"type":"array","required":false,"visibility":"user-or-llm","description":"Exclude companies whose HQ is in these locations"},"organization_num_employees_ranges":{"type":"array","required":false,"visibility":"user-or-llm","description":"Employee count ranges as \\"min,max\\" strings (e.g., [\\"1,10\\", \\"250,500\\", \\"10000,20000\\"])"},"q_organization_keyword_tags":{"type":"array","required":false,"visibility":"user-or-llm","description":"Industry or keyword tags"},"q_organization_name":{"type":"string","required":false,"visibility":"user-or-llm","description":"Organization name to search for (e.g., \\"Acme\\", \\"TechCorp\\")"},"organization_ids":{"type":"array","required":false,"visibility":"user-or-llm","description":"Apollo organization IDs to include (e.g., [\\"5e66b6381e05b4008c8331b8\\"])"},"q_organization_domains_list":{"type":"array","required":false,"visibility":"user-or-llm","description":"Domain names to filter by (no www. or @, up to 1,000)"},"page":{"type":"number","required":false,"visibility":"user-or-llm","description":"Page number for pagination (e.g., 1, 2, 3)"},"per_page":{"type":"number","required":false,"visibility":"user-or-llm","description":"Results per page, max 100 (e.g., 25, 50, 100)"}},"oauth":{"required":false,"provider":"apollo","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"],"authoritativeParams":["credentialType"]},"hostedApiKey":"none"},"apollo_people_bulk_enrich":{"id":"apollo_people_bulk_enrich","name":"Apollo Bulk People Enrichment","description":"Enrich data for up to 10 people at once using Apollo","version":"1.0.0","params":{"credentialType":{"type":"string","required":false,"visibility":"hidden","description":"Stored credential type supplied by credential resolution"},"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Apollo API key"},"people":{"type":"array","required":true,"visibility":"user-or-llm","description":"Array of people to enrich (max 10)"},"reveal_personal_emails":{"type":"boolean","required":false,"visibility":"user-only","description":"Reveal personal email addresses (uses credits)"},"reveal_phone_number":{"type":"boolean","required":false,"visibility":"user-only","description":"Reveal phone numbers (uses credits, requires webhook_url)"},"webhook_url":{"type":"string","required":false,"visibility":"user-only","description":"Webhook URL for async phone number delivery (required when reveal_phone_number is true)"}},"oauth":{"required":false,"provider":"apollo","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"],"authoritativeParams":["credentialType"]},"hostedApiKey":"none"},"apollo_people_enrich":{"id":"apollo_people_enrich","name":"Apollo People Enrichment","description":"Enrich data for a single person using Apollo","version":"1.0.0","params":{"credentialType":{"type":"string","required":false,"visibility":"hidden","description":"Stored credential type supplied by credential resolution"},"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Apollo API key"},"first_name":{"type":"string","required":false,"visibility":"user-or-llm","description":"First name of the person"},"last_name":{"type":"string","required":false,"visibility":"user-or-llm","description":"Last name of the person"},"name":{"type":"string","required":false,"visibility":"user-or-llm","description":"Full name of the person (alternative to first_name/last_name)"},"id":{"type":"string","required":false,"visibility":"user-or-llm","description":"Apollo ID for the person"},"hashed_email":{"type":"string","required":false,"visibility":"user-or-llm","description":"MD5 or SHA-256 hashed email"},"email":{"type":"string","required":false,"visibility":"user-or-llm","description":"Email address of the person"},"organization_name":{"type":"string","required":false,"visibility":"user-or-llm","description":"Company name where the person works"},"domain":{"type":"string","required":false,"visibility":"user-or-llm","description":"Company domain (e.g., \\"apollo.io\\", \\"acme.com\\")"},"linkedin_url":{"type":"string","required":false,"visibility":"user-or-llm","description":"LinkedIn profile URL"},"reveal_personal_emails":{"type":"boolean","required":false,"visibility":"user-only","description":"Reveal personal email addresses (uses credits)"},"reveal_phone_number":{"type":"boolean","required":false,"visibility":"user-only","description":"Reveal phone numbers (uses credits, requires webhook_url)"},"webhook_url":{"type":"string","required":false,"visibility":"user-only","description":"Webhook URL for async phone number delivery (required when reveal_phone_number is true)"}},"oauth":{"required":false,"provider":"apollo","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"],"authoritativeParams":["credentialType"]},"hostedApiKey":"none"},"apollo_people_search":{"id":"apollo_people_search","name":"Apollo People Search","description":"Search Apollo\'s database for people using demographic filters","version":"1.0.0","params":{"credentialType":{"type":"string","required":false,"visibility":"hidden","description":"Stored credential type supplied by credential resolution"},"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Apollo API key"},"person_titles":{"type":"array","required":false,"visibility":"user-or-llm","description":"Job titles to search for (e.g., [\\"CEO\\", \\"VP of Sales\\"])"},"include_similar_titles":{"type":"boolean","required":false,"visibility":"user-or-llm","description":"Whether to return people with job titles similar to person_titles"},"person_locations":{"type":"array","required":false,"visibility":"user-or-llm","description":"Locations to search in (e.g., [\\"San Francisco, CA\\", \\"New York, NY\\"])"},"person_seniorities":{"type":"array","required":false,"visibility":"user-or-llm","description":"Seniority levels (one of: owner, founder, c_suite, partner, vp, head, director, manager, senior, entry, intern)"},"organization_ids":{"type":"array","required":false,"visibility":"user-or-llm","description":"Apollo organization IDs to filter by (e.g., [\\"5e66b6381e05b4008c8331b8\\"])"},"organization_names":{"type":"array","required":false,"visibility":"user-or-llm","description":"Company names to search within (legacy filter)"},"organization_locations":{"type":"array","required":false,"visibility":"user-or-llm","description":"Headquarters locations of the people\'s current employer (e.g., [\'texas\', \'tokyo\', \'spain\'])"},"q_organization_domains_list":{"type":"array","required":false,"visibility":"user-or-llm","description":"Employer domain names (e.g., [\\"apollo.io\\", \\"microsoft.com\\"]) — up to 1,000, no www. or @"},"organization_num_employees_ranges":{"type":"array","required":false,"visibility":"user-or-llm","description":"Employee count ranges for the person\'s current employer. Each entry is \\"min,max\\" (e.g., [\\"1,10\\", \\"250,500\\", \\"10000,20000\\"])"},"contact_email_status":{"type":"array","required":false,"visibility":"user-or-llm","description":"Email statuses to filter by: \\"verified\\", \\"unverified\\", \\"likely to engage\\", \\"unavailable\\""},"q_keywords":{"type":"string","required":false,"visibility":"user-or-llm","description":"Keywords to search for"},"page":{"type":"number","required":false,"visibility":"user-or-llm","description":"Page number for pagination, default 1 (e.g., 1, 2, 3)"},"per_page":{"type":"number","required":false,"visibility":"user-or-llm","description":"Results per page, default 25, max 100 (e.g., 25, 50, 100)"}},"oauth":{"required":false,"provider":"apollo","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"],"authoritativeParams":["credentialType"]},"hostedApiKey":"none"},"apollo_sequence_add_contacts":{"id":"apollo_sequence_add_contacts","name":"Apollo Add Contacts to Sequence","description":"Add contacts to an Apollo sequence","version":"1.0.0","params":{"credentialType":{"type":"string","required":false,"visibility":"hidden","description":"Stored credential type supplied by credential resolution"},"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Apollo API key (master key required)"},"sequence_id":{"type":"string","required":true,"visibility":"user-or-llm","description":"ID of the sequence to add contacts to (e.g., \\"seq_abc123\\")"},"contact_ids":{"type":"array","required":false,"visibility":"user-or-llm","description":"Array of contact IDs to add to the sequence (e.g., [\\"con_abc123\\", \\"con_def456\\"]). Either contact_ids or label_names must be provided."},"label_names":{"type":"array","required":false,"visibility":"user-or-llm","description":"Array of label names to identify contacts to add to the sequence. Either contact_ids or label_names must be provided."},"send_email_from_email_account_id":{"type":"string","required":true,"visibility":"user-or-llm","description":"ID of the email account to send from. Use the Get Email Accounts operation to look this up."},"send_email_from_email_address":{"type":"string","required":false,"visibility":"user-only","description":"Specific email address to send from within the email account."},"sequence_no_email":{"type":"boolean","required":false,"visibility":"user-only","description":"Add contacts even if they have no email address"},"sequence_unverified_email":{"type":"boolean","required":false,"visibility":"user-only","description":"Add contacts with unverified email addresses"},"sequence_job_change":{"type":"boolean","required":false,"visibility":"user-only","description":"Add contacts who recently changed jobs"},"sequence_active_in_other_campaigns":{"type":"boolean","required":false,"visibility":"user-only","description":"Add contacts active in other campaigns"},"sequence_finished_in_other_campaigns":{"type":"boolean","required":false,"visibility":"user-only","description":"Add contacts who finished other campaigns"},"sequence_same_company_in_same_campaign":{"type":"boolean","required":false,"visibility":"user-only","description":"Add contacts even if others from the same company are in the sequence"},"contacts_without_ownership_permission":{"type":"boolean","required":false,"visibility":"user-only","description":"Add contacts without ownership permission"},"add_if_in_queue":{"type":"boolean","required":false,"visibility":"user-only","description":"Add contacts even if they are in the queue"},"contact_verification_skipped":{"type":"boolean","required":false,"visibility":"user-only","description":"Skip contact verification when adding"},"user_id":{"type":"string","required":false,"visibility":"user-only","description":"ID of the user performing the action"},"status":{"type":"string","required":false,"visibility":"user-only","description":"Initial status for added contacts: \\"active\\" or \\"paused\\""},"auto_unpause_at":{"type":"string","required":false,"visibility":"user-only","description":"ISO 8601 datetime to automatically unpause contacts"}},"oauth":{"required":false,"provider":"apollo","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"],"authoritativeParams":["credentialType"]},"hostedApiKey":"none"},"apollo_sequence_search":{"id":"apollo_sequence_search","name":"Apollo Search Sequences","description":"Search for sequences/campaigns in your team\'s Apollo account (master key required)","version":"1.0.0","params":{"credentialType":{"type":"string","required":false,"visibility":"hidden","description":"Stored credential type supplied by credential resolution"},"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Apollo API key (master key required)"},"q_name":{"type":"string","required":false,"visibility":"user-or-llm","description":"Search sequences by name (e.g., \\"Outbound Q1\\", \\"Follow-up\\")"},"page":{"type":"number","required":false,"visibility":"user-or-llm","description":"Page number for pagination (e.g., 1, 2, 3)"},"per_page":{"type":"number","required":false,"visibility":"user-or-llm","description":"Results per page, max 100 (e.g., 25, 50, 100)"}},"oauth":{"required":false,"provider":"apollo","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"],"authoritativeParams":["credentialType"]},"hostedApiKey":"none"},"apollo_task_create":{"id":"apollo_task_create","name":"Apollo Create Task","description":"Create one or more tasks in Apollo (one task per contact_id, master key required)","version":"1.0.0","params":{"credentialType":{"type":"string","required":false,"visibility":"hidden","description":"Stored credential type supplied by credential resolution"},"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Apollo API key (master key required)"},"user_id":{"type":"string","required":true,"visibility":"user-or-llm","description":"ID of the Apollo user the task is assigned to"},"contact_ids":{"type":"array","required":true,"visibility":"user-or-llm","description":"Array of contact IDs. One task is created per contact."},"priority":{"type":"string","required":false,"visibility":"user-or-llm","description":"Task priority: \\"high\\", \\"medium\\", or \\"low\\" (defaults to \\"medium\\")"},"due_at":{"type":"string","required":true,"visibility":"user-or-llm","description":"Due date/time in ISO 8601 format (e.g., \\"2024-12-31T23:59:59Z\\")"},"type":{"type":"string","required":true,"visibility":"user-or-llm","description":"Task type: \\"call\\", \\"outreach_manual_email\\", \\"linkedin_step_connect\\", \\"linkedin_step_message\\", \\"linkedin_step_view_profile\\", \\"linkedin_step_interact_post\\", or \\"action_item\\""},"status":{"type":"string","required":true,"visibility":"user-or-llm","description":"Task status: \\"scheduled\\", \\"completed\\", or \\"skipped\\""},"note":{"type":"string","required":false,"visibility":"user-or-llm","description":"Free-form note providing context for the task"}},"oauth":{"required":false,"provider":"apollo","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"],"authoritativeParams":["credentialType"]},"hostedApiKey":"none"},"apollo_task_search":{"id":"apollo_task_search","name":"Apollo Search Tasks","description":"Search for tasks in Apollo","version":"1.0.0","params":{"credentialType":{"type":"string","required":false,"visibility":"hidden","description":"Stored credential type supplied by credential resolution"},"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Apollo API key (master key required)"},"sort_by_field":{"type":"string","required":false,"visibility":"user-or-llm","description":"Sort field: \\"task_due_at\\" or \\"task_priority\\""},"open_factor_names":{"type":"array","required":false,"visibility":"user-or-llm","description":"Filter by status. Common values: [\\"task_types\\"] for open tasks, [\\"task_completed_at\\"] for completed tasks."},"page":{"type":"number","required":false,"visibility":"user-or-llm","description":"Page number for pagination (e.g., 1, 2, 3)"},"per_page":{"type":"number","required":false,"visibility":"user-or-llm","description":"Results per page, max 100 (e.g., 25, 50, 100)"}},"oauth":{"required":false,"provider":"apollo","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"],"authoritativeParams":["credentialType"]},"hostedApiKey":"none"},"appconfig_create_application":{"id":"appconfig_create_application","name":"AppConfig Create Application","description":"Create an application in AWS AppConfig","version":"1.0","params":{"region":{"type":"string","required":true,"visibility":"user-only","description":"AWS region (e.g., us-east-1)"},"accessKeyId":{"type":"string","required":true,"visibility":"user-only","description":"AWS access key ID"},"secretAccessKey":{"type":"string","required":true,"visibility":"user-only","description":"AWS secret access key"},"name":{"type":"string","required":true,"visibility":"user-or-llm","description":"Name of the application to create"},"description":{"type":"string","required":false,"visibility":"user-or-llm","description":"Description of the application"}},"oauth":{"required":false,"provider":"aws","credentialKind":"service-account","credentialSuppliedParams":["accessKeyId","secretAccessKey","awsAccessKeyId","awsSecretAccessKey"]},"hostedApiKey":"none"},"appconfig_create_configuration_profile":{"id":"appconfig_create_configuration_profile","name":"AppConfig Create Configuration Profile","description":"Create a configuration profile in an AWS AppConfig application","version":"1.0","params":{"region":{"type":"string","required":true,"visibility":"user-only","description":"AWS region (e.g., us-east-1)"},"accessKeyId":{"type":"string","required":true,"visibility":"user-only","description":"AWS access key ID"},"secretAccessKey":{"type":"string","required":true,"visibility":"user-only","description":"AWS secret access key"},"applicationId":{"type":"string","required":true,"visibility":"user-or-llm","description":"The application ID to create the configuration profile in"},"name":{"type":"string","required":true,"visibility":"user-or-llm","description":"Name of the configuration profile"},"locationUri":{"type":"string","required":true,"visibility":"user-or-llm","description":"Where the configuration is stored. Use \\"hosted\\" for AppConfig-hosted configurations, or an SSM/S3 URI"},"description":{"type":"string","required":false,"visibility":"user-or-llm","description":"Description of the configuration profile"},"retrievalRoleArn":{"type":"string","required":false,"visibility":"user-or-llm","description":"ARN of an IAM role to retrieve the configuration (required for non-hosted URIs)"},"type":{"type":"string","required":false,"visibility":"user-or-llm","description":"Profile type: AWS.Freeform (default) or AWS.AppConfig.FeatureFlags"}},"oauth":{"required":false,"provider":"aws","credentialKind":"service-account","credentialSuppliedParams":["accessKeyId","secretAccessKey","awsAccessKeyId","awsSecretAccessKey"]},"hostedApiKey":"none"},"appconfig_create_environment":{"id":"appconfig_create_environment","name":"AppConfig Create Environment","description":"Create an environment for an AWS AppConfig application","version":"1.0","params":{"region":{"type":"string","required":true,"visibility":"user-only","description":"AWS region (e.g., us-east-1)"},"accessKeyId":{"type":"string","required":true,"visibility":"user-only","description":"AWS access key ID"},"secretAccessKey":{"type":"string","required":true,"visibility":"user-only","description":"AWS secret access key"},"applicationId":{"type":"string","required":true,"visibility":"user-or-llm","description":"The application ID to create the environment in"},"name":{"type":"string","required":true,"visibility":"user-or-llm","description":"Name of the environment to create"},"description":{"type":"string","required":false,"visibility":"user-or-llm","description":"Description of the environment"}},"oauth":{"required":false,"provider":"aws","credentialKind":"service-account","credentialSuppliedParams":["accessKeyId","secretAccessKey","awsAccessKeyId","awsSecretAccessKey"]},"hostedApiKey":"none"},"appconfig_create_hosted_configuration_version":{"id":"appconfig_create_hosted_configuration_version","name":"AppConfig Create Hosted Configuration Version","description":"Create a new hosted configuration version for an AppConfig configuration profile","version":"1.0","params":{"region":{"type":"string","required":true,"visibility":"user-only","description":"AWS region (e.g., us-east-1)"},"accessKeyId":{"type":"string","required":true,"visibility":"user-only","description":"AWS access key ID"},"secretAccessKey":{"type":"string","required":true,"visibility":"user-only","description":"AWS secret access key"},"applicationId":{"type":"string","required":true,"visibility":"user-or-llm","description":"The application ID that owns the configuration profile"},"configurationProfileId":{"type":"string","required":true,"visibility":"user-or-llm","description":"The configuration profile ID to add the version to"},"content":{"type":"string","required":true,"visibility":"user-or-llm","description":"The configuration content (e.g., a JSON or YAML document)"},"contentType":{"type":"string","required":true,"visibility":"user-or-llm","description":"Content type of the configuration (e.g., application/json, text/plain)"},"description":{"type":"string","required":false,"visibility":"user-or-llm","description":"Description of the configuration version"},"latestVersionNumber":{"type":"number","required":false,"visibility":"user-or-llm","description":"The version number of the latest version, used for optimistic concurrency"},"versionLabel":{"type":"string","required":false,"visibility":"user-or-llm","description":"A user-defined label for the configuration version"}},"oauth":{"required":false,"provider":"aws","credentialKind":"service-account","credentialSuppliedParams":["accessKeyId","secretAccessKey","awsAccessKeyId","awsSecretAccessKey"]},"hostedApiKey":"none"},"appconfig_delete_application":{"id":"appconfig_delete_application","name":"AppConfig Delete Application","description":"Delete an AWS AppConfig application","version":"1.0","params":{"region":{"type":"string","required":true,"visibility":"user-only","description":"AWS region (e.g., us-east-1)"},"accessKeyId":{"type":"string","required":true,"visibility":"user-only","description":"AWS access key ID"},"secretAccessKey":{"type":"string","required":true,"visibility":"user-only","description":"AWS secret access key"},"applicationId":{"type":"string","required":true,"visibility":"user-or-llm","description":"The application ID to delete"}},"oauth":{"required":false,"provider":"aws","credentialKind":"service-account","credentialSuppliedParams":["accessKeyId","secretAccessKey","awsAccessKeyId","awsSecretAccessKey"]},"hostedApiKey":"none"},"appconfig_delete_configuration_profile":{"id":"appconfig_delete_configuration_profile","name":"AppConfig Delete Configuration Profile","description":"Delete an AWS AppConfig configuration profile","version":"1.0","params":{"region":{"type":"string","required":true,"visibility":"user-only","description":"AWS region (e.g., us-east-1)"},"accessKeyId":{"type":"string","required":true,"visibility":"user-only","description":"AWS access key ID"},"secretAccessKey":{"type":"string","required":true,"visibility":"user-only","description":"AWS secret access key"},"applicationId":{"type":"string","required":true,"visibility":"user-or-llm","description":"The application ID that owns the configuration profile"},"configurationProfileId":{"type":"string","required":true,"visibility":"user-or-llm","description":"The configuration profile ID to delete"}},"oauth":{"required":false,"provider":"aws","credentialKind":"service-account","credentialSuppliedParams":["accessKeyId","secretAccessKey","awsAccessKeyId","awsSecretAccessKey"]},"hostedApiKey":"none"},"appconfig_delete_environment":{"id":"appconfig_delete_environment","name":"AppConfig Delete Environment","description":"Delete an AWS AppConfig environment","version":"1.0","params":{"region":{"type":"string","required":true,"visibility":"user-only","description":"AWS region (e.g., us-east-1)"},"accessKeyId":{"type":"string","required":true,"visibility":"user-only","description":"AWS access key ID"},"secretAccessKey":{"type":"string","required":true,"visibility":"user-only","description":"AWS secret access key"},"applicationId":{"type":"string","required":true,"visibility":"user-or-llm","description":"The application ID that owns the environment"},"environmentId":{"type":"string","required":true,"visibility":"user-or-llm","description":"The environment ID to delete"}},"oauth":{"required":false,"provider":"aws","credentialKind":"service-account","credentialSuppliedParams":["accessKeyId","secretAccessKey","awsAccessKeyId","awsSecretAccessKey"]},"hostedApiKey":"none"},"appconfig_delete_hosted_configuration_version":{"id":"appconfig_delete_hosted_configuration_version","name":"AppConfig Delete Hosted Configuration Version","description":"Delete a specific hosted configuration version from an AppConfig profile","version":"1.0","params":{"region":{"type":"string","required":true,"visibility":"user-only","description":"AWS region (e.g., us-east-1)"},"accessKeyId":{"type":"string","required":true,"visibility":"user-only","description":"AWS access key ID"},"secretAccessKey":{"type":"string","required":true,"visibility":"user-only","description":"AWS secret access key"},"applicationId":{"type":"string","required":true,"visibility":"user-or-llm","description":"The application ID that owns the configuration profile"},"configurationProfileId":{"type":"string","required":true,"visibility":"user-or-llm","description":"The configuration profile ID that owns the version"},"versionNumber":{"type":"number","required":true,"visibility":"user-or-llm","description":"The version number to delete"}},"oauth":{"required":false,"provider":"aws","credentialKind":"service-account","credentialSuppliedParams":["accessKeyId","secretAccessKey","awsAccessKeyId","awsSecretAccessKey"]},"hostedApiKey":"none"},"appconfig_get_application":{"id":"appconfig_get_application","name":"AppConfig Get Application","description":"Get details about a single AWS AppConfig application","version":"1.0","params":{"region":{"type":"string","required":true,"visibility":"user-only","description":"AWS region (e.g., us-east-1)"},"accessKeyId":{"type":"string","required":true,"visibility":"user-only","description":"AWS access key ID"},"secretAccessKey":{"type":"string","required":true,"visibility":"user-only","description":"AWS secret access key"},"applicationId":{"type":"string","required":true,"visibility":"user-or-llm","description":"The application ID to retrieve"}},"oauth":{"required":false,"provider":"aws","credentialKind":"service-account","credentialSuppliedParams":["accessKeyId","secretAccessKey","awsAccessKeyId","awsSecretAccessKey"]},"hostedApiKey":"none"},"appconfig_get_configuration":{"id":"appconfig_get_configuration","name":"AppConfig Get Configuration","description":"Retrieve the latest deployed configuration for an AppConfig application, environment, and profile","version":"1.0","params":{"region":{"type":"string","required":true,"visibility":"user-only","description":"AWS region (e.g., us-east-1)"},"accessKeyId":{"type":"string","required":true,"visibility":"user-only","description":"AWS access key ID"},"secretAccessKey":{"type":"string","required":true,"visibility":"user-only","description":"AWS secret access key"},"applicationId":{"type":"string","required":true,"visibility":"user-or-llm","description":"The application ID or name to retrieve configuration for"},"environmentId":{"type":"string","required":true,"visibility":"user-or-llm","description":"The environment ID or name to retrieve configuration for"},"configurationProfileId":{"type":"string","required":true,"visibility":"user-or-llm","description":"The configuration profile ID or name to retrieve"}},"oauth":{"required":false,"provider":"aws","credentialKind":"service-account","credentialSuppliedParams":["accessKeyId","secretAccessKey","awsAccessKeyId","awsSecretAccessKey"]},"hostedApiKey":"none"},"appconfig_get_configuration_profile":{"id":"appconfig_get_configuration_profile","name":"AppConfig Get Configuration Profile","description":"Get details about a single AWS AppConfig configuration profile","version":"1.0","params":{"region":{"type":"string","required":true,"visibility":"user-only","description":"AWS region (e.g., us-east-1)"},"accessKeyId":{"type":"string","required":true,"visibility":"user-only","description":"AWS access key ID"},"secretAccessKey":{"type":"string","required":true,"visibility":"user-only","description":"AWS secret access key"},"applicationId":{"type":"string","required":true,"visibility":"user-or-llm","description":"The application ID that owns the configuration profile"},"configurationProfileId":{"type":"string","required":true,"visibility":"user-or-llm","description":"The configuration profile ID to retrieve"}},"oauth":{"required":false,"provider":"aws","credentialKind":"service-account","credentialSuppliedParams":["accessKeyId","secretAccessKey","awsAccessKeyId","awsSecretAccessKey"]},"hostedApiKey":"none"},"appconfig_get_deployment":{"id":"appconfig_get_deployment","name":"AppConfig Get Deployment","description":"Get details about a specific AWS AppConfig deployment","version":"1.0","params":{"region":{"type":"string","required":true,"visibility":"user-only","description":"AWS region (e.g., us-east-1)"},"accessKeyId":{"type":"string","required":true,"visibility":"user-only","description":"AWS access key ID"},"secretAccessKey":{"type":"string","required":true,"visibility":"user-only","description":"AWS secret access key"},"applicationId":{"type":"string","required":true,"visibility":"user-or-llm","description":"The application ID of the deployment"},"environmentId":{"type":"string","required":true,"visibility":"user-or-llm","description":"The environment ID of the deployment"},"deploymentNumber":{"type":"number","required":true,"visibility":"user-or-llm","description":"The sequence number of the deployment"}},"oauth":{"required":false,"provider":"aws","credentialKind":"service-account","credentialSuppliedParams":["accessKeyId","secretAccessKey","awsAccessKeyId","awsSecretAccessKey"]},"hostedApiKey":"none"},"appconfig_get_environment":{"id":"appconfig_get_environment","name":"AppConfig Get Environment","description":"Get details about a single AWS AppConfig environment","version":"1.0","params":{"region":{"type":"string","required":true,"visibility":"user-only","description":"AWS region (e.g., us-east-1)"},"accessKeyId":{"type":"string","required":true,"visibility":"user-only","description":"AWS access key ID"},"secretAccessKey":{"type":"string","required":true,"visibility":"user-only","description":"AWS secret access key"},"applicationId":{"type":"string","required":true,"visibility":"user-or-llm","description":"The application ID that owns the environment"},"environmentId":{"type":"string","required":true,"visibility":"user-or-llm","description":"The environment ID to retrieve"}},"oauth":{"required":false,"provider":"aws","credentialKind":"service-account","credentialSuppliedParams":["accessKeyId","secretAccessKey","awsAccessKeyId","awsSecretAccessKey"]},"hostedApiKey":"none"},"appconfig_get_hosted_configuration_version":{"id":"appconfig_get_hosted_configuration_version","name":"AppConfig Get Hosted Configuration Version","description":"Retrieve a specific hosted configuration version from an AppConfig profile","version":"1.0","params":{"region":{"type":"string","required":true,"visibility":"user-only","description":"AWS region (e.g., us-east-1)"},"accessKeyId":{"type":"string","required":true,"visibility":"user-only","description":"AWS access key ID"},"secretAccessKey":{"type":"string","required":true,"visibility":"user-only","description":"AWS secret access key"},"applicationId":{"type":"string","required":true,"visibility":"user-or-llm","description":"The application ID that owns the configuration profile"},"configurationProfileId":{"type":"string","required":true,"visibility":"user-or-llm","description":"The configuration profile ID to read the version from"},"versionNumber":{"type":"number","required":true,"visibility":"user-or-llm","description":"The version number to retrieve"}},"oauth":{"required":false,"provider":"aws","credentialKind":"service-account","credentialSuppliedParams":["accessKeyId","secretAccessKey","awsAccessKeyId","awsSecretAccessKey"]},"hostedApiKey":"none"},"appconfig_list_applications":{"id":"appconfig_list_applications","name":"AppConfig List Applications","description":"List applications in AWS AppConfig","version":"1.0","params":{"region":{"type":"string","required":true,"visibility":"user-only","description":"AWS region (e.g., us-east-1)"},"accessKeyId":{"type":"string","required":true,"visibility":"user-only","description":"AWS access key ID"},"secretAccessKey":{"type":"string","required":true,"visibility":"user-only","description":"AWS secret access key"},"maxResults":{"type":"number","required":false,"visibility":"user-or-llm","description":"Maximum number of applications to return (1-50)"},"nextToken":{"type":"string","required":false,"visibility":"user-or-llm","description":"Pagination token from a previous response"}},"oauth":{"required":false,"provider":"aws","credentialKind":"service-account","credentialSuppliedParams":["accessKeyId","secretAccessKey","awsAccessKeyId","awsSecretAccessKey"]},"hostedApiKey":"none"},"appconfig_list_configuration_profiles":{"id":"appconfig_list_configuration_profiles","name":"AppConfig List Configuration Profiles","description":"List configuration profiles for an AWS AppConfig application","version":"1.0","params":{"region":{"type":"string","required":true,"visibility":"user-only","description":"AWS region (e.g., us-east-1)"},"accessKeyId":{"type":"string","required":true,"visibility":"user-only","description":"AWS access key ID"},"secretAccessKey":{"type":"string","required":true,"visibility":"user-only","description":"AWS secret access key"},"applicationId":{"type":"string","required":true,"visibility":"user-or-llm","description":"The application ID that owns the configuration profiles"},"maxResults":{"type":"number","required":false,"visibility":"user-or-llm","description":"Maximum number of configuration profiles to return (1-50)"},"nextToken":{"type":"string","required":false,"visibility":"user-or-llm","description":"Pagination token from a previous response"}},"oauth":{"required":false,"provider":"aws","credentialKind":"service-account","credentialSuppliedParams":["accessKeyId","secretAccessKey","awsAccessKeyId","awsSecretAccessKey"]},"hostedApiKey":"none"},"appconfig_list_deployment_strategies":{"id":"appconfig_list_deployment_strategies","name":"AppConfig List Deployment Strategies","description":"List deployment strategies available in AWS AppConfig","version":"1.0","params":{"region":{"type":"string","required":true,"visibility":"user-only","description":"AWS region (e.g., us-east-1)"},"accessKeyId":{"type":"string","required":true,"visibility":"user-only","description":"AWS access key ID"},"secretAccessKey":{"type":"string","required":true,"visibility":"user-only","description":"AWS secret access key"},"maxResults":{"type":"number","required":false,"visibility":"user-or-llm","description":"Maximum number of deployment strategies to return (1-50)"},"nextToken":{"type":"string","required":false,"visibility":"user-or-llm","description":"Pagination token from a previous response"}},"oauth":{"required":false,"provider":"aws","credentialKind":"service-account","credentialSuppliedParams":["accessKeyId","secretAccessKey","awsAccessKeyId","awsSecretAccessKey"]},"hostedApiKey":"none"},"appconfig_list_deployments":{"id":"appconfig_list_deployments","name":"AppConfig List Deployments","description":"List deployments for an AWS AppConfig environment","version":"1.0","params":{"region":{"type":"string","required":true,"visibility":"user-only","description":"AWS region (e.g., us-east-1)"},"accessKeyId":{"type":"string","required":true,"visibility":"user-only","description":"AWS access key ID"},"secretAccessKey":{"type":"string","required":true,"visibility":"user-only","description":"AWS secret access key"},"applicationId":{"type":"string","required":true,"visibility":"user-or-llm","description":"The application ID of the deployments"},"environmentId":{"type":"string","required":true,"visibility":"user-or-llm","description":"The environment ID of the deployments"},"maxResults":{"type":"number","required":false,"visibility":"user-or-llm","description":"Maximum number of deployments to return (1-50)"},"nextToken":{"type":"string","required":false,"visibility":"user-or-llm","description":"Pagination token from a previous response"}},"oauth":{"required":false,"provider":"aws","credentialKind":"service-account","credentialSuppliedParams":["accessKeyId","secretAccessKey","awsAccessKeyId","awsSecretAccessKey"]},"hostedApiKey":"none"},"appconfig_list_environments":{"id":"appconfig_list_environments","name":"AppConfig List Environments","description":"List environments for an AWS AppConfig application","version":"1.0","params":{"region":{"type":"string","required":true,"visibility":"user-only","description":"AWS region (e.g., us-east-1)"},"accessKeyId":{"type":"string","required":true,"visibility":"user-only","description":"AWS access key ID"},"secretAccessKey":{"type":"string","required":true,"visibility":"user-only","description":"AWS secret access key"},"applicationId":{"type":"string","required":true,"visibility":"user-or-llm","description":"The application ID that owns the environments"},"maxResults":{"type":"number","required":false,"visibility":"user-or-llm","description":"Maximum number of environments to return (1-50)"},"nextToken":{"type":"string","required":false,"visibility":"user-or-llm","description":"Pagination token from a previous response"}},"oauth":{"required":false,"provider":"aws","credentialKind":"service-account","credentialSuppliedParams":["accessKeyId","secretAccessKey","awsAccessKeyId","awsSecretAccessKey"]},"hostedApiKey":"none"},"appconfig_list_hosted_configuration_versions":{"id":"appconfig_list_hosted_configuration_versions","name":"AppConfig List Hosted Configuration Versions","description":"List hosted configuration versions for an AWS AppConfig configuration profile","version":"1.0","params":{"region":{"type":"string","required":true,"visibility":"user-only","description":"AWS region (e.g., us-east-1)"},"accessKeyId":{"type":"string","required":true,"visibility":"user-only","description":"AWS access key ID"},"secretAccessKey":{"type":"string","required":true,"visibility":"user-only","description":"AWS secret access key"},"applicationId":{"type":"string","required":true,"visibility":"user-or-llm","description":"The application ID that owns the configuration profile"},"configurationProfileId":{"type":"string","required":true,"visibility":"user-or-llm","description":"The configuration profile ID to list versions for"},"maxResults":{"type":"number","required":false,"visibility":"user-or-llm","description":"Maximum number of versions to return (1-50)"},"nextToken":{"type":"string","required":false,"visibility":"user-or-llm","description":"Pagination token from a previous response"}},"oauth":{"required":false,"provider":"aws","credentialKind":"service-account","credentialSuppliedParams":["accessKeyId","secretAccessKey","awsAccessKeyId","awsSecretAccessKey"]},"hostedApiKey":"none"},"appconfig_start_deployment":{"id":"appconfig_start_deployment","name":"AppConfig Start Deployment","description":"Start deploying a configuration version to an AWS AppConfig environment","version":"1.0","params":{"region":{"type":"string","required":true,"visibility":"user-only","description":"AWS region (e.g., us-east-1)"},"accessKeyId":{"type":"string","required":true,"visibility":"user-only","description":"AWS access key ID"},"secretAccessKey":{"type":"string","required":true,"visibility":"user-only","description":"AWS secret access key"},"applicationId":{"type":"string","required":true,"visibility":"user-or-llm","description":"The application ID to deploy in"},"environmentId":{"type":"string","required":true,"visibility":"user-or-llm","description":"The environment ID to deploy to"},"deploymentStrategyId":{"type":"string","required":true,"visibility":"user-or-llm","description":"The deployment strategy ID to use"},"configurationProfileId":{"type":"string","required":true,"visibility":"user-or-llm","description":"The configuration profile ID to deploy"},"configurationVersion":{"type":"string","required":true,"visibility":"user-or-llm","description":"The configuration version to deploy"},"description":{"type":"string","required":false,"visibility":"user-or-llm","description":"Description of the deployment"}},"oauth":{"required":false,"provider":"aws","credentialKind":"service-account","credentialSuppliedParams":["accessKeyId","secretAccessKey","awsAccessKeyId","awsSecretAccessKey"]},"hostedApiKey":"none"},"appconfig_stop_deployment":{"id":"appconfig_stop_deployment","name":"AppConfig Stop Deployment","description":"Stop an in-progress AWS AppConfig deployment","version":"1.0","params":{"region":{"type":"string","required":true,"visibility":"user-only","description":"AWS region (e.g., us-east-1)"},"accessKeyId":{"type":"string","required":true,"visibility":"user-only","description":"AWS access key ID"},"secretAccessKey":{"type":"string","required":true,"visibility":"user-only","description":"AWS secret access key"},"applicationId":{"type":"string","required":true,"visibility":"user-or-llm","description":"The application ID of the deployment"},"environmentId":{"type":"string","required":true,"visibility":"user-or-llm","description":"The environment ID of the deployment"},"deploymentNumber":{"type":"number","required":true,"visibility":"user-or-llm","description":"The sequence number of the deployment to stop"}},"oauth":{"required":false,"provider":"aws","credentialKind":"service-account","credentialSuppliedParams":["accessKeyId","secretAccessKey","awsAccessKeyId","awsSecretAccessKey"]},"hostedApiKey":"none"},"appconfig_update_application":{"id":"appconfig_update_application","name":"AppConfig Update Application","description":"Update the name or description of an AWS AppConfig application","version":"1.0","params":{"region":{"type":"string","required":true,"visibility":"user-only","description":"AWS region (e.g., us-east-1)"},"accessKeyId":{"type":"string","required":true,"visibility":"user-only","description":"AWS access key ID"},"secretAccessKey":{"type":"string","required":true,"visibility":"user-only","description":"AWS secret access key"},"applicationId":{"type":"string","required":true,"visibility":"user-or-llm","description":"The application ID to update"},"name":{"type":"string","required":false,"visibility":"user-or-llm","description":"New name for the application"},"description":{"type":"string","required":false,"visibility":"user-or-llm","description":"New description for the application"}},"oauth":{"required":false,"provider":"aws","credentialKind":"service-account","credentialSuppliedParams":["accessKeyId","secretAccessKey","awsAccessKeyId","awsSecretAccessKey"]},"hostedApiKey":"none"},"appconfig_update_configuration_profile":{"id":"appconfig_update_configuration_profile","name":"AppConfig Update Configuration Profile","description":"Update the name, description, or retrieval role of an AppConfig configuration profile","version":"1.0","params":{"region":{"type":"string","required":true,"visibility":"user-only","description":"AWS region (e.g., us-east-1)"},"accessKeyId":{"type":"string","required":true,"visibility":"user-only","description":"AWS access key ID"},"secretAccessKey":{"type":"string","required":true,"visibility":"user-only","description":"AWS secret access key"},"applicationId":{"type":"string","required":true,"visibility":"user-or-llm","description":"The application ID that owns the configuration profile"},"configurationProfileId":{"type":"string","required":true,"visibility":"user-or-llm","description":"The configuration profile ID to update"},"name":{"type":"string","required":false,"visibility":"user-or-llm","description":"New name for the configuration profile"},"description":{"type":"string","required":false,"visibility":"user-or-llm","description":"New description for the configuration profile"},"retrievalRoleArn":{"type":"string","required":false,"visibility":"user-or-llm","description":"New ARN of the IAM role used to retrieve the configuration"}},"oauth":{"required":false,"provider":"aws","credentialKind":"service-account","credentialSuppliedParams":["accessKeyId","secretAccessKey","awsAccessKeyId","awsSecretAccessKey"]},"hostedApiKey":"none"},"appconfig_update_environment":{"id":"appconfig_update_environment","name":"AppConfig Update Environment","description":"Update the name or description of an AWS AppConfig environment","version":"1.0","params":{"region":{"type":"string","required":true,"visibility":"user-only","description":"AWS region (e.g., us-east-1)"},"accessKeyId":{"type":"string","required":true,"visibility":"user-only","description":"AWS access key ID"},"secretAccessKey":{"type":"string","required":true,"visibility":"user-only","description":"AWS secret access key"},"applicationId":{"type":"string","required":true,"visibility":"user-or-llm","description":"The application ID that owns the environment"},"environmentId":{"type":"string","required":true,"visibility":"user-or-llm","description":"The environment ID to update"},"name":{"type":"string","required":false,"visibility":"user-or-llm","description":"New name for the environment"},"description":{"type":"string","required":false,"visibility":"user-or-llm","description":"New description for the environment"}},"oauth":{"required":false,"provider":"aws","credentialKind":"service-account","credentialSuppliedParams":["accessKeyId","secretAccessKey","awsAccessKeyId","awsSecretAccessKey"]},"hostedApiKey":"none"},"arxiv_get_author_papers":{"id":"arxiv_get_author_papers","name":"ArXiv Get Author Papers","description":"Search for papers by a specific author on ArXiv.","version":"1.0.0","params":{"authorName":{"type":"string","required":true,"visibility":"user-or-llm","description":"Author name to search for"},"maxResults":{"type":"number","required":false,"visibility":"user-only","description":"Maximum number of results to return (default: 10, max: 2000)"}},"hostedApiKey":"none"},"arxiv_get_paper":{"id":"arxiv_get_paper","name":"ArXiv Get Paper","description":"Get detailed information about a specific ArXiv paper by its ID.","version":"1.0.0","params":{"paperId":{"type":"string","required":true,"visibility":"user-or-llm","description":"ArXiv paper ID (e.g., \\"1706.03762\\")"}},"hostedApiKey":"none"},"arxiv_search":{"id":"arxiv_search","name":"ArXiv Search","description":"Search for academic papers on ArXiv by keywords, authors, titles, or other fields.","version":"1.0.0","params":{"searchQuery":{"type":"string","required":true,"visibility":"user-or-llm","description":"The search query to execute"},"searchField":{"type":"string","required":false,"visibility":"user-only","description":"Field to search in: all, ti (title), au (author), abs (abstract), co (comment), jr (journal), cat (category), rn (report number)"},"maxResults":{"type":"number","required":false,"visibility":"user-only","description":"Maximum number of results to return (default: 10, max: 2000)"},"sortBy":{"type":"string","required":false,"visibility":"user-only","description":"Sort by: relevance, lastUpdatedDate, submittedDate (default: relevance)"},"sortOrder":{"type":"string","required":false,"visibility":"user-only","description":"Sort order: ascending, descending (default: descending)"}},"hostedApiKey":"none"},"asana_add_comment":{"id":"asana_add_comment","name":"Asana Add Comment","description":"Add a comment (story) to an Asana task","version":"1.0.0","params":{"accessToken":{"type":"string","required":true,"visibility":"hidden","description":"OAuth access token for Asana"},"taskGid":{"type":"string","required":true,"visibility":"user-or-llm","description":"Asana task GID (numeric string)"},"text":{"type":"string","required":true,"visibility":"user-or-llm","description":"The text content of the comment"}},"oauth":{"required":true,"provider":"asana"},"hostedApiKey":"none"},"asana_add_followers":{"id":"asana_add_followers","name":"Asana Add Followers","description":"Add one or more followers to an Asana task","version":"1.0.0","params":{"accessToken":{"type":"string","required":true,"visibility":"hidden","description":"OAuth access token for Asana"},"taskGid":{"type":"string","required":true,"visibility":"user-or-llm","description":"GID of the Asana task (numeric string)"},"followers":{"type":"array","required":true,"visibility":"user-or-llm","description":"Array of user GIDs to add as followers to the task"}},"oauth":{"required":true,"provider":"asana"},"hostedApiKey":"none"},"asana_create_project":{"id":"asana_create_project","name":"Asana Create Project","description":"Create a new project in an Asana workspace","version":"1.0.0","params":{"accessToken":{"type":"string","required":true,"visibility":"hidden","description":"OAuth access token for Asana"},"workspace":{"type":"string","required":true,"visibility":"user-or-llm","description":"Asana workspace GID (numeric string) where the project will be created"},"name":{"type":"string","required":true,"visibility":"user-or-llm","description":"Name of the project"},"notes":{"type":"string","required":false,"visibility":"user-or-llm","description":"Notes or description for the project"}},"oauth":{"required":true,"provider":"asana"},"hostedApiKey":"none"},"asana_create_section":{"id":"asana_create_section","name":"Asana Create Section","description":"Create a new section in an Asana project","version":"1.0.0","params":{"accessToken":{"type":"string","required":true,"visibility":"hidden","description":"OAuth access token for Asana"},"projectGid":{"type":"string","required":true,"visibility":"user-or-llm","description":"GID of the Asana project (numeric string) to add the section to"},"name":{"type":"string","required":true,"visibility":"user-or-llm","description":"Name of the section"}},"oauth":{"required":true,"provider":"asana"},"hostedApiKey":"none"},"asana_create_subtask":{"id":"asana_create_subtask","name":"Asana Create Subtask","description":"Create a subtask under an existing Asana task","version":"1.0.0","params":{"accessToken":{"type":"string","required":true,"visibility":"hidden","description":"OAuth access token for Asana"},"taskGid":{"type":"string","required":true,"visibility":"user-or-llm","description":"GID of the parent Asana task (numeric string)"},"name":{"type":"string","required":true,"visibility":"user-or-llm","description":"Name of the subtask"},"notes":{"type":"string","required":false,"visibility":"user-or-llm","description":"Notes or description for the subtask"},"assignee":{"type":"string","required":false,"visibility":"user-or-llm","description":"User GID to assign the subtask to"},"due_on":{"type":"string","required":false,"visibility":"user-or-llm","description":"Due date in YYYY-MM-DD format"}},"oauth":{"required":true,"provider":"asana"},"hostedApiKey":"none"},"asana_create_task":{"id":"asana_create_task","name":"Asana Create Task","description":"Create a new task in Asana","version":"1.0.0","params":{"accessToken":{"type":"string","required":true,"visibility":"hidden","description":"OAuth access token for Asana"},"workspace":{"type":"string","required":true,"visibility":"user-or-llm","description":"Asana workspace GID (numeric string) where the task will be created"},"name":{"type":"string","required":true,"visibility":"user-or-llm","description":"Name of the task"},"notes":{"type":"string","required":false,"visibility":"user-or-llm","description":"Notes or description for the task"},"assignee":{"type":"string","required":false,"visibility":"user-or-llm","description":"User GID to assign the task to"},"due_on":{"type":"string","required":false,"visibility":"user-or-llm","description":"Due date in YYYY-MM-DD format"}},"oauth":{"required":true,"provider":"asana"},"hostedApiKey":"none"},"asana_delete_task":{"id":"asana_delete_task","name":"Asana Delete Task","description":"Delete an Asana task by its GID (moves it to the trash)","version":"1.0.0","params":{"accessToken":{"type":"string","required":true,"visibility":"hidden","description":"OAuth access token for Asana"},"taskGid":{"type":"string","required":true,"visibility":"user-or-llm","description":"GID of the Asana task to delete (numeric string)"}},"oauth":{"required":true,"provider":"asana"},"hostedApiKey":"none"},"asana_get_project":{"id":"asana_get_project","name":"Asana Get Project","description":"Retrieve a single Asana project by its GID","version":"1.0.0","params":{"accessToken":{"type":"string","required":true,"visibility":"hidden","description":"OAuth access token for Asana"},"projectGid":{"type":"string","required":true,"visibility":"user-or-llm","description":"Asana project GID (numeric string) to retrieve"}},"oauth":{"required":true,"provider":"asana"},"hostedApiKey":"none"},"asana_get_projects":{"id":"asana_get_projects","name":"Asana Get Projects","description":"Retrieve all projects from an Asana workspace","version":"1.0.0","params":{"accessToken":{"type":"string","required":true,"visibility":"hidden","description":"OAuth access token for Asana"},"workspace":{"type":"string","required":true,"visibility":"user-or-llm","description":"Asana workspace GID (numeric string) to retrieve projects from"}},"oauth":{"required":true,"provider":"asana"},"hostedApiKey":"none"},"asana_get_task":{"id":"asana_get_task","name":"Asana Get Task","description":"Retrieve a single task by GID or get multiple tasks with filters","version":"1.0.0","params":{"accessToken":{"type":"string","required":true,"visibility":"hidden","description":"OAuth access token for Asana"},"taskGid":{"type":"string","required":false,"visibility":"user-or-llm","description":"The globally unique identifier (GID) of the task. If not provided, will get multiple tasks."},"workspace":{"type":"string","required":false,"visibility":"user-or-llm","description":"Asana workspace GID (numeric string) to filter tasks. Asana requires an assignee alongside a workspace filter; use project instead to list a project"},"assignee":{"type":"string","required":false,"visibility":"user-or-llm","description":"Assignee to filter tasks on (user GID, email, or \\"me\\"). Required by Asana when filtering by workspace; ignored when filtering by project"},"project":{"type":"string","required":false,"visibility":"user-or-llm","description":"Asana project GID (numeric string) to filter tasks"},"limit":{"type":"number","required":false,"visibility":"user-or-llm","description":"Maximum number of tasks to return, 1-100 (default: 50)"},"offset":{"type":"string","required":false,"visibility":"user-or-llm","description":"Pagination offset token from a previous response next_page.offset"}},"oauth":{"required":true,"provider":"asana"},"hostedApiKey":"none"},"asana_list_sections":{"id":"asana_list_sections","name":"Asana List Sections","description":"List all sections in an Asana project","version":"1.0.0","params":{"accessToken":{"type":"string","required":true,"visibility":"hidden","description":"OAuth access token for Asana"},"projectGid":{"type":"string","required":true,"visibility":"user-or-llm","description":"GID of the Asana project (numeric string) to list sections from"}},"oauth":{"required":true,"provider":"asana"},"hostedApiKey":"none"},"asana_list_workspaces":{"id":"asana_list_workspaces","name":"Asana List Workspaces","description":"List all Asana workspaces and organizations the authenticated user belongs to","version":"1.0.0","params":{"accessToken":{"type":"string","required":true,"visibility":"hidden","description":"OAuth access token for Asana"}},"oauth":{"required":true,"provider":"asana"},"hostedApiKey":"none"},"asana_search_tasks":{"id":"asana_search_tasks","name":"Asana Search Tasks","description":"Search for tasks in an Asana workspace","version":"1.0.0","params":{"accessToken":{"type":"string","required":true,"visibility":"hidden","description":"OAuth access token for Asana"},"workspace":{"type":"string","required":true,"visibility":"user-or-llm","description":"Asana workspace GID (numeric string) to search tasks in"},"text":{"type":"string","required":false,"visibility":"user-or-llm","description":"Full-text search on task names and descriptions"},"assignee":{"type":"string","required":false,"visibility":"user-or-llm","description":"Filter tasks by assignee user GID"},"projects":{"type":"array","required":false,"visibility":"user-or-llm","description":"Array of Asana project GIDs (numeric strings) to filter tasks by"},"completed":{"type":"boolean","required":false,"visibility":"user-or-llm","description":"Filter by completion status"},"limit":{"type":"number","required":false,"visibility":"user-or-llm","description":"Maximum number of tasks to return, 1-100"}},"oauth":{"required":true,"provider":"asana"},"hostedApiKey":"none"},"asana_update_task":{"id":"asana_update_task","name":"Asana Update Task","description":"Update an existing task in Asana","version":"1.0.0","params":{"accessToken":{"type":"string","required":true,"visibility":"hidden","description":"OAuth access token for Asana"},"taskGid":{"type":"string","required":true,"visibility":"user-or-llm","description":"Asana task GID (numeric string) of the task to update"},"name":{"type":"string","required":false,"visibility":"user-or-llm","description":"Updated name for the task"},"notes":{"type":"string","required":false,"visibility":"user-or-llm","description":"Updated notes or description for the task"},"assignee":{"type":"string","required":false,"visibility":"user-or-llm","description":"Updated assignee user GID"},"completed":{"type":"boolean","required":false,"visibility":"user-or-llm","description":"Mark task as completed or not completed"},"due_on":{"type":"string","required":false,"visibility":"user-or-llm","description":"Updated due date in YYYY-MM-DD format"}},"oauth":{"required":true,"provider":"asana"},"hostedApiKey":"none"},"ashby_add_candidate_tag":{"id":"ashby_add_candidate_tag","name":"Ashby Add Candidate Tag","description":"Adds a tag to a candidate in Ashby and returns the updated candidate.","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Ashby API Key"},"onBehalfOfUserId":{"type":"string","required":false,"visibility":"user-or-llm","description":"Active Ashby user UUID to attribute this mutation to; the API key must permit on-behalf-of calls"},"candidateId":{"type":"string","required":true,"visibility":"user-or-llm","description":"The UUID of the candidate to add the tag to"},"tagId":{"type":"string","required":true,"visibility":"user-or-llm","description":"The UUID of the tag to add"}},"oauth":{"required":false,"provider":"ashby","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"ashby_anonymize_candidate":{"id":"ashby_anonymize_candidate","name":"Ashby Anonymize Candidate","description":"Remove personally identifiable information from an Ashby candidate while retaining the candidate record and its applications. This operation does not delete the candidate. Requires the candidatesWrite permission.","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Ashby API Key"},"onBehalfOfUserId":{"type":"string","required":false,"visibility":"user-or-llm","description":"Active Ashby user UUID to attribute this mutation to; the API key must permit on-behalf-of calls"},"candidateId":{"type":"string","required":true,"visibility":"user-or-llm","description":"UUID of the candidate to anonymize"}},"oauth":{"required":false,"provider":"ashby","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"ashby_change_application_source":{"id":"ashby_change_application_source","name":"Ashby Change Application Source","description":"Changes the source attributed to an existing application, so programmatically created applications report correctly on the recruiting side. Requires the candidatesWrite permission.","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Ashby API Key"},"onBehalfOfUserId":{"type":"string","required":false,"visibility":"user-or-llm","description":"Active Ashby user UUID to attribute this mutation to; the API key must permit on-behalf-of calls"},"applicationId":{"type":"string","required":true,"visibility":"user-or-llm","description":"UUID of the application whose source should change"},"sourceId":{"type":"string","required":false,"visibility":"user-or-llm","description":"UUID of the source to attribute the application to, as returned by List Sources. Omit only when unsetSource is true."},"unsetSource":{"type":"boolean","required":false,"visibility":"user-or-llm","description":"Set true to deliberately clear the application source. Required to unset, so that a missing or empty sourceId cannot wipe attribution by accident."}},"oauth":{"required":false,"provider":"ashby","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"ashby_change_application_stage":{"id":"ashby_change_application_stage","name":"Ashby Change Application Stage","description":"Moves an application to a different interview stage. Requires an archive reason when moving to an Archived stage.","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Ashby API Key"},"onBehalfOfUserId":{"type":"string","required":false,"visibility":"user-or-llm","description":"Active Ashby user UUID to attribute this mutation to; the API key must permit on-behalf-of calls"},"applicationId":{"type":"string","required":true,"visibility":"user-or-llm","description":"The UUID of the application to update the stage of"},"interviewStageId":{"type":"string","required":true,"visibility":"user-or-llm","description":"The UUID of the interview stage to move the application to"},"archiveReasonId":{"type":"string","required":false,"visibility":"user-or-llm","description":"Archive reason UUID. Required when moving to an Archived stage, ignored otherwise"},"archiveEmail":{"type":"json","required":false,"visibility":"user-or-llm","description":"Archive email configuration with communicationTemplateId and optional sendAt ISO 8601 timestamp. Pass null or omit to send no archive email."}},"oauth":{"required":false,"provider":"ashby","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"ashby_create_application":{"id":"ashby_create_application","name":"Ashby Create Application","description":"Creates a new application for a candidate on a job. Optionally specify interview plan, stage, source, and credited user.","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Ashby API Key"},"onBehalfOfUserId":{"type":"string","required":false,"visibility":"user-or-llm","description":"Active Ashby user UUID to attribute this mutation to; the API key must permit on-behalf-of calls"},"candidateId":{"type":"string","required":true,"visibility":"user-or-llm","description":"The UUID of the candidate to consider for the job"},"jobId":{"type":"string","required":true,"visibility":"user-or-llm","description":"The UUID of the job to consider the candidate for"},"interviewPlanId":{"type":"string","required":false,"visibility":"user-or-llm","description":"UUID of the interview plan to use (defaults to the job default plan)"},"interviewStageId":{"type":"string","required":false,"visibility":"user-or-llm","description":"UUID of the interview stage to place the application in, or FirstPreInterviewScreen (defaults to the first Lead stage)"},"sourceId":{"type":"string","required":false,"visibility":"user-or-llm","description":"UUID of the source to set on the application"},"creditedToUserId":{"type":"string","required":false,"visibility":"user-or-llm","description":"UUID of the user the application is credited to"},"createdAt":{"type":"string","required":false,"visibility":"user-or-llm","description":"ISO 8601 timestamp to set as the application creation date (defaults to now)"},"applicationHistory":{"type":"json","required":false,"visibility":"user-or-llm","description":"Optional documented application history entries to create with the application"}},"oauth":{"required":false,"provider":"ashby","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"ashby_create_candidate":{"id":"ashby_create_candidate","name":"Ashby Create Candidate","description":"Creates a new candidate record in Ashby.","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Ashby API Key"},"onBehalfOfUserId":{"type":"string","required":false,"visibility":"user-or-llm","description":"Active Ashby user UUID to attribute this mutation to; the API key must permit on-behalf-of calls"},"name":{"type":"string","required":true,"visibility":"user-or-llm","description":"The candidate full name"},"email":{"type":"string","required":false,"visibility":"user-or-llm","description":"Primary email address for the candidate"},"phoneNumber":{"type":"string","required":false,"visibility":"user-or-llm","description":"Primary phone number for the candidate"},"linkedInUrl":{"type":"string","required":false,"visibility":"user-or-llm","description":"LinkedIn profile URL"},"githubUrl":{"type":"string","required":false,"visibility":"user-or-llm","description":"GitHub profile URL"},"website":{"type":"string","required":false,"visibility":"user-or-llm","description":"Personal website URL"},"sourceId":{"type":"string","required":false,"visibility":"user-or-llm","description":"UUID of the source to attribute the candidate to"},"creditedToUserId":{"type":"string","required":false,"visibility":"user-or-llm","description":"UUID of the Ashby user to credit with sourcing this candidate"},"createdAt":{"type":"string","required":false,"visibility":"user-or-llm","description":"Backdated creation timestamp in ISO 8601 (e.g. 2024-01-01T00:00:00Z). Defaults to now."},"alternateEmailAddresses":{"type":"json","required":false,"visibility":"user-or-llm","description":"Array of additional email address strings to add to the candidate, e.g. [\\"a@x.com\\",\\"b@y.com\\"]"},"location":{"type":"json","required":false,"visibility":"user-or-llm","description":"Candidate location object with optional city, region, and country"}},"oauth":{"required":false,"provider":"ashby","credentialKind":"service-account","credentialParams":{"apiKey":"accessToken"},"credentialSuppliedParams":["apiKey"]},"hostedApiKey":"none"},"ashby_create_note":{"id":"ashby_create_note","name":"Ashby Create Note","description":"Creates a note on a candidate in Ashby. Supports plain text and HTML content (bold, italic, underline, links, lists, code).","version":"1.0.0","params":{"apiKey":{"type":"string","required":true,"visibility":"user-only","description":"Ashby API Key"},"onBehalfOfUserId":{"type":"string","required":false,"visibility":"user-or-llm","description":"Active Ashby user UUID to attribute this mutation to; the API key must permit on-behalf-of calls"},"candidateId":{"type":"string","required":true,"visibility":"user-or-llm","description":"The UUID of the candidate to add the note to"},"note":{"type":"string","required":true,"visibility":"user-or-llm","description":"The note content. If noteType is text/html, supports: , , , ,