Public Beta
Not set

Experience

Changes how pages explain things, never what you can do.

More

Experience

Changes how pages explain things, never what you can do.

Sign inGet started

Social Publisher v0.1.2 · generic

Archive SHA-256 c9dd6f5e6e9c4f59523536b81d78efcc1a79eeba97feaa1027e027d5be03e6c5 · 49.6 KB · built Nov 27, 2026

agent.json

{
  "id": "agentrove.social-publisher",
  "name": "Social Publisher",
  "version": "0.1.2",
  "license": "MIT",
  "summary": "Prepares posts; does not post by default. Drafts platform-specific variants within X, LinkedIn, Instagram, TikTok, YouTube and Facebook limits with hashtags and UTM links, builds a deduplicated time-zone-aware approval queue, and publishes one approved item via an official API after confirmation.",
  "description": "draft_posts and schedule_queue run offline and only reformat the text you supply. publish sends one approved queue item to the official X API v2, LinkedIn Posts API, Facebook Graph page feed, or starts a YouTube Data API videos.insert resumable upload session (metadata only), using your own OAuth token. There are no follow, like, comment, DM or account-creation tools.",
  "sdk_import": "../../../sdk/index.js",
  "entry": { "module": "src/index.js", "cli": "bin/cli.js", "mcp": "bin/mcp.js" },
  "tools": [
    {
      "name": "draft_posts",
      "description": "Turn a brief (text) or a script into one draft per platform, fitted to each platform's limit (X 280 weighted, LinkedIn 3000, Instagram 2200, TikTok 2200, YouTube title 100 / description 5000 bytes, Facebook 5000). Adds normalised hashtags and a UTM-tagged link. When the text is too long (usually on X), the draft is built from whole points, best supported first, without the introduction, so it never promises content that was cut; only if even one point is too long is text shortened. Reformats your text only; writes and sends nothing.",
      "side_effects": "none",
      "requires_confirmation": false,
      "input_schema": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "brief": { "type": "string", "minLength": 1, "maxLength": 20000, "description": "Post text or brief. Blank lines separate paragraphs." },
          "script": {
            "type": "object",
            "required": ["segments"],
            "description": "A script (types.json `script`): segments are used in order as paragraphs. Optional claims (text, source_url, sources) rank points by support for shortened drafts.",
            "properties": {
              "title": { "type": "string", "maxLength": 300 },
              "segments": {
                "type": "array",
                "minItems": 1,
                "maxItems": 500,
                "items": {
                  "type": "object",
                  "required": ["text"],
                  "properties": { "text": { "type": "string", "maxLength": 5000 }, "kind": { "type": "string", "maxLength": 40 }, "start": { "type": "number" }, "end": { "type": "number" } }
                }
              },
              "claims": {
                "type": "array",
                "maxItems": 500,
                "items": {
                  "type": "object",
                  "required": ["text"],
                  "properties": { "text": { "type": "string", "maxLength": 2000 }, "source_url": { "type": "string", "maxLength": 2048 }, "sources": { "type": "array", "maxItems": 50, "items": { "type": "string", "maxLength": 2048 } } }
                }
              }
            }
          },
          "platforms": { "type": "array", "minItems": 1, "maxItems": 6, "items": { "enum": ["x", "linkedin", "instagram", "tiktok", "youtube", "facebook"] }, "description": "Default: all six." },
          "title": { "type": "string", "maxLength": 300, "description": "YouTube title. Default: script title, else the first sentence." },
          "cta": { "type": "string", "maxLength": 500, "description": "Call to action appended after the body." },
          "link": { "type": "string", "maxLength": 2048, "pattern": "^https?://", "description": "Landing page; tagged with UTM parameters per platform." },
          "utm": {
            "type": "object",
            "additionalProperties": false,
            "required": ["campaign"],
            "properties": {
              "campaign": { "type": "string", "minLength": 1, "maxLength": 100 },
              "medium": { "type": "string", "minLength": 1, "maxLength": 100, "description": "Default: social" },
              "source": { "type": "string", "minLength": 1, "maxLength": 100, "description": "Default: the platform id (x, linkedin, ...)." },
              "content": { "type": "string", "minLength": 1, "maxLength": 100 },
              "term": { "type": "string", "minLength": 1, "maxLength": 100 },
              "normalize": { "type": "boolean", "description": "Default true: lowercase values and replace spaces with underscores." }
            }
          },
          "hashtags": { "type": "array", "maxItems": 60, "items": { "type": "string", "minLength": 1, "maxLength": 100 } },
          "max_hashtags": { "type": "integer", "minimum": 0, "maximum": 30, "description": "Per-post cap (never above a platform's hard cap). Defaults: X 2, LinkedIn 5, Instagram 5, TikTok 5, YouTube 3, Facebook 3." },
          "accounts": {
            "type": "object",
            "additionalProperties": false,
            "description": "Optional account per platform, copied into the drafts for schedule_queue (LinkedIn: author URN; Facebook: page id).",
            "properties": {
              "x": { "type": "string", "maxLength": 200 },
              "linkedin": { "type": "string", "maxLength": 200 },
              "instagram": { "type": "string", "maxLength": 200 },
              "tiktok": { "type": "string", "maxLength": 200 },
              "youtube": { "type": "string", "maxLength": 200 },
              "facebook": { "type": "string", "maxLength": 200 }
            }
          }
        }
      },
      "output_schema": {
        "type": "object",
        "required": ["posts", "generated_at", "warnings"],
        "properties": {
          "posts": {
            "type": "array",
            "items": {
              "type": "object",
              "required": ["platform", "text", "hashtags", "length", "limit", "length_method", "within_limit", "truncated", "notes"],
              "properties": {
                "platform": { "type": "string" },
                "account": { "type": "string" },
                "text": { "type": "string" },
                "title": { "type": "string" },
                "link": { "type": "string" },
                "link_in_text": { "type": "boolean" },
                "hashtags": { "type": "array", "items": { "type": "string" } },
                "length": { "type": "integer" },
                "limit": { "type": "integer" },
                "length_method": { "enum": ["x_weighted", "code_points", "utf8_bytes"] },
                "title_length": { "type": "integer" },
                "title_limit": { "type": "integer" },
                "within_limit": { "type": "boolean" },
                "truncated": { "type": "boolean" },
                "notes": { "type": "array", "items": { "type": "string" } }
              }
            }
          },
          "generated_at": { "type": "string", "format": "date-time" },
          "warnings": { "type": "array", "items": { "type": "string" } }
        }
      }
    },
    {
      "name": "schedule_queue",
      "description": "Build an approval queue (JSON you keep as a file) from drafts: deduplicates by content hash per account (and against an existing queue), refuses identical X posts across accounts, places posts at explicit times or into local time slots in an IANA time zone (DST-correct), and caps posts per account per day. Every item starts as pending_approval. Writes nothing.",
      "side_effects": "none",
      "requires_confirmation": false,
      "input_schema": {
        "type": "object",
        "additionalProperties": false,
        "required": ["posts", "timezone"],
        "properties": {
          "posts": {
            "type": "array",
            "minItems": 1,
            "maxItems": 500,
            "items": {
              "type": "object",
              "required": ["platform", "account", "text"],
              "properties": {
                "platform": { "enum": ["x", "linkedin", "instagram", "tiktok", "youtube", "facebook"] },
                "account": { "type": "string", "minLength": 1, "maxLength": 200 },
                "text": { "type": "string", "minLength": 1, "maxLength": 10000 },
                "title": { "type": "string", "maxLength": 300 },
                "link": { "type": "string", "maxLength": 2048 },
                "publish_at": { "type": "string", "maxLength": 40, "description": "ISO date-time with Z/offset, or local YYYY-MM-DDTHH:MM in timezone." }
              }
            }
          },
          "timezone": { "type": "string", "minLength": 1, "maxLength": 64, "description": "IANA time zone for slots and local labels." },
          "slots": {
            "type": "object",
            "additionalProperties": false,
            "required": ["start_date", "times"],
            "description": "Local posting times for posts without publish_at.",
            "properties": {
              "start_date": { "type": "string", "pattern": "^\\d{4}-\\d{2}-\\d{2}$" },
              "times": { "type": "array", "minItems": 1, "maxItems": 24, "items": { "type": "string", "pattern": "^([01]\\d|2[0-3]):[0-5]\\d$" } },
              "days": { "type": "array", "minItems": 1, "maxItems": 7, "items": { "enum": ["MO", "TU", "WE", "TH", "FR", "SA", "SU"] } }
            }
          },
          "max_per_account_per_day": { "type": "integer", "minimum": 1, "maximum": 25, "description": "Default 3." },
          "min_gap_minutes": { "type": "integer", "minimum": 0, "maximum": 1440, "description": "Minimum gap between two posts of the same account. Default 60." },
          "horizon_days": { "type": "integer", "minimum": 1, "maximum": 366, "description": "How far ahead auto-scheduling may look. Default 60." },
          "existing_queue": {
            "type": "object",
            "properties": {
              "items": {
                "type": "array",
                "maxItems": 5000,
                "items": {
                  "type": "object",
                  "properties": { "content_hash": { "type": "string" }, "platform": { "type": "string" }, "account": { "type": "string" }, "publish_at": { "type": "string" } }
                }
              }
            }
          }
        }
      },
      "output_schema": {
        "type": "object",
        "required": ["queue", "added", "skipped", "warnings"],
        "properties": {
          "queue": {
            "type": "object",
            "required": ["format", "timezone", "generated_at", "items"],
            "properties": {
              "format": { "type": "string" },
              "timezone": { "type": "string" },
              "generated_at": { "type": "string", "format": "date-time" },
              "items": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": ["id", "content_hash", "idempotency_key", "platform", "account", "text", "publish_at", "status", "approved"],
                  "properties": {
                    "id": { "type": "string" },
                    "content_hash": { "type": "string" },
                    "idempotency_key": { "type": "string" },
                    "platform": { "type": "string" },
                    "account": { "type": "string" },
                    "text": { "type": "string" },
                    "title": { "type": "string" },
                    "link": { "type": "string" },
                    "publish_at": { "type": "string" },
                    "publish_at_local": { "type": "string" },
                    "status": { "type": "string" },
                    "approved": { "type": "boolean" }
                  }
                }
              }
            }
          },
          "added": { "type": "integer" },
          "skipped": {
            "type": "array",
            "items": { "type": "object", "required": ["index", "reason"], "properties": { "index": { "type": "integer" }, "reason": { "type": "string" }, "duplicate_of": { "type": "string" } } }
          },
          "warnings": { "type": "array", "items": { "type": "string" } }
        }
      }
    },
    {
      "name": "publish",
      "description": "External write: publish ONE approved queue item through an official API with your own OAuth token: X API v2 POST /2/tweets, LinkedIn POST /rest/posts, Facebook Graph POST /{page-id}/feed, or YouTube videos.insert (creates a resumable upload session with metadata only; you upload the video bytes). Requires \"confirm\": true and item.approved true. Uses a deterministic idempotency key; skips keys in published_keys; retries only on HTTP 429.",
      "side_effects": "external_write",
      "requires_confirmation": true,
      "input_schema": {
        "type": "object",
        "additionalProperties": false,
        "required": ["item"],
        "properties": {
          "item": {
            "type": "object",
            "required": ["platform", "text", "approved"],
            "properties": {
              "platform": { "enum": ["x", "linkedin", "instagram", "tiktok", "youtube", "facebook"] },
              "account": { "type": "string", "maxLength": 200, "description": "LinkedIn: author URN (urn:li:person:... or urn:li:organization:...). Facebook: numeric page id. X/YouTube: label only (the token decides the account)." },
              "text": { "type": "string", "minLength": 1, "maxLength": 10000 },
              "title": { "type": "string", "maxLength": 300 },
              "link": { "type": "string", "maxLength": 2048 },
              "publish_at": { "type": "string", "maxLength": 40 },
              "content_hash": { "type": "string", "maxLength": 128 },
              "idempotency_key": { "type": "string", "maxLength": 128 },
              "status": { "type": "string", "maxLength": 40 },
              "approved": { "type": "boolean", "description": "Must be true: the owner approved this exact content." }
            }
          },
          "youtube": {
            "type": "object",
            "additionalProperties": false,
            "required": ["video_size_bytes", "video_mime_type", "made_for_kids"],
            "properties": {
              "video_size_bytes": { "type": "integer", "minimum": 1, "maximum": 274877906944 },
              "video_mime_type": { "type": "string", "pattern": "^video/[a-z0-9.+-]{1,60}$" },
              "made_for_kids": { "type": "boolean", "description": "Your self-declaration (status.selfDeclaredMadeForKids)." },
              "privacy_status": { "enum": ["private", "unlisted", "public"], "description": "Default private." },
              "category_id": { "type": "string", "pattern": "^\\d{1,3}$", "description": "Default 22 (People & Blogs)." },
              "tags": { "type": "array", "maxItems": 100, "items": { "type": "string", "minLength": 1, "maxLength": 100 } }
            }
          },
          "linkedin_version": { "type": "string", "pattern": "^20\\d{4}$", "description": "LinkedIn-Version header (YYYYMM). Default 202610." },
          "graph_api_version": { "type": "string", "pattern": "^v\\d{1,2}\\.\\d$", "description": "Facebook Graph API version. Default v23.0." },
          "published_keys": { "type": "array", "maxItems": 10000, "items": { "type": "string", "maxLength": 128 }, "description": "Idempotency keys you already published; matching items are skipped without any request." },
          "publish_now": { "type": "boolean", "description": "Allow publishing an item whose publish_at is more than 5 minutes in the future." },
          "max_rate_limit_wait_seconds": { "type": "integer", "minimum": 0, "maximum": 60, "description": "Longest Retry-After wait honoured on HTTP 429 (default 10)." },
          "confirm": { "type": "boolean", "description": "Must be true. Set only after the owner approved this exact post for this account." }
        }
      },
      "output_schema": {
        "type": "object",
        "required": ["platform", "status", "published", "already_published", "idempotency_key", "request", "attempts", "notes"],
        "properties": {
          "platform": { "type": "string" },
          "status": { "enum": ["published", "already_published", "upload_session_created"] },
          "published": { "type": "boolean" },
          "already_published": { "type": "boolean" },
          "idempotency_key": { "type": "string" },
          "remote_id": { "type": "string" },
          "url": { "type": "string" },
          "upload_url": { "type": "string" },
          "request": { "type": "object" },
          "attempts": { "type": "integer" },
          "notes": { "type": "array", "items": { "type": "string" } }
        }
      }
    }
  ],
  "permissions": {
    "filesystem": "none",
    "network": ["api.x.com", "api.linkedin.com", "graph.facebook.com", "www.googleapis.com"],
    "credentials": ["X_USER_ACCESS_TOKEN", "LINKEDIN_ACCESS_TOKEN", "FACEBOOK_PAGE_ACCESS_TOKEN", "YOUTUBE_ACCESS_TOKEN"],
    "notes": "Network and credentials are used only by publish, and only the one platform of the item being published. draft_posts and schedule_queue run fully offline. Each token must be your own OAuth token for an account you control."
  },
  "io_types": {
    "social_posts": { "textual": false, "description": "Array of {platform, account?, text, title?, link?, hashtags, length, limit, within_limit} drafts produced by social-publisher." },
    "post_queue": { "textual": false, "description": "{format: 'agentrove.social-queue/1', timezone, generated_at, items:[{id, content_hash, idempotency_key, platform, account, text, title?, link?, publish_at, status, approved}]}" }
  },
  "io": {
    "inputs": [
      { "name": "brief", "type": "text" },
      { "name": "script", "type": "script" },
      { "name": "posts", "type": "social_posts" },
      { "name": "existing_queue", "type": "post_queue" }
    ],
    "outputs": [
      { "name": "posts", "type": "social_posts" },
      { "name": "queue", "type": "post_queue" }
    ]
  },
  "runtimes": [
    { "id": "node", "version": ">=20", "tested": true },
    { "id": "claude-code", "tested": false, "notes": "MCP stdio server; not yet verified in Claude Code by AgentRove" }
  ],
  "external_costs": "None for draft_posts and schedule_queue. publish calls the platform's official API with your own token: X API v2 write access is a paid or metered product depending on your X developer plan; the LinkedIn, Facebook Graph and YouTube Data APIs are free within their quotas (YouTube videos.insert costs quota units). Platform terms apply to your account."
}

Find an agent

Do not include passwords, keys, customer data or other confidential details.
Rule-based matching is free during the public beta (fair use).