Update library file content
update_library_file_contentYou need source-backed evidence, quotes, snippets, or exact library text.
When to use it
You need source-backed evidence, quotes, snippets, or exact library text.
Search chunks, read only the precise chunk or bounded text needed, cite ids.
Source text, chunks, snippets, ids, and citation-ready context.
Avoid using it when
Do not call without first reading the latest editable text source and updatedAt.
Advanced input contract
Agent hosts use this JSON Schema to validate the exact input shape.
View full registry notes
Replace the full text content of an editable private Prism library .txt or .md source. Read the file first, preserve the user's voice, and pass the latest updatedAt as expectedUpdatedAt. Immutable raw research captures cannot be edited. This tool cannot edit PDFs, websites, RSS/email imports, delete, publish, upload files, or import websites. Avoid when: Do not call without first reading the latest editable text source and updatedAt.
View JSON Schema
{
"type": "object",
"properties": {
"fileId": {
"type": "string",
"format": "uuid"
},
"contentText": {
"type": "string",
"description": "Full replacement text. Editable .txt and .md sources remain bounded by Prism's 1MB editable text limit."
},
"expectedUpdatedAt": {
"type": "string",
"format": "date-time"
},
"idempotencyKey": {
"type": "string",
"minLength": 1,
"maxLength": 200,
"description": "Required for preview. Reuse only to retry this exact content replacement."
},
"operationId": {
"type": "string",
"format": "uuid",
"description": "Operation returned by the matching preview."
},
"commitToken": {
"type": "string",
"minLength": 1,
"maxLength": 500,
"description": "Commit token returned by the matching preview."
},
"mode": {
"type": "string",
"enum": [
"preview",
"commit"
],
"default": "preview"
}
},
"required": [
"fileId",
"contentText",
"expectedUpdatedAt"
],
"additionalProperties": false
}