Søk lastes bare når du bruker det. Bla gjennom alle kategoriene nedenfor.

MCP-verktøy

Vis tilkoblede kontoer

sosoapi_list_connected_accounts

Vis kontoene i sosiale medier (Instagram, Threads, Facebook, YouTube) som er koblet til et arbeidsområde, med tilkoblingstilstand og funksjonsfakta. Bruk ID-ene deres som social_account_id ved planlegging eller kommentering. Oppgi workspace_id: en forespørsel uten avvises når eksplisitt målvalg håndheves.

Les som Markdown

Profiler og transporter

Profiler: core, full · Transporter: stdio, http

Velg core eller full for å kontrollere hvilke verktøy klienten ser; dette endrer ikke tillatelsene. Lokal filopplasting krever stdio og er utilgjengelig over HTTP. Angi SOSOAPI_OUTPUT_SCHEMAS=1 for å inkludere utdataskjemaer i oppdagelsen. Verktøy returnerer strukturerte resultater med eller uten den innstillingen.

Tillatelser og sideeffekter

Merknader hjelper klienter med å beskrive et verktøy. Hvert kall kontrollerer fortsatt brukerens autentisering, rolle, ressurstilgang og funksjonstillatelser.

{
  "readOnlyHint": true,
  "destructiveHint": false,
  "idempotentHint": true,
  "openWorldHint": false
}

Inndatafelter

Påkrevd betyr påkrevd i foreldreobjektet og valgt gren. Et påkrevd underfelt gjør ikke en valgfri forelder påkrevd. Reglene og feltnavnene nedenfor er kopiert fra kontrakten.

Inndatafelter
Felt / grenType / påkrevdBegrensninger
$objectPåkrevd i forelder
  • additionalProperties: false
workspace_idstringValgfritt / element
  • format: "uuid"
include_authorization_grantbooleanValgfritt / element—
Fullstendig JSON Schema
{
  "type": "object",
  "properties": {
    "workspace_id": {
      "type": "string",
      "format": "uuid"
    },
    "include_authorization_grant": {
      "type": "boolean"
    }
  },
  "additionalProperties": false
}

Strukturert utdata

Dette skjemaet beskriver structuredContent i et vellykket verktøyresultat. MCP-svaret inkluderer også content og kan sette isError når et kall mislykkes. Ved publisering, les innleggets endelige resultat i stedet for å regne en akseptert forespørsel eller et tekstsvar som bekreftelse. Den lenkede API-operasjonen forklarer tillatelser og regler for nye forsøk.

Påkrevd betyr påkrevd i foreldreobjektet og valgt gren. Et påkrevd underfelt gjør ikke en valgfri forelder påkrevd. Reglene og feltnavnene nedenfor er kopiert fra kontrakten.

Strukturert utdata
Felt / grenType / påkrevdBegrensninger
$objectPåkrevd i forelder
  • additionalProperties: false
accountsarrayPåkrevd i forelder—
accounts[]objectValgfritt / element
  • additionalProperties: false
accounts[].idstringPåkrevd i forelder
  • format: "uuid"
accounts[].platformstringPåkrevd i forelder
  • enum: ["instagram","threads","facebook","tiktok","linkedin","youtube","x"]
accounts[].handlestring | nullPåkrevd i forelder—
accounts[].handleanyOf 1stringPåkrevd i forelder—
accounts[].handleanyOf 2nullPåkrevd i forelder—
accounts[].statusstringPåkrevd i forelder
  • enum: ["valid","expiring_soon","expired","disconnected"]
accounts[].expires_atstring | nullPåkrevd i forelder—
accounts[].expires_atanyOf 1stringPåkrevd i forelder—
accounts[].expires_atanyOf 2nullPåkrevd i forelder—
accounts[].created_atstringPåkrevd i forelder—
accounts[].avatar_urlstring | nullValgfritt / element—
accounts[].avatar_urlanyOf 1stringValgfritt / element—
accounts[].avatar_urlanyOf 2nullValgfritt / element—
accounts[].follower_countinteger | nullValgfritt / element—
accounts[].follower_countanyOf 1integerValgfritt / element
  • minimum: 0
  • maximum: 9007199254740991
accounts[].follower_countanyOf 2nullValgfritt / element—
accounts[].post_countinteger | nullValgfritt / element—
accounts[].post_countanyOf 1integerValgfritt / element
  • minimum: 0
  • maximum: 9007199254740991
accounts[].post_countanyOf 2nullValgfritt / element—
accounts[].auto_sync_enabledbooleanValgfritt / element—
accounts[].last_synced_atstring | nullValgfritt / element—
accounts[].last_synced_atanyOf 1stringValgfritt / element—
accounts[].last_synced_atanyOf 2nullValgfritt / element—
accounts[].workspace_idstring | nullValgfritt / element—
accounts[].workspace_idanyOf 1stringValgfritt / element
  • format: "uuid"
accounts[].workspace_idanyOf 2nullValgfritt / element—
accounts[].platform_user_idstring | nullValgfritt / element—
accounts[].platform_user_idanyOf 1stringValgfritt / element
  • minLength: 1
accounts[].platform_user_idanyOf 2nullValgfritt / element—
accounts[].instagram_login_modestring | nullValgfritt / element—
accounts[].instagram_login_modeanyOf 1stringValgfritt / element
  • enum: ["instagram_login","facebook_login"]
accounts[].instagram_login_modeanyOf 2nullValgfritt / element—
accounts[].facebook_page_idstring | nullValgfritt / element—
accounts[].facebook_page_idanyOf 1stringValgfritt / element
  • minLength: 1
accounts[].facebook_page_idanyOf 2nullValgfritt / element—
accounts[].blocked_untilstring | nullValgfritt / element—
accounts[].blocked_untilanyOf 1stringValgfritt / element—
accounts[].blocked_untilanyOf 2nullValgfritt / element—
accounts[].block_reasonstring | nullValgfritt / element—
accounts[].block_reasonanyOf 1stringValgfritt / element
  • enum: ["transient","account_block","auth_invalid","permanent"]
accounts[].block_reasonanyOf 2nullValgfritt / element—
accounts[].block_subcodeinteger | nullValgfritt / element—
accounts[].block_subcodeanyOf 1integerValgfritt / element
  • minimum: -9007199254740991
  • maximum: 9007199254740991
accounts[].block_subcodeanyOf 2nullValgfritt / element—
accounts[].block_countintegerValgfritt / element
  • minimum: 0
  • maximum: 9007199254740991
accounts[].last_block_atstring | nullValgfritt / element—
accounts[].last_block_atanyOf 1stringValgfritt / element—
accounts[].last_block_atanyOf 2nullValgfritt / element—
accounts[].health_statestringPåkrevd i forelder
  • enum: ["ready","action_required","temporarily_unavailable","publishing_restricted","disconnected","unknown"]
accounts[].health_messagestringPåkrevd i forelder
  • minLength: 1
  • maxLength: 500
accounts[].health_observed_atstring | nullPåkrevd i forelder—
accounts[].health_observed_atanyOf 1stringPåkrevd i forelder—
accounts[].health_observed_atanyOf 2nullPåkrevd i forelder—
accounts[].authorization_grantobjectValgfritt / element—
accounts[].authorization_grantoneOf 1objectValgfritt / element
  • additionalProperties: false
accounts[].authorization_grant.granted_permissionsoneOf 1arrayPåkrevd i forelder—
accounts[].authorization_grant.granted_permissions[]oneOf 1stringValgfritt / element
  • minLength: 1
accounts[].authorization_grant.inventory_sourceoneOf 1stringPåkrevd i forelder
  • enum: ["oauth_token_response","provider_token_debug","provider_permissions_endpoint"]
accounts[].authorization_grant.inventory_exactoneOf 1booleanPåkrevd i forelder
  • const: true
accounts[].authorization_grant.observed_atoneOf 1stringPåkrevd i forelder
  • minLength: 1
accounts[].authorization_grant.provider_api_versiononeOf 1stringPåkrevd i forelder
  • minLength: 1
  • maxLength: 40
accounts[].authorization_grant.oauth_provideroneOf 1stringPåkrevd i forelder
  • enum: ["instagram","threads","meta","google"]
accounts[].authorization_grant.oauth_subject_idoneOf 1stringPåkrevd i forelder
  • minLength: 1
accounts[].authorization_grantoneOf 2objectValgfritt / element
  • additionalProperties: false
accounts[].authorization_grant.granted_permissionsoneOf 2arrayPåkrevd i forelder
  • minItems: 0
  • maxItems: 0
accounts[].authorization_grant.granted_permissions[]oneOf 2any JSON valueValgfritt / element—
accounts[].authorization_grant.inventory_sourceoneOf 2stringPåkrevd i forelder
  • const: "unavailable"
accounts[].authorization_grant.inventory_exactoneOf 2booleanPåkrevd i forelder
  • const: false
accounts[].authorization_grant.observed_atoneOf 2nullPåkrevd i forelder—
accounts[].authorization_grant.provider_api_versiononeOf 2nullPåkrevd i forelder—
accounts[].authorization_grant.oauth_provideroneOf 2string | nullPåkrevd i forelder—
accounts[].authorization_grant.oauth_provideroneOf 2 / anyOf 1stringPåkrevd i forelder
  • enum: ["instagram","threads","meta","google"]
accounts[].authorization_grant.oauth_provideroneOf 2 / anyOf 2nullPåkrevd i forelder—
accounts[].authorization_grant.oauth_subject_idoneOf 2string | nullPåkrevd i forelder—
accounts[].authorization_grant.oauth_subject_idoneOf 2 / anyOf 1stringPåkrevd i forelder
  • minLength: 1
accounts[].authorization_grant.oauth_subject_idoneOf 2 / anyOf 2nullPåkrevd i forelder—
accounts[].current_capability_snapshot_idstring | nullPåkrevd i forelder—
accounts[].current_capability_snapshot_idanyOf 1stringPåkrevd i forelder
  • format: "uuid"
accounts[].current_capability_snapshot_idanyOf 2nullPåkrevd i forelder—
accounts[].capability_factsarrayPåkrevd i forelder—
accounts[].capability_facts[]objectValgfritt / element
  • additionalProperties: false
accounts[].capability_facts[].capabilitystringPåkrevd i forelder
  • enum: ["can_publish_text","can_publish_image","can_publish_video","can_publish_reel","can_publish_carousel","can_publish_first_comment","can_publish_topic_tag","can_publish_link","can_upload_video","can_set_title","can_set_description","can_set_thumbnail","can_set_privacy_status","can_publish_story","can_invite_collaborators","can_tag_products","can_publish_trial_reel","can_publish_partnership","can_delete_media","can_publish_reply","can_quote_post","can_repost","can_publish_poll","can_publish_gif","can_publish_text_attachment","can_publish_ghost_post","can_tag_location","can_crossshare_to_instagram","can_auto_publish_text","can_delete_post","can_publish_multi_image","can_target_post","can_backdate_post","can_manage_native_schedule","can_update_video","can_delete_video","can_set_brand_partner"]
accounts[].capability_facts[].observed_allowedboolean | nullPåkrevd i forelder—
accounts[].capability_facts[].observed_allowedanyOf 1booleanPåkrevd i forelder—
accounts[].capability_facts[].observed_allowedanyOf 2nullPåkrevd i forelder—
accounts[].capability_facts[].availabilitystringPåkrevd i forelder
  • enum: ["available","unavailable","unknown","documented_ambiguous"]
accounts[].capability_facts[].reason_codestringPåkrevd i forelder
  • pattern: "^[a-z0-9_]+$"
accounts[].capability_facts[].observed_atstringPåkrevd i forelder—
accounts[].capability_facts[].valid_untilstringPåkrevd i forelder—
accounts[].capability_facts[].provider_api_versionstringPåkrevd i forelder
  • minLength: 1
  • maxLength: 40
accounts[].capability_facts[].required_permissionsarrayPåkrevd i forelder—
accounts[].capability_facts[].required_permissions[]stringValgfritt / element
  • minLength: 1
accounts[].capability_facts[].granted_permissionsarrayPåkrevd i forelder—
accounts[].capability_facts[].granted_permissions[]stringValgfritt / element
  • minLength: 1
accounts[].capability_facts[].account_eligibilityobjectPåkrevd i forelder
  • additionalProperties: {}
accounts[].capability_facts[].account_eligibility.*any JSON valueValgfritt / element—
Fullstendig JSON Schema
{
  "type": "object",
  "properties": {
    "accounts": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "platform": {
            "type": "string",
            "enum": [
              "instagram",
              "threads",
              "facebook",
              "tiktok",
              "linkedin",
              "youtube",
              "x"
            ]
          },
          "handle": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "valid",
              "expiring_soon",
              "expired",
              "disconnected"
            ]
          },
          "expires_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string"
          },
          "avatar_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "follower_count": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "post_count": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "auto_sync_enabled": {
            "type": "boolean"
          },
          "last_synced_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "workspace_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ]
          },
          "platform_user_id": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "instagram_login_mode": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "instagram_login",
                  "facebook_login"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "facebook_page_id": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "blocked_until": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "block_reason": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "transient",
                  "account_block",
                  "auth_invalid",
                  "permanent"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "block_subcode": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "block_count": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "last_block_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "health_state": {
            "type": "string",
            "enum": [
              "ready",
              "action_required",
              "temporarily_unavailable",
              "publishing_restricted",
              "disconnected",
              "unknown"
            ]
          },
          "health_message": {
            "type": "string",
            "minLength": 1,
            "maxLength": 500
          },
          "health_observed_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "authorization_grant": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "granted_permissions": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    }
                  },
                  "inventory_source": {
                    "type": "string",
                    "enum": [
                      "oauth_token_response",
                      "provider_token_debug",
                      "provider_permissions_endpoint"
                    ]
                  },
                  "inventory_exact": {
                    "type": "boolean",
                    "const": true
                  },
                  "observed_at": {
                    "type": "string",
                    "minLength": 1
                  },
                  "provider_api_version": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 40
                  },
                  "oauth_provider": {
                    "type": "string",
                    "enum": [
                      "instagram",
                      "threads",
                      "meta",
                      "google"
                    ]
                  },
                  "oauth_subject_id": {
                    "type": "string",
                    "minLength": 1
                  }
                },
                "required": [
                  "granted_permissions",
                  "inventory_source",
                  "inventory_exact",
                  "observed_at",
                  "provider_api_version",
                  "oauth_provider",
                  "oauth_subject_id"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "granted_permissions": {
                    "minItems": 0,
                    "maxItems": 0,
                    "type": "array",
                    "items": {
                      "not": {}
                    }
                  },
                  "inventory_source": {
                    "type": "string",
                    "const": "unavailable"
                  },
                  "inventory_exact": {
                    "type": "boolean",
                    "const": false
                  },
                  "observed_at": {
                    "type": "null"
                  },
                  "provider_api_version": {
                    "type": "null"
                  },
                  "oauth_provider": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "instagram",
                          "threads",
                          "meta",
                          "google"
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "oauth_subject_id": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "granted_permissions",
                  "inventory_source",
                  "inventory_exact",
                  "observed_at",
                  "provider_api_version",
                  "oauth_provider",
                  "oauth_subject_id"
                ],
                "additionalProperties": false
              }
            ]
          },
          "current_capability_snapshot_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ]
          },
          "capability_facts": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "capability": {
                  "type": "string",
                  "enum": [
                    "can_publish_text",
                    "can_publish_image",
                    "can_publish_video",
                    "can_publish_reel",
                    "can_publish_carousel",
                    "can_publish_first_comment",
                    "can_publish_topic_tag",
                    "can_publish_link",
                    "can_upload_video",
                    "can_set_title",
                    "can_set_description",
                    "can_set_thumbnail",
                    "can_set_privacy_status",
                    "can_publish_story",
                    "can_invite_collaborators",
                    "can_tag_products",
                    "can_publish_trial_reel",
                    "can_publish_partnership",
                    "can_delete_media",
                    "can_publish_reply",
                    "can_quote_post",
                    "can_repost",
                    "can_publish_poll",
                    "can_publish_gif",
                    "can_publish_text_attachment",
                    "can_publish_ghost_post",
                    "can_tag_location",
                    "can_crossshare_to_instagram",
                    "can_auto_publish_text",
                    "can_delete_post",
                    "can_publish_multi_image",
                    "can_target_post",
                    "can_backdate_post",
                    "can_manage_native_schedule",
                    "can_update_video",
                    "can_delete_video",
                    "can_set_brand_partner"
                  ]
                },
                "observed_allowed": {
                  "anyOf": [
                    {
                      "type": "boolean"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "availability": {
                  "type": "string",
                  "enum": [
                    "available",
                    "unavailable",
                    "unknown",
                    "documented_ambiguous"
                  ]
                },
                "reason_code": {
                  "type": "string",
                  "pattern": "^[a-z0-9_]+$"
                },
                "observed_at": {
                  "type": "string"
                },
                "valid_until": {
                  "type": "string"
                },
                "provider_api_version": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 40
                },
                "required_permissions": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1
                  }
                },
                "granted_permissions": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1
                  }
                },
                "account_eligibility": {
                  "type": "object",
                  "propertyNames": {
                    "type": "string"
                  },
                  "additionalProperties": {}
                }
              },
              "required": [
                "capability",
                "observed_allowed",
                "availability",
                "reason_code",
                "observed_at",
                "valid_until",
                "provider_api_version",
                "required_permissions",
                "granted_permissions",
                "account_eligibility"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "id",
          "platform",
          "handle",
          "status",
          "expires_at",
          "created_at",
          "health_state",
          "health_message",
          "health_observed_at",
          "current_capability_snapshot_id",
          "capability_facts"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "accounts"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}

Eksempel på verktøykall

Disse eksemplene bruker fiktive verdier kontrollert mot skjemaene. Erstatt ID-ene med noen du har lov til å bruke, mediene med klare ressurser og datoene med bekreftet publiseringstidspunkt. Kontroller kontoens kvalifikasjon før en skriveoperasjon sendes inn. Siden sender ingen API-forespørsler.

{
  "name": "sosoapi_list_connected_accounts",
  "arguments": {}
}

structuredContent

{
  "accounts": []
}
Installer eller koble til MCP