Jina Reader ACTION
Convert URL To LLM-Friendly Input
Converts a provided URL to an LLM-friendly input using Jina Reader. See the documentation
- Action
- Read only
- API key
- SDK
- MCP
IMPLEMENTATION
Call this tool
Connect a user's Jina Reader account once, then configure and run Convert URL To LLM-Friendly Input from your backend or agent.
import { PipedreamClient } from "@pipedream/sdk"
const pd = new PipedreamClient({
projectId: process.env.PIPEDREAM_PROJECT_ID!,
clientId: process.env.PIPEDREAM_CLIENT_ID!,
clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
projectEnvironment: "production",
})
const result = await pd.actions.run({
id: "jina_reader-convert-to-llm-friendly-input",
externalUserId: "{external_user_id}", // any stable ID for this user in your system
configuredProps: {
jina_reader: { authProvisionId: "apn_xxxxxxx" },
url: "URL",
contentFormat: "Content Format",
},
})
console.log(result)curl -X POST https://api.pipedream.com/v1/connect/{project_id}/actions/run \
-H "Content-Type: application/json" \
-H "X-PD-Environment: production" \
-H "Authorization: Bearer {access_token}" \
-d '{
"external_user_id": "{external_user_id}",
"id": "jina_reader-convert-to-llm-friendly-input",
"configured_props": {
"jina_reader": { "authProvisionId": "apn_xxxxxxx" },
"url": "URL",
"contentFormat": "Content Format"
}
}'// accessToken: mint a short-lived token with the Connect SDK — see the MCP guide
const transport = new StreamableHTTPClientTransport(
new URL("https://remote.mcp.pipedream.net/v3"),
{
requestInit: {
headers: {
Authorization: `Bearer ${accessToken}`,
"x-pd-project-id": "{project_id}",
"x-pd-environment": "production",
"x-pd-external-user-id": "{external_user_id}", // any stable ID for this user in your system
"x-pd-app-slug": "jina_reader",
},
},
},
)
const mcp = new Client({ name: "my-agent", version: "1.0.0" })
await mcp.connect(transport)
const { tools } = await mcp.listTools()
// listTools() hands your model this tool's input schema, so it can
// fill the arguments itself:
const result = await mcp.callTool({
name: "jina_reader-convert-to-llm-friendly-input",
arguments: {
url: "URL",
contentFormat: "Content Format",
},
})SCHEMA
Inputs
Pipedream supplies the connected account. Your application provides the operation-specific values below. Dynamic inputs are resolved against that user's account.
| Property | Type | Description |
|---|---|---|
url URL | string | The URL to convert to an LLM-friendly input. Optional |
contentFormat Content Format | string | You can control the level of detail in the response to prevent over-filtering. The default pipeline is optimized for most websites and LLM input. Optional |
timeout Timeout | integer | Maximum time to wait for the webpage to load. Note that this is NOT the total time for the whole end-to-end request. Optional |
targetSelector Target Selector | string | Provide a list of CSS selector to focus on more specific parts of the page. Useful when your desired content doesn't show under the default settings. E.g., body, .class, #id. Optional |
waitForSelector Wait For Selector | string | Provide a list of CSS selector to wait for specific elements to appear before returning. Useful when your desired content doesn't show under the default settings. E.g., body, .class, #id. Optional |
excludedSelector Excluded Selector | string | Provide a list of CSS selector to remove the specified elements of the page. Useful when you want to exclude specific parts of the page like headers, footers, etc. E.g., header, .class, #id. Optional |
jsonResponse JSON Response | boolean | The response will be in JSON format, containing the URL, title, content, and timestamp (if available). In Search mode, it returns a list of five entries, each following the described JSON structure. Keep in mind JSON Response will take piority over Stream mode if both are enabled. Optional |
forwardCookie Forward Cookie | string | The API server can forward your custom cookie settings when accessing the URL, which is useful for pages requiring extra authentication. Note that requests with cookies will not be cached. E.g., <cookie-name>=<cookie-value>, <cookie-name-1>=<cookie-value>; domain=<cookie-1-domain>. Learn more here. Optional |
useProxyServer Proxy Server URL | string | The API server can utilize your proxy to access URLs, which is helpful for pages accessible only through specific proxies. E.g., http://your_proxy_server.com. Learn more here. Optional |
bypassCache Bypass Cache | boolean | The API server caches both Read and Search mode contents for a certain amount of time. To bypass this cache, set this header to true. Optional |
streamMode Stream Mode | boolean | Stream mode is beneficial for large target pages, allowing more time for the page to fully render. If standard mode results in incomplete content, consider using Stream mode. Learn more here. Keep in mind JSON Response will take piority over Stream mode if both are enabled. Optional |
browserLocale Browser Locale | string | Control the browser locale to render the page. eg. en-US. Learn more here. Optional |
iframeContent Iframe | boolean | Returning result will also include the content of the iframes on the page. Optional |
shadowDomContent Include Shadow DOM Content | boolean | Returning result will also include the content of the shadow DOM on the page. Optional |
pdf PDF File Path or URL | string | The path or URL to the pdf file. Optional |
html HTML File Path or URL | string | The path or URL to the html file. Optional |
syncDir SyncDir | dir | Optional |
REFERENCE
Tool details
Behavior hints are published with the component in the Pipedream registry and surface as MCP tool annotations, so an agent can reason about a tool before it calls it.
- Registry key
- jina_reader-convert-to-llm-friendly-input
- Version
- 1.0.3
- App
- Jina Reader
- Authentication
- API key
- Read-only
- Yes
- Destructive
- No
- Open world
- Yes
- Source
- View on GitHub ↗