create_document
Create an empty Markdown or HTML artifact owned by this principal. Visibility defaults to private and comments default to signed-in users; no source version is published. Use publish_version with expectedLatestVersionId null to publish the first version.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | Human-readable artifact title. | |
| sourceType | Yes | Source format fixed for every version of this artifact. | |
| visibility | No | Initial visibility of the new artifact. | private |
| commentPolicy | No | Who may comment on the new artifact. | authenticated |
| idempotencyKey | Yes | Stable unique key for this intended change; reuse only to retry the same inputs. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| title | Yes | ||
| ownerId | Yes | ||
| canManage | Yes | ||
| createdAt | Yes | ISO 8601 timestamp. | |
| createdBy | Yes | ||
| updatedAt | Yes | ISO 8601 timestamp. | |
| sourceType | Yes | Source format used by every version of the artifact. | |
| visibility | Yes | Artifact visibility: private, link-accessible unlisted, or public. | |
| versionCount | Yes | ||
| commentPolicy | Yes | Who may add comments: nobody, invited reviewers, signed-in users, or anyone. | |
| createdByName | Yes | ||
| createdByType | Yes | ||
| latestVersionId | Yes | ||
| openThreadCount | Yes | ||
| settingsUpdatedAt | Yes | ISO 8601 timestamp. | |
| settingsUpdatedBy | Yes | ||
| createdOnBehalfOfId | Yes | ||
| createdOnBehalfOfName | Yes | ||
| settingsUpdatedByName | Yes | ||
| settingsUpdatedByType | Yes | ||
| settingsUpdatedOnBehalfOfId | Yes | ||
| settingsUpdatedOnBehalfOfName | Yes |