Bytedance TOS Document Process for Openclaw

A specialized skill for generating pre-signed URLs to preview and convert Bytedance TOS documents into PDF, images, or HTML formats.

volcengine-skills
v1.0.0
Mar 30, 2026
0
626
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install byted-tos-doc-process

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install byted-tos-doc-process using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Bytedance TOS Document Process?

The Bytedance TOS Document Process skill provides a robust framework for document manipulation within Bytedance's TOS environment. By leveraging the doc-preview feature via the Volcengine TOS SDK, this skill enables the generation of pre-signed URLs that carry specific processing instructions. This Openclaw Skills implementation is essential because standard SDK methods do not natively support all document processing keyword arguments, necessitating the use of query-parameter-based authorized URLs.

This utility is designed for developers who need to integrate high-fidelity document rendering directly into their applications. Whether you are building a document management system or an automated reporting tool, this skill simplifies the complex logic of x-tos-process parameters into an actionable workflow for any AI agent or automation script.

Bytedance TOS Document Process Use Cases

  • Converting enterprise documents stored in TOS to PDF for cross-platform compatibility.
  • Generating PNG or JPG thumbnails of specific pages for document gallery previews.
  • Rendering temporary HTML versions of documents for secure in-browser viewing.
  • Extracting specific page ranges and exporting them directly to a target TOS bucket as a batch job.
  • Retrieving document metadata, such as total page counts, without downloading the entire file.

How Bytedance TOS Document Process Works

  1. The process begins by initializing a TosClientV2 using environment variables for authentication including Access Keys and Region details.
  2. Developers define a dictionary of processing parameters, specifically setting x-tos-process to doc-preview and selecting a destination type.
  3. The client calls the pre_signed_url method, which signs the request and embeds the processing instructions into a temporary URL.
  4. The signed URL is then accessed via an HTTP GET request, triggering the Volcengine document processing engine.
  5. The resulting stream is either saved as a local file, rendered in a browser, or processed further based on the application logic within Openclaw Skills.

Bytedance TOS Document Process Setup

To utilize this skill, ensure you have the Volcengine TOS SDK installed and your credentials configured. Set the following environment variables in your Openclaw Skills workspace:

export TOS_ACCESS_KEY='your_access_key_here'
export TOS_SECRET_KEY='your_secret_key_here'
export TOS_ENDPOINT='your_tos_endpoint'
export TOS_REGION='your_region'

Install the required Python package:

pip install tos

Bytedance TOS Document Process Data Schema & Taxonomy

The skill utilizes specific query parameters to control the document engine. Below is a mapping of the primary parameters used in this Openclaw Skills component:

Parameter Description Potential Values
x-tos-process Initiates document processing doc-preview
x-tos-doc-dst-type Target output format pdf, png, jpg, html
x-tos-doc-page Specifies which page to process Integer (e.g., "1")
x-tos-doc-image-dpi Sets resolution for image output 96-600
image-mode Determines export behavior 1 (for batch export)

Bytedance TOS Document Process Advanced Features

  • Support for STS (Security Token Service) to enable temporary, high-security access for document processing.
  • Batch export capabilities that allow page-by-page extraction to secondary TOS buckets using placeholder templates.
  • Automated extraction of total page counts directly from the x-tos-total-page response header.
  • Two-step HTML conversion logic for secure token-based web previews within the Openclaw Skills ecosystem.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*