Skip to main content
POST
/
skills
Create Skill
const options = {
  method: 'POST',
  headers: {'X-Browser-Use-API-Key': '<api-key>', 'Content-Type': 'application/json'},
  body: JSON.stringify({
    goal: '<string>',
    agentPrompt: '<string>',
    title: '<string>',
    description: '<string>'
  })
};

fetch('https://api.browser-use.com/api/v2/skills', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}

Authorizations

X-Browser-Use-API-Key
string
header
required

Body

application/json

Request to create a new skill via automated generation.

goal
string
required

Goal of the skill (description of what the skill does and what the user should expect from it)

Maximum string length: 1000
agentPrompt
string
required

Prompt for the agent to use when generating the skill automatically

Minimum string length: 10
title
string | null

Optional title for the skill (will be generated if not provided)

Maximum string length: 100
description
string | null

Optional description for the skill (will be generated if not provided)

Maximum string length: 1000

Response

Successful Response

Response after creating a skill.

id
string<uuid>
required

Unique identifier for the created skill