identity:
  name: jina_reader
  author: Dify
  label:
    en_US: Fetch Single Page
    zh_Hans: 获取单页面
    pt_BR: Fetch Single Page
description:
  human:
    en_US: Fetch the target URL (can be a PDF) and convert it into a LLM-friendly markdown.
    zh_Hans: 获取目标网址（可以是 PDF），并将其转换为适合大模型处理的 Markdown 格式。
    pt_BR: Busque a URL de destino (que pode ser um PDF) e converta em um Markdown LLM-friendly.
  llm: A tool for scraping webpages. Input should be a URL.
parameters:
  - name: url
    type: string
    required: true
    label:
      en_US: URL
      zh_Hans: 网址
      pt_BR: URL
    human_description:
      en_US: Web link
      zh_Hans: 网页链接
      pt_BR: URL da web
    llm_description: url para scraping
    form: llm
  - name: request_params
    type: string
    required: false
    label:
      en_US: Request params
      zh_Hans: 请求参数
      pt_BR: Parâmetros de solicitação
    human_description:
      en_US: |
        request parameters, format: {"key1": "value1", "key2": "value2"}
      zh_Hans: |
        请求参数，格式：{"key1": "value1", "key2": "value2"}
      pt_BR: |
        parâmetros de solicitação, formato: {"key1": "value1", "key2": "value2"}
    llm_description: request parameters
    form: llm
  - name: target_selector
    type: string
    required: false
    label:
      en_US: Target selector
      zh_Hans: 目标选择器
      pt_BR: Seletor de destino
    human_description:
      en_US: css selector for scraping specific elements
      zh_Hans: css 选择器用于抓取特定元素
      pt_BR: css selector para scraping de elementos específicos
    llm_description: css selector of the target element to scrape
    form: form
  - name: wait_for_selector
    type: string
    required: false
    label:
      en_US: Wait for selector
      zh_Hans: 等待选择器
      pt_BR: Aguardar por seletor
    human_description:
      en_US: css selector for waiting for specific elements
      zh_Hans: css 选择器用于等待特定元素
      pt_BR: css selector para aguardar elementos específicos
    llm_description: css selector of the target element to wait for
    form: form
  - name: image_caption
    type: boolean
    required: false
    default: false
    label:
      en_US: Image caption
      zh_Hans: 图片说明
      pt_BR: Legenda da imagem
    human_description:
      en_US: "Captions all images at the specified URL, adding 'Image [idx]: [caption]' as an alt tag for those without one. This allows downstream LLMs to interact with the images in activities such as reasoning and summarizing."
      zh_Hans: "为指定 URL 上的所有图像添加标题，为没有标题的图像添加“Image [idx]: [caption]”作为 alt 标签，以支持下游模型的图像交互。"
      pt_BR: "Adiciona legendas a todas as imagens na URL especificada, adicionando 'Imagem [idx]: [legenda]' como uma tag alt para aquelas que não têm uma. Isso permite que os modelos LLM inferiores interajam com as imagens em atividades como raciocínio e resumo."
    llm_description: Captions all images at the specified URL
    form: form
  - name: gather_all_links_at_the_end
    type: boolean
    required: false
    default: false
    label:
      en_US: Gather all links at the end
      zh_Hans: 将所有链接集中到最后
      pt_BR: Coletar todos os links ao final
    human_description:
      en_US: A "Buttons & Links" section will be created at the end. This helps the downstream LLMs or web agents navigating the page or take further actions.
      zh_Hans: 末尾将添加“按钮和链接”部分，方便下游模型或网络代理做页面导航或执行进一步操作。
      pt_BR: Um "Botões & Links" section will be created at the end. This helps the downstream LLMs or web agents navigating the page or take further actions.
    llm_description: Gather all links at the end
    form: form
  - name: gather_all_images_at_the_end
    type: boolean
    required: false
    default: false
    label:
      en_US: Gather all images at the end
      zh_Hans: 将所有图片集中到最后
      pt_BR: Coletar todas as imagens ao final
    human_description:
      en_US: An "Images" section will be created at the end. This gives the downstream LLMs an overview of all visuals on the page, which may improve reasoning.
      zh_Hans: 末尾会新增“图片”部分，方便下游模型全面了解页面的视觉内容，提升推理效果。
      pt_BR: Um "Imagens" section will be created at the end. This gives the downstream LLMs an overview of all visuals on the page, which may improve reasoning.
    llm_description: Gather all images at the end
    form: form
  - name: proxy_server
    type: string
    required: false
    label:
      en_US: Proxy server
      zh_Hans: 代理服务器
      pt_BR: Servidor de proxy
    human_description:
      en_US: Use proxy to access URLs
      zh_Hans: 利用代理访问 URL
      pt_BR: Use proxy to access URLs
    llm_description: Use proxy to access URLs
    form: form
  - name: no_cache
    type: boolean
    required: false
    default: false
    label:
      en_US: Bypass the Cache
      zh_Hans: 绕过缓存
      pt_BR: Ignorar o cache
    human_description:
      en_US: Bypass the Cache
      zh_Hans: 是否绕过缓存
      pt_BR: Ignorar o cache
    llm_description: bypass the cache
    form: form
  - name: summary
    type: boolean
    required: false
    default: false
    label:
      en_US: Enable summary
      zh_Hans: 是否启用摘要
      pt_BR: Habilitar resumo
    human_description:
      en_US: Enable summary for the output
      zh_Hans: 为输出启用摘要
      pt_BR: Habilitar resumo para a saída
    llm_description: enable summary
    form: form
  - name: max_retries
    type: number
    required: false
    default: 3
    label:
      en_US: Retry
      zh_Hans: 重试
      pt_BR: Repetir
    human_description:
      en_US: Number of times to retry the request if it fails
      zh_Hans: 请求失败时重试的次数
      pt_BR: Número de vezes para repetir a solicitação se falhar
    llm_description: Number of times to retry the request if it fails
    form: form
