Add items to folder
add_items_to_folderAdd listings, shops, or keywords to a favorite folder.
folder_id comes from create_favorite_folder or list_favorite_folders.
items are the PUBLIC handles matching the folder's kind:
listing folder -> listing_id values (e.g. "1234567890")
shop folder -> shop_name values (e.g. "MyShopName")
keyword folder -> the keyword text (e.g. "custom dog collar") (These are the same handles returned by get_listings / get_shops / get_keywords.) Adding an item already in the folder is a no-op.
Returns {folder: {...}, added: [...], already_present: [...], not_found: [...]} echoing the handles back. not_found = handles that
didn't match anything. If the user's plan favorite limit would be
exceeded (shops/keywords), returns a 403-style error with
suggested_upgrade and no items are added.
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": {
"folder_id": "<folder_id>",
"items": "<items>"
},
"name": "add_items_to_folder"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | ||
| folder_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||