From Calling Models to Calling Capabilities: A Practical Guide to LLM Application Capability Access and Self-Building

    This article explains how LLM application development is shifting from basic text generation to orchestrable tool interfaces, covering the technical background of capability access, a breakdown of core capabilities such as web search with citations, deep-thinking search, file input, URL reading, and safety checks. It also shows parameterized tool orchestration, two-dimension cost structures with optimization strategies, and a compliance checklist, helping developers decide how to enable, tune, and operate these capabilities by scenario.

    1. From Calling a Model to Calling a Capability: The Technical Background of Capability Access

    For a long time, developers building conversational applications could only rely on a model’s basic text generation. Any requirement involving real-time information, external documents, web content, or multimodal input forced developers to build their own retrieval, parsing, and speech pipelines, then stitch the results into the prompt. The problem with this approach is that the chain is long, has many failure points, requires each segment to be maintained separately, and is hard to trigger dynamically during inference.

    The recent industry trend is to move these “peripheral capabilities” down into orchestrable tool interfaces implemented on the platform side, which developers enable through parameter switches and tool declarations. Three changes are fundamental:

    • Capabilities shift from being built into the application to being callable through interfaces, significantly reducing reuse costs.
    • Triggering shifts from a fixed flow pre-orchestrated by the developer to the model deciding on its own when to call a capability.
    • Billing shifts from token-only charging to two-dimension metering of model tokens plus tool calls.

    Understanding these three points is the basis for judging whether a capability access solution is truly usable.

    2. A General Technical Breakdown of Core Capabilities

    2.1 Web Search and Citation Traceability

    In non-reasoning mode, once the web search tool is enabled, the model decides whether retrieval is needed based on the semantics of the user’s question, automatically launches a web or image search, and attaches source citations to the answer. The technical key is not “being able to search” but “when to search” and “how to label sources.” The former depends on the model’s intent recognition; the latter depends on structured retrieval results (title, link, summary, timestamp). In engineering practice, citation fields must be preserved; otherwise answers cannot be audited or meet fact-verification requirements.

    2.2 Deep-Thinking Search: Alternating Reasoning and Retrieval

    In reasoning mode, the model embeds retrieval into multi-step reasoning: it first breaks down the question, then searches, reads, and compares, performs a second retrieval if necessary, and finally converges on a conclusion. Such implementations typically appear as a “think-search-think again” loop. The engineering difficulty lies in termination condition control and context expansion management. Without constraints, repeated retrieval and excessive context can cause costs to spike. A practical approach is to set a maximum number of retrieval rounds, a cap on results returned per round, and a timeout threshold.

    2.3 File Input: Parsing Quality Sets the Ceiling for Answers

    Support for formats such as PDF, office documents, and images is provided with two modes: plain text extraction and layout-aware parsing with text and images. The former is low-cost and suitable for text like contracts and reports; the latter preserves layout and chart position information and is suitable for scanned documents and table-dense documents. The practical recommendation is to route by format first, then choose the parsing mode; for very long documents, use segmented parsing plus summary indexing to avoid loading everything into the context at once.

    Once the link reading tool is enabled, the model can recognize web addresses in messages, fetch the main content, and answer in context. The most common problem here is main-content extraction quality: if navigation, ads, and recommendation slots are not cleaned, they directly pollute the answer. Therefore, main-content location and noise filtering are needed after fetching, along with clear fallback messages for fetch failures, login-required pages, and dynamically rendered pages.

    2.5 Model Safety: Two-Way Risk Control for Input and Output

    Safety check parameters can perform basic review on both input and output, returning a refusal flag when a risk is hit. It is worth emphasizing that developers providing services to external users should, in addition to enabling this parameter, fulfill obligations such as content safety review, registration related to large models, and generated content labeling. Safety is not optional but a precondition for going live.

    3. Parameterized Invocation and Tool Orchestration in Practice

    The three mainstream interface forms (message-based, response-based, and chat-completion-based) usually expose unified tool declarations and switches. The illustrative code below only expresses the structure and does not represent field naming of any specific platform:

    1. response = client.chat(
    2. model="deepseek-flash",
    3. messages=[{"role": "user", "content": "Summarize the core risks in this annual report"}],
    4. tools=[
    5. {"type": "deepseek_web_search"}, # Web search
    6. {"type": "deepseek_read_url"}, # Link reading
    7. ],
    8. file_ids=["file-xxx"], # File input
    9. thinking=True, # Deep-thinking search
    10. safety_check=True, # Safety check
    11. )

    There are two typical orchestration strategies. One is “enable everything,” declaring all capabilities to the model and letting it schedule them autonomously; this requires the least development work but offers weak controllability. The other is “trim by scenario,” for example enabling only search and safety in a customer service scenario, and enabling deep thinking and file parsing only in research and analysis scenarios. The latter is more recommended for production, combined with timeout, retry, and fallback chains.

    4. Cost Structure and Optimization

    Expanded capabilities introduce two-dimension billing: model token fees and tool call fees, with the latter calculated by the type and usage of tools actually called. Optimization directions include:

    • Retrieval pre-judgment: simple Q&A does not trigger web search, reducing invalid calls.
    • Result caching: build short-term caches for high-frequency queries to reduce repeated fetching.
    • Tiered parsing: use plain text parsing where layout-aware parsing is unnecessary.
    • Context trimming: inject only fragments relevant to the question to control tokens and retrieval rounds.

    5. Compliance and Go-Live Checklist

    • Is safety check enabled and are refusal flags preserved?
    • Are content safety review mechanisms and generated content labeling in place?
    • Are citation sources retained for traceability?
    • Are retrieval rounds, timeouts, and cost alerts configured?
    • Are user-understandable fallback explanations provided for fetch and parsing failures?

    6. Conclusion

    Making application-layer capabilities available through interfaces compresses the barrier to “replicating a complete conversational application” from weeks of engineering to parameter configuration. But a lower barrier does not mean complexity disappears: retrieval quality control, context management, cost constraints, and compliance obligations still determine whether an application can run stably over the long term. Developers should treat capability access as a toolbox rather than a final answer, trimming by scenario and tuning by metrics to truly gain the benefits.