{"uid":"cap_RFiV2A42tHxMR34E4iH5i","slug":"agent-rest-stop-fieldpick-json-path-filter-891f43ee","name":"Agent Rest Stop – FieldPick (JSON Path Filter)","description":"Keeps only the named JSON paths.","url":"https://agent-gas-station.agent-gas-station.workers.dev/v1/FieldPick?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"doc":{"type":"string"},"paths":{"type":"string"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_TVjQYMQYrt3AWspjC1s7A","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Filters a JSON document to retain only the specified named paths, discarding all other fields.","exampleAgentPrompt":"Take this JSON document and keep only the fields at 'user.name' and 'user.email' — strip everything else out.","exampleUseCases":[{"title":"Trim API response before storing","prompt":"I got a huge JSON response from the weather API — can you keep only the 'location.city', 'current.temp_f', and 'current.condition.text' fields and drop the rest before I save it?"},{"title":"Reduce LLM context payload size","prompt":"Before I send this user profile JSON to the model, strip it down to just 'id', 'preferences.language', and 'preferences.timezone' — nothing else."},{"title":"Extract invoice fields for accounting","prompt":"From this raw invoice JSON, I only need 'invoice.number', 'invoice.total', and 'vendor.name' — can you filter out all the other fields?"}],"resultDescription":"A JSON object containing only the key-value pairs at the specified named paths, with all other fields removed. The response is a trimmed version of the input document projected onto the requested paths.","failureModes":["Invalid or malformed JSON in 'doc' field — returns error or empty result","Path strings that don't exist in the document — those paths silently omitted from output","Malformed 'paths' string (wrong delimiter or format) — may return empty or unexpected result","Empty 'paths' string — may return empty object","Oversized document exceeding worker memory or request size limits"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, cheap ($0.01 USDC) server-side JSON field projection without running code locally. Ideal for agents that receive verbose API responses and need to pass only relevant fields downstream — especially useful in chained workflows where payload size matters or context windows are limited.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T18:40:09.503Z","isFirstParty":false,"canonicalSlug":"agent-rest-stop-fieldpick-json-path-filter-891f43ee"}