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"namestringrequiredLowercase letters, digits and dashes, 64 characters at most.
returnsobjectname, 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
| Code | Status | When |
|---|---|---|
| invalid_name | 400 | Not lowercase letters, digits and dashes. |
| not_found | 404 | In neither source. |