Docs
list_snippets
The workspace's snippets: short reusable text (a closing line, a disclaimer, a hashtag set) people insert into drafts from the editor. Sorted by name; filter by `text` (name or body). To use one in content, put its `body` into the text you pass to update_original or update_post.
The workspace's snippets: short reusable text (a closing line, a disclaimer, a hashtag set) people insert into drafts from the editor. Sorted by name; filter by text (name or body). To use one in content, put its body into the text you pass to update_original or update_post.
Access and cost
- Kind: query
- Scope: workspace
- Actors: member, agent
- Credits: Free
- Requires confirmation: false
- Accepts idempotency key: false
Input schema
{
"properties": {
"workspaceId": {
"format": "uuid",
"type": "string"
},
"text": {
"maxLength": 200,
"minLength": 1,
"type": "string"
}
},
"required": [
"workspaceId"
],
"type": "object"
}Output schema
{
"additionalProperties": false,
"properties": {
"snippets": {
"items": {
"additionalProperties": false,
"properties": {
"id": {
"format": "uuid",
"type": "string"
},
"name": {
"type": "string"
},
"body": {
"type": "string"
},
"createdAt": {
"format": "date-time",
"type": "string"
},
"updatedAt": {
"format": "date-time",
"type": "string"
}
},
"required": [
"id",
"name",
"body",
"createdAt",
"updatedAt"
],
"type": "object"
},
"type": "array"
}
},
"required": [
"snippets"
],
"type": "object"
}Errors
[]Annotations
{
"destructiveHint": false,
"idempotentHint": true,
"openWorldHint": false,
"readOnlyHint": true,
"title": "List snippets"
}