file_document
Files a document into a specific folder by establishing a containment relationship in the content repository.
Instructions
File a document to a folder in the content repository. This tool interfaces with the GraphQL API to create a referential containment relationship between a document and a folder.
:param document_id_or_path string Yes The unique identifier or path for the document. :param folder_id_or_path string Yes The unique identifier or path for the folder.
:returns: If successful, returns the reference containment relationship ID
Else, return a ToolError instance that describes the error.
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": {
"document_id_or_path": "<document_id_or_path>",
"folder_id_or_path": "<folder_id_or_path>"
},
"name": "file_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| document_id_or_path | Yes | ||
| folder_id_or_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |