@@ -5580,6 +5580,48 @@ def search_messages(
55805580 )
55815581 return self .api_call ("search.messages" , http_verb = "GET" , params = kwargs )
55825582
5583+ def slackbot_skills_create (
5584+ self ,
5585+ * ,
5586+ display_name : str ,
5587+ instructions : Optional [str ] = None ,
5588+ canvas_id : Optional [str ] = None ,
5589+ description : Optional [str ] = None ,
5590+ category : Optional [str ] = None ,
5591+ example_prompt : Optional [str ] = None ,
5592+ mcp_servers : Optional [Union [str , Sequence [Dict [str , Any ]]]] = None ,
5593+ ** kwargs ,
5594+ ) -> SlackResponse :
5595+ """Creates a skill from markdown instructions, or turns an existing canvas the caller owns into a skill.
5596+
5597+ https://docs.slack.dev/reference/methods/slackbot.skills.create
5598+
5599+ Args:
5600+ display_name: Human-readable label. Max 255 characters; not unique.
5601+ instructions: Markdown body of the skill. Send exactly one of `instructions` or `canvas_id`.
5602+ canvas_id: Canvas the caller owns to turn into a skill. Send exactly one of `instructions` or `canvas_id`.
5603+ description: When Slackbot should use the skill. Max 400 characters.
5604+ category: One of the skill categories.
5605+ example_prompt: Max 200 characters. May contain `{skill}`, which becomes the skill mention.
5606+ mcp_servers: Apps the skill needs, capped at the caller's MCP server limit. Declaring an app doesn't grant
5607+ access to it.
5608+ """
5609+ kwargs .update (
5610+ {
5611+ "display_name" : display_name ,
5612+ "instructions" : instructions ,
5613+ "canvas_id" : canvas_id ,
5614+ "description" : description ,
5615+ "category" : category ,
5616+ "example_prompt" : example_prompt ,
5617+ }
5618+ )
5619+ if isinstance (mcp_servers , (list , tuple )):
5620+ kwargs .update ({"mcp_servers" : json .dumps (mcp_servers )})
5621+ else :
5622+ kwargs .update ({"mcp_servers" : mcp_servers })
5623+ return self .api_call ("slackbot.skills.create" , params = kwargs )
5624+
55835625 def slackLists_access_delete (
55845626 self ,
55855627 * ,
0 commit comments