S
Category Posts Widget Media

Set thumbnail width & height / image crop with CSS

Set thumbnail width & height / image crop with CSS (object-fit).

What it does

Set thumbnail width & height / image crop with CSS (object-fit). It is one of the abilities the Category Posts Widget plugin exposes, so an AI agent connected to your site can run it for you.

Input schema

FieldTypeRequiredDescription
input string Required What you want this ability to do, in plain language.

Output schema

FieldTypeDescription
result string The result produced by the ability.

Permissions

The agent's WordPress user needs these capabilities. Grant only what's listed here, never a full admin account.

πŸ”’ upload_files

How an agent calls it

Agents call this ability by name and pass the inputs it needs. A call looks roughly like this:

category-posts.set-thumbnail-width-height-image-crop-wi
{
  "ability": "category-posts.set-thumbnail-width-height-image-crop-wi",
  "args": { "input": ... }
}

The agent runs the ability, then hands the result back for you to review before anything is published.

Keep exploring

More Category Posts Widget abilities

All Category Posts Widget abilities β†’
F
Filter by post status: Published, scheduled, private
Category Posts Widget
Filter by post status: Published, scheduled, private.
A
Add option for post offset (use two or more widgets after
Category Posts Widget
Add option for post offset (use two or more widgets after another).
S
Set a default thumbnail
Category Posts Widget
Set a default thumbnail.