Replace a piece of a skill
Replace one piece of text in a skill file, without sending the full content. Give oldText exactly as it is in the file (read it with read_file). oldText must occur one time. Basement saves a new version. Requires write access.
Authentication
AuthorizationBearer
A Basement key (bsmt_...), from Agents, Connect in the app.
Request
This endpoint expects an object.
fileId
The skill file ID from list_skills
oldText
The text to replace, exactly as it is in the file
newText
The new text. An empty string deletes oldText
Response
The tool's answer.
versionCount
Errors
400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
429
Too Many Requests Error
500
Internal Server Error