MCP tool
Build an ordered image PDF locally
sosoapi_build_image_pdfBuild a downloadable image-only PDF and exact JPEG page previews from 1–20 authorized Workspace PNG/JPEG images in array order. Contains without cropping; Unicode title; square, portrait or landscape pages. At most 50 MiB output. Returns local files and source provenance. Independent of LinkedIn access; does not register a PDF as an image or publish.
Read as MarkdownProfiles and transports
Profiles: core, full · Transports: stdio
Choose core or full to control which tools your client sees; this does not change its permissions. Local file upload requires stdio and is unavailable over HTTP. Set SOSOAPI_OUTPUT_SCHEMAS=1 to include output schemas in discovery. Tools return structured results with or without that setting.
Permissions and side effects
Annotations help clients describe a tool. Each call still checks the user’s authentication, role, resource access and capability grants.
{
"readOnlyHint": false,
"destructiveHint": false,
"idempotentHint": false,
"openWorldHint": false
}- /assets-api/get: agent:operate · synchronous_http_response
Input fields
Required means required inside its parent object and selected branch. A required child does not make an optional parent required. Rules and field names below are copied from the contract.
| Field / branch | Type / required | Constraints |
|---|---|---|
$ | objectRequired in parent |
|
workspace_id | stringRequired in parent |
|
source_asset_ids | arrayRequired in parent |
|
source_asset_ids[] | integerOptional / item |
|
title | stringRequired in parent |
|
preset | stringRequired in parent |
|
Complete JSON Schema
{
"type": "object",
"properties": {
"workspace_id": {
"type": "string",
"format": "uuid"
},
"source_asset_ids": {
"minItems": 1,
"maxItems": 20,
"type": "array",
"items": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
}
},
"title": {
"type": "string",
"minLength": 1,
"maxLength": 200
},
"preset": {
"type": "string",
"enum": [
"square",
"portrait",
"landscape"
]
}
},
"required": [
"workspace_id",
"source_asset_ids",
"title",
"preset"
],
"additionalProperties": false
}Structured output
This schema describes structuredContent in a successful tool result. The MCP response also includes content and may set isError when a call fails. For publishing, read the post’s final result rather than treating an accepted request or text response as confirmation. The linked API operation explains permissions and retry rules.
Required means required inside its parent object and selected branch. A required child does not make an optional parent required. Rules and field names below are copied from the contract.
| Field / branch | Type / required | Constraints |
|---|---|---|
$ | objectRequired in parent |
|
stage | stringRequired in parent |
|
output_directory | stringOptional / item | — |
manifest_path | stringOptional / item | — |
preview_path | stringOptional / item | — |
retryable | booleanOptional / item | — |
$.* | any JSON valueOptional / item | — |
Complete JSON Schema
{
"type": "object",
"properties": {
"stage": {
"type": "string",
"enum": [
"ready",
"failed"
]
},
"output_directory": {
"type": "string"
},
"manifest_path": {
"type": "string"
},
"preview_path": {
"type": "string"
},
"retryable": {
"type": "boolean"
}
},
"required": [
"stage"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": {}
}Example tool call
These examples use fictional values checked against the schemas. Replace the IDs with ones you are authorized to use, the media with ready assets and the dates with your confirmed publishing time. Check the account’s eligibility before submitting a write. This page sends no API requests.
{
"name": "sosoapi_build_image_pdf",
"arguments": {
"workspace_id": "11111111-1111-4111-8111-111111111111",
"source_asset_ids": [
42,
43
],
"title": "圖片 / Images",
"preset": "portrait"
}
}structuredContent
{
"stage": "ready",
"output_directory": "/tmp/sosoapi-preparation-example",
"manifest_path": "/tmp/sosoapi-preparation-example/manifest.json",
"preview_path": "/tmp/sosoapi-preparation-example/preview.html",
"file_path": "/tmp/sosoapi-preparation-example/document.pdf",
"title": "圖片 / Images",
"preset": "portrait",
"pages": [
{
"source_asset_id": 42
},
{
"source_asset_id": 43
}
]
}