Add Posts to Collection
add_to_collection[Act · writes] Pin one or more posts (by post_id) into a collection you own — works on any collection type. On a 'manual' collection this is the only membership mechanism; on a 'smart' collection it adds the posts as extras alongside whatever the rule already matches (resolve_collection returns the union). Existing members are silently ignored. Free — costs 0 credits.
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": {
"collection_id": "<collection_id>",
"post_ids": "<post_ids>"
},
"name": "add_to_collection"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| post_ids | Yes | post_ids to add (1-1000 per call) | |
| collection_id | Yes | Target collection id from list_collections |