doc_import
Import a local file into the documentation library and index it. Provide a path to copy or move the document, optionally adding tags, notes, and provenance.
Instructions
Bring a document that is already on disk into the documentation library and index it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| move | No | Move instead of copy. | |
| path | Yes | A file already on disk, e.g. one saved from a browser. | |
| tags | No | ||
| notes | No | ||
| title | No | ||
| subdir | No | datasheets | |
| source_url | No | Where it came from, for provenance. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Stable id: first 12 hex digits of the file's SHA-256. | |
| file | Yes | Path relative to the documentation library. | |
| path | Yes | Path relative to the workspace. | |
| size | Yes | ||
| tags | No | ||
| notes | No | ||
| pages | No | ||
| title | Yes | ||
| sha256 | Yes | ||
| fetched | Yes | Date the file entered the library (YYYY-MM-DD). | |
| source_url | No | ||
| content_type | Yes |