Get blog post content
Tool ID: kocodesk_blog_post_content_get
Summary
List the content blocks that make up a blog post's article body, in order.
When to use it
- Before editing or rearranging an article.
- To find the id of a specific paragraph or image block.
What you need
| Requirement | Required? |
|---|---|
| Metraclick connection | Yes |
| Tool enabled for your account | Yes |
| KocoDesk credentials | Yes |
| Blog plugin enabled for the site | Yes |
Parameters
| Parameter | Required? | Description |
|---|---|---|
post_id |
Yes | The post whose body you want to read. |
language |
No | Language of the content blocks (default is the primary language). |
What you get back
Each content block with its id, type and field values, sorted the way it appears in the article. Blocks in the main column are marked col_pos: 0 and sidebar blocks col_pos: 1.
Example prompts
Show me the content blocks in my latest blog post.
What's in the sidebar of blog post 42?
List the sections of the spring launch article so I can rewrite one.
Tips
- The post title and teaser are not content blocks โ read those with Get blog post.
- To change a block you find here, use Update content with its id.