ブログ記事更新
update_entryUpdate a Hatena Blog entry by changing only the fields you specify while preserving omitted values. Set draft=false to publish or replace categories when provided.
Instructions
ブログ記事を更新する。指定した項目だけを差し替える差分更新で、省略した項目は現在の値がそのまま残る。下書きを公開するには draft=false を指定する。categories を渡すと現在のカテゴリは完全に置き換わる。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"entry_id": "<entry_id>"
},
"name": "update_entry"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| draft | No | 下書き状態。false にすると公開される | |
| title | No | 新しいタイトル | |
| content | No | 新しい本文(全文) | |
| updated | No | 投稿日時(ISO 8601)。省略時は現在の投稿日時を維持する | |
| entry_id | Yes | 更新するブログ記事の ID | |
| categories | No | カテゴリ名の配列。指定すると既存のカテゴリを置き換える | |
| custom_url | No | カスタム URL。省略時は変更しない | |
| content_type | No | 本文の記法。実際の解釈はブログの編集モード設定に従うため、ブログ側の設定と揃えること(既定: text/x-markdown) | |
| preview_shared | No | 下書きのプレビュー共有 URL を発行するか |