# search

**Identifier:** `linkup_search`

**Provider:** [Linkup](https://kirha.com/providers/linkup.md)

Performs a web search and returns a sourced answer with citations. Ideal for factual questions, quick lookups, and retrieving up-to-date information from the web.

## Run it with the CLI

```bash
kirha tools run linkup_search \
  --input '{
    "query": "<query>"
  }'
```

`--input` takes a JSON object that matches the input schema. Pass `--input -` to read it from stdin.

## Call it over HTTP

```bash
curl https://api.kirha.com/tools/v1/execute \
  --request POST \
  --header 'Content-Type: application/json' \
  --header 'Authorization: **********' \
  --data '{
  "tool_name": "linkup_search",
  "input": {
    "query": "<query>"
  }
}'
```

Replace the stars with an API key from https://app.kirha.com/api-keys.

## Input schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "depth": {
      "default": "fast",
      "description": "standard for questions spanning several topics or sources",
      "enum": [
        "fast",
        "standard"
      ],
      "type": "string"
    },
    "excludeDomains": {
      "description": "Exclude these domains from search results.",
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "includeDomains": {
      "description": "Restrict search to these domains (e.g., ['arxiv.org', 'nature.com']).",
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "maxResults": {
      "description": "Maximum number of source results.",
      "maximum": 20,
      "minimum": 1,
      "type": "number"
    },
    "query": {
      "type": "string"
    }
  },
  "required": [
    "query"
  ],
  "type": "object"
}
```

## Output schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "answer": {
      "type": "string"
    },
    "context": {
      "type": "string"
    },
    "sources": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string"
          },
          "snippet": {
            "type": "string"
          },
          "url": {
            "type": "string"
          }
        },
        "required": [
          "url"
        ],
        "type": "object"
      },
      "type": "array"
    }
  },
  "required": [
    "context",
    "answer",
    "sources"
  ],
  "type": "object"
}
```

-----

[All Linkup tools](https://kirha.com/providers/linkup.md) · [< Back to tools list](https://kirha.com/tools.md)