Skip to main content
POST
/
skills
/
{skill_id}
/
refine
Refine Skill
const options = {
  method: 'POST',
  headers: {'X-Browser-Use-API-Key': '<api-key>', 'Content-Type': 'application/json'},
  body: JSON.stringify({feedback: '<string>', testOutput: '<string>', testLogs: '<string>'})
};

fetch('https://api.browser-use.com/api/v2/skills/{skill_id}/refine', 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

Path Parameters

skill_id
string<uuid>
required

Body

application/json

Request to refine an existing skill.

feedback
string
required

Feedback describing what to improve

Minimum string length: 10
testOutput
string | null

Last skill test output to include in refinement context

testLogs
string | null

Last skill test logs to include in refinement context

Response

Successful Response

Response after requesting skill refinement.

id
string<uuid>
required

Unique identifier for the skill