| Methods |
public
|
listSkills(?Cursor $cursor = null): ListSkillsResult
One page of the skills listed by the server, which may serve others without listing them.
One page of the skills listed by the server, which may serve others without listing them.
Throws
Implemented by
|
#
|
public
|
getSkill(non-empty-string $uri): Skill
The current entry of one skill, whether or not the server lists it.
The current entry of one skill, whether or not the server lists it.
Parameters
| $uri |
URI of the skill's SKILL.md
|
Throws
Implemented by
|
#
|
public
|
readSkillFile(
Skill $skill,
non-empty-string $uri,
null|array<int|non-empty-string, InputResponse> $inputResponses = null,
?string $requestState = null,
): InputRequiredResult|string
Reads one file of a skill and returns its bytes once they match the entry, or the server's request for
input. Call it only when the file is needed, since a host must not fetch a skill's files ahead of use.
Reads one file of a skill and returns its bytes once they match the entry, or the server's request for
input. Call it only when the file is needed, since a host must not fetch a skill's files ahead of use.
Throws
Implemented by
|
#
|
public
|
readDirectory(non-empty-string $uri, ?Cursor $cursor = null): ReadResourceDirectoryResult
One page of the direct children of a directory resource.
One page of the direct children of a directory resource.
Parameters
| $uri |
URI of the directory, written without a trailing slash
|
Throws
Implemented by
|
#
|