﻿# You Inference Router: client web tools need an actual client executor

Distinguish router-executed You.com web tools from client:web_search calls, wiring the real executor, tool response, and source record before treating retrieval as completed.

Author: Retrivium editorial team
Updated: 2026-11-03
Canonical URL: https://retrivium.ai/journal/guide-you-router-client-web-tools/
Language: en

## Assign an execution owner

A custom assistant can let the You.com router retrieve web evidence, or it can retain retrieval in its own application. Decide who runs each tool before declaring it. Otherwise the model can ask for a search that no component executes while the interface incorrectly reports that the web was checked.

## Read the tool-type distinction

The [Web Tools guide](https://you.com/docs/guides/inference-router/web-tools) says `web_search` and `web_extract` are executed by the router, while `client:web_search` declares a function whose call returns to client code. These are different execution contracts, not alternate labels for the same completed search. Preserve the selected type with the request and subsequent observation.

## Complete the client handoff

The [Tool Calling guide](https://you.com/docs/guides/inference-router/tool-calling) describes returned `tool_calls` and sending results back using the associated `tool_call_id`. A client executor must validate arguments, perform its authorized retrieval, and retain the actual source data before continuing. A function name or a model-generated claim of execution is not evidence that retrieval occurred.

For a source-restricted assistant, the client can enforce its own URL policy at that execution boundary. Keep a blocked or failed request visible as its actual outcome. Do not synthesize a successful tool observation just to allow the conversation to proceed to a fluent answer.

## Handle mixed ownership deliberately

The tool-calling guide describes requests containing both client functions and router web tools. A turn returned for a client function is a handoff point, so the application should not infer router web execution from the mere presence of those declarations. Keep observations grouped by the calls that actually occurred rather than by every tool listed in the request.

## Preserve final source records

For router-run web retrieval, the web-tools guide documents `web_results`, including its final-chunk placement in streaming. Capture those sources separately from partial answer text. The [quickstart](https://you.com/docs/guides/inference-router/quickstart) also distinguishes router authentication from direct Search and Contents calls; a client executor must use the contract of the surface it actually calls.

The local guides to [tool observations](/journal/learn-codex-tool-observation/) and [task contracts](/journal/learn-codex-task-contract/) help verify the boundary. Test a returned client call, a failed retrieval, and a router-run search. Each should leave an explicit executor and source outcome before the application claims a web-grounded answer.
