Skip to content

Commit c38e7d8

Browse files
committed
docs(adapters): fill MCP capture payload and apply next_step
Capture envelopes include optional segment/strategy/admission fields. Zero-item apply points agents at inspect_url.
1 parent 486e0b7 commit c38e7d8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/content/docs/ruby-gem/reference/mcp-server.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ Analyzes a target URL and derives a reusable YAML draft (`items` selector + `enh
109109
- `strategy` _(string, optional)_: Request strategy (`auto`, `faraday`, `botasaurus`). Default: `auto`.
110110
- `items_selector` _(string, optional)_: Optional CSS selector hint for items.
111111
- **Return value:** Envelope with `payload.yaml` (string keys; same serializer as CLI `html2rss capture`). Treat as a draft: catalog feeds still need `directory.topics` and explicit channel `title`/`url`. Strive to keep `enhance: true`.
112-
- **payload:** Also `articles_count`, `channel_title`, `has_selectors`, and `requested_strategy`. Follow `next_step` (`validate_config` or `inspect_url`).
112+
- **payload:** Also `articles_count`, `channel_title`, `has_selectors`, `requested_strategy`, and when present `segment_strategy`, `selected_strategy`, `admission_drops`. Follow `next_step` (`validate_config` or `inspect_url`).
113113

114114
### `validate_config`
115115

@@ -130,7 +130,7 @@ Executes a validated feed configuration against a page and returns RSS 2.0 XML.
130130
- `config` _(object, optional)_: Feed configuration object (XOR `yaml`).
131131
- `yaml` _(string, optional)_: Feed configuration YAML (XOR `config`).
132132
- **Return value:** Envelope with `payload.rss` (RSS 2.0 XML) and `payload.item_count` from the rendered RSS `items` (not a regex over the XML).
133-
- **Error handling:** `isError: true` when the scrape produced no items (`payload.item_count: 0`), or on unhandled exceptions.
133+
- **Error handling:** `isError: true` when the scrape produced no items (`payload.item_count: 0`, `next_step: inspect_url`), or on unhandled exceptions.
134134

135135
## Resources Reference
136136

0 commit comments

Comments
 (0)