rest_extract
Execute an HTTP request to extract specific fields using dot-notation paths. Returns only the extracted data, simplifying response handling.
Instructions
Execute an HTTP request, then extract specific fields using dot-notation paths. Returns only the extracted data. Example: fields ["data.items[].name", "meta.total"]. Base URL: https://api.example.com/v1. AUTONOMOUS CONTEXT RESOLUTION — When the endpoint comes from code analysis (feature-port, migration, Vuex store dispatch, API service file): DO NOT call blindly with missing parameters. First investigate the source code context:
Path params (:id, :slug) — find actual values in component data, props, route params, or hardcoded in the store action
Query params — inspect the Vuex action, API service call, or component for the params/query object passed to the request
Request body — check what payload is dispatched or composed in the action
If a value is purely dynamic (e.g. user-selected at runtime), use a representative test value and document the assumption. The goal is to make a real API call that returns representative data for type extraction.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | Request body (for POST/PUT/PATCH) | |
| query | No | Query string parameters | |
| fields | Yes | Dot-notation paths to extract, e.g. ["data.id", "data.items[].name", "meta.total"]. Use [] to iterate array items. | |
| method | Yes | HTTP method | |
| headers | No | Additional request headers | |
| endpoint | Yes | Path only (e.g. "/users") |