Get Media Rules
get_media_rulesReturn the full media rules table this workspace enforces: accepted MIME types, byte caps, attachment counts, duration, pixel bounds, aspect-ratio ranges, video codecs and frame-rate caps, per platform and post type. Use it to choose a destination or to generate media at the right size in the first place; use validate_post_media to check one specific file. These are Social media studio configured limits, not a live mirror of each platform API.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_media_rules"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| postType | No | Limit the answer to one post type; requires socialMedia | |
| socialMedia | No | Limit the answer to one platform |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| note | No | ||
| sizeUnit | No | ||
| platforms | Yes | platform -> post type -> the configured rule for that combination. | |
| ruleSource | No | ||
| aspectRatioUnit | No |