anythingllm_update_pin
Pin or unpin a document in an AnythingLLM workspace to force its inclusion in every LLM query context, regardless of vector similarity results.
Instructions
Pin or unpin a document in a workspace.
Pinned documents are always included in the LLM context for every query, regardless of vector similarity results.
Args: slug: Workspace slug. doc_path: Document path as returned by list_documents (e.g. 'custom-documents/myfile.pdf-abc123.json'). pinned: True to pin, False to unpin.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"slug": "<slug>",
"doc_path": "<doc_path>",
"pinned": "<pinned>"
},
"name": "anythingllm_update_pin"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | ||
| pinned | Yes | ||
| doc_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |