Put a document or one of its pages away, or bring it back
archive_docPut a document away or restore it with archived false; nothing is deleted and text stays unchanged, while archived documents remain reachable through docs and find.
Instructions
Put a document away when the person asks for that, and bring it back with archived false. «Delete it» is flag_doc instead. Nothing is deleted and no text changes: docs and find reach the archive as well, unless their scope says otherwise. A single page can be put away on its own, and it stays where it lives — under its document, greyed and read-only — rather than moving to the archive. Putting the document away covers its pages too, and bringing it back wakes each page as it was: one that was already apart stays apart. Putting a document away is not the same as finishing a task — a task is the person's to close, and there is no tool here for that.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc | Yes | The document's id, as `docs` hands it back — an opaque name like `q7ntmzbm-0001`, not its title | |
| folder | No | A folder to file it in as it goes, or as it comes back, by its name, its whole path or its id. It is filed either way: what the archive holds can still be put where it belongs | |
| archived | No | True to put it away, which is what happens if you leave this out; false to bring it back |