太字テキスト
文字と数字を太字のUnicode文字に変換します。
ベース URL:https://happytails.ai · 公開 API は接続されていません
処理
Unicodeによる装飾では、文字自体が変わります。フォントやスクリーンリーダーによって対応状況が異なります。
API に送信した入力データはサーバーで処理されます。
リクエストパラメータ
JSON オブジェクトを送信してください。未定義のプロパティがあるとリクエストは拒否されます。省略したオプションには以下の既定値が使われます。数値と真偽値は引用符で囲まず、JSON の値として入力してください。
input は初期値が空の文字列で、最大 1,000,000 文字です。入力や設定を変更すると結果が更新されます。文字を入力するたびに結果を確認できます。
このエンドポイントでは files 配列を受け付けません。
オプション
オプションは不要です。options を省略するか、空のオブジェクトを送信してください。
成功時のレスポンス
HTTP 200 の応答には tool と result が含まれます。テキストは result.text に入り、解析済みの JSON が result.data に入る場合もあります。生成されたファイルは result.files に格納され、各ファイルには name、mime、bytes、base64 が含まれます。保存する前にバイト列をデコードしてください。別の種類の結果を返す操作では、ファイル配列が空でもテキストが null でも有効です。
出力の完全なスキーマ
{
"type": "object",
"required": [
"tool",
"result"
],
"properties": {
"tool": {
"type": "string"
},
"result": {
"type": "object",
"required": [
"text",
"files"
],
"properties": {
"text": {
"type": [
"string",
"null"
]
},
"data": {
"description": "Parsed JSON when the textual result is JSON."
},
"name": {
"type": "string"
},
"mime": {
"type": "string"
},
"files": {
"type": "array",
"items": {
"type": "object",
"required": [
"name",
"mime",
"bytes",
"base64"
],
"properties": {
"name": {
"type": "string"
},
"mime": {
"type": "string"
},
"bytes": {
"type": "integer"
},
"base64": {
"type": "string",
"contentEncoding": "base64"
}
}
}
}
}
}
}
}制限とエラー
このエンドポイントには以下の制限が適用されます。動作に関する注記に記載された形式、ページ数、長さ、モデルの制限も適用されます。ブラウザ画面と API では制限が異なる場合があります。
request_bytes- 8388608
input_characters- 1000000
files_bytes- 5242880
max_files- 0
timeout_seconds- 12
無効なリクエストには、code と message を含む error オブジェクトが返ります。HTTP ステータスコード、再試行、タイムアウト、同時リクエストをご覧ください。処理は同期的に行われ、同じレスポンスで結果が返ります。
リクエストの完全なスキーマ
JSON スキーマを展開
{
"type": "object",
"additionalProperties": false,
"properties": {
"input": {
"type": "string",
"maxLength": 1000000,
"default": "",
"description": "Plain text input. File tools use files instead unless otherwise documented."
},
"options": {
"type": "object",
"additionalProperties": false,
"properties": {}
}
}
}ブラウザを自動化する場合は、共通の WebMCP ガイド を使い、ブラウザが実際に公開しているツールを確認してください。
curl https://happytails.ai/api/v1/tools/bold-text/run \
-H "Content-Type: application/json" \
--data '{"input": "ABC", "options": {}}'const payload = {
"input": "ABC",
"options": {}
};
const response = await fetch(
"https://happytails.ai/api/v1/tools/bold-text/run",
{
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify(payload)
}
);
const data = await response.json();
if (!response.ok) throw new Error(data.error.message);
console.log(data.result);import json
from urllib.request import Request, urlopen
payload = json.loads('{"input": "ABC", "options": {}}')
request = Request(
"https://happytails.ai/api/v1/tools/bold-text/run",
data=json.dumps(payload).encode(),
headers={"Content-Type": "application/json"},
)
with urlopen(request, timeout=200) as response:
result = json.load(response)
print(result){
"input": "ABC",
"options": {}
}API のオリジンと入力値をアプリケーションに合わせて変更してください。
{
"tool": "bold-text",
"result": {
"text": "\ud835\udc00\ud835\udc01\ud835\udc02",
"files": [],
"name": "result.txt",
"mime": "text/plain;charset=utf-8"
}
}{
"error": {
"code": "INVALID_INPUT",
"message": "Unknown request property. See the tool input schema."
}
}