Skip to content

Commit 3813f2c

Browse files
zimegClaude
andauthored
feat: add slackbot.skills.list method (#2020)
Co-authored-by: Claude <svc-devxp-claude@slack-corp.com>
1 parent 30e0bb3 commit 3813f2c

4 files changed

Lines changed: 98 additions & 2 deletions

File tree

‎slack_sdk/web/async_client.py‎

Lines changed: 31 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎slack_sdk/web/client.py‎

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5638,6 +5638,37 @@ def slackbot_skills_info(
56385638
kwargs.update({"skill_id": skill_id})
56395639
return self.api_call("slackbot.skills.info", params=kwargs)
56405640

5641+
def slackbot_skills_list(
5642+
self,
5643+
*,
5644+
filter: Optional[str] = None,
5645+
category: Optional[str] = None,
5646+
cursor: Optional[str] = None,
5647+
limit: Optional[int] = None,
5648+
**kwargs,
5649+
) -> SlackResponse:
5650+
"""Lists Slackbot skills from the caller's point of view. Instructions are not included.
5651+
5652+
https://docs.slack.dev/reference/methods/slackbot.skills.list
5653+
5654+
Args:
5655+
filter: `library`: skills enabled for the caller, including auto-enabled skills and skills from skill sets.
5656+
`owned`: skills the caller created. `catalog`: the organization's official skills.
5657+
category: Only return skills in this category.
5658+
cursor: Paginate through collections of data by setting the `cursor` parameter to a `next_cursor` attribute
5659+
returned by a previous request's `response_metadata`. Must be used with the same `filter` and `category`.
5660+
limit: The maximum number of skills to return. Fewer may be returned even when more remain.
5661+
"""
5662+
kwargs.update(
5663+
{
5664+
"filter": filter,
5665+
"category": category,
5666+
"cursor": cursor,
5667+
"limit": limit,
5668+
}
5669+
)
5670+
return self.api_call("slackbot.skills.list", params=kwargs)
5671+
56415672
def slackbot_skills_update(
56425673
self,
56435674
*,

‎slack_sdk/web/legacy_client.py‎

Lines changed: 31 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)