Create a skill Technical Preview; added in 9.4.0

POST /api/agent_builder/skills

Spaces method and path for this operation:

post /s/{space_id}/api/agent_builder/skills

Refer to Spaces for more information.

Create a new user-defined skill.

[Required authorization] Route required privileges: manage_agent_builder.

Headers

  • kbn-xsrf string Required

    A required header to protect against CSRF attacks

application/json

Body

  • content string Required

    Skill instructions content (markdown).

  • description string Required

    Description of what the skill does.

  • id string Required

    Unique identifier for the skill.

  • name string Required

    Human-readable name for the skill.

  • referenced_content array[object]

    Not more than 20 elements.

    Hide referenced_content attributes Show referenced_content attributes object
    • content string Required

      Content of the reference.

    • name string Required

      Name of the referenced content.

    • relativePath string Required

      Relative path of the referenced content.

  • tool_ids array[string]

    Tool IDs from the tool registry that this skill references.

    Not more than 5 elements. Default value is [] (empty).

POST /api/agent_builder/skills
curl \
 --request POST 'https://localhost:5601/api/agent_builder/skills' \
 --header "Authorization: $API_KEY" \
 --header "Content-Type: application/json" \
 --header "kbn-xsrf: true" \
 --data '{"content":"string","description":"string","id":"string","name":"string","referenced_content":[{"content":"string","name":"string","relativePath":"string"}],"tool_ids":[]}'