Skills library

get()

api.agents.skills.get(name) → Promise<Skill>

One skill with its content. The account is tried first; failing that, this computer.

freeaccount firstcontent included
Using Python?

Switch any code block to Python: the choice applies to every page. Python SDK guide and resource reference.

const skill = await api.agents.skills.get("release-notes");

console.log(skill.description);
console.log(skill.content);
console.log(skill.source);      // "account" or "computer"
skill = api.agents.skills.get("release-notes")

print(skill["description"])
print(skill["content"])
print(skill["source"])      # "account" or "computer"
namestringrequired

Lowercase letters, digits and dashes, 64 characters at most.

returnsobject

name, description, content, source, and for a computer skill its files and folder.

The order

The account first. Only a 404 falls through to the disk — any other refusal is raised, because a network failure is not a reason to serve a possibly older local copy.

A computer skill carries its files

files lists the other documents in the skill's folder, and folder is where they are. Open one with readFile(). An account skill is a single document and has neither.

Errors

CodeStatusWhen
invalid_name400Not lowercase letters, digits and dashes.
not_found404In neither source.