Agent Protocol Upgrade: Skills Loading and Background Tasks in Practice
This article explains how the latest agent protocol upgrade addresses three bottlenecks in the tool-calling paradigm: knowledge gaps, blocking execution, and missing interaction with file workarounds. It covers how Skills turn reusable best practices into loadable, versioned assets, how Tasks enable asynchronous background execution through handle-based and state-machine design, how Elicitation keeps humans in the loop, and how planned direct file uploads bypass the context window. It also outlines a phased adoption path and key engineering considerations such as idempotency, timeouts, externalized results, and observability.
1. Background: Three Bottlenecks in the Tool-Calling Paradigm
Over the past two years, the Model Context Protocol (MCP) has gradually become a common standard for agents to connect to external data and systems. It abstracts “how a model discovers capabilities and how it invokes them” into an open specification, allowing the same capability service to be reused across different clients. In real-world business scenarios, however, a tool inventory alone is not enough. Engineering teams commonly run into three types of bottlenecks.
The first is a knowledge gap. Tool names and descriptions can only explain “what can be done,” not “how it should be done in a specific business context.” When facing the same order-placement API, a model might follow the standard flow or skip a compliance check step, making consistent behavior hard to guarantee.
The second is blocking execution. Traditional invocation is synchronous: the agent can only move to the next step after a tool request returns. When a backend task takes tens of seconds or even minutes (batch data processing, dependency builds, report generation), the session is occupied for a long time, degrading both user experience and resource utilization.
The third is missing interaction and file workarounds. When a flow needs user confirmation or additional information midway, there is no standardized pause-and-resume mechanism. Meanwhile, forcing attachment data into the context window wastes tokens and introduces truncation and compliance risks.
The recent protocol upgrade targets these three points directly: using “Skills” to carry reusable domain knowledge, “Tasks” to enable background asynchronous execution, “Elicitation” to complete the human-in-the-loop, and a planned direct file transfer channel that bypasses the context window.
2. Skills: Turning Best Practices into Loadable Assets
The core idea of Skills is that, in addition to exposing tools, a capability service also publishes a structured knowledge package containing applicable conditions, best practices, multi-step workflows, and customized operating guides for different users or organizations. The model loads the relevant content only when it determines it is needed, keeping context usage under control. Skills are updated in sync with the server-side version, so users do not need to install them one by one.
From an engineering perspective, this is equivalent to migrating “prompt engineering” from client-side hardcoding to a versionable server-side asset. A recommended organization is as follows:
skills/store-setup/SKILL.md # Name, applicable scenarios, prerequisitesworkflow.md # Multi-step standard workflowchecklist.md # Validation and rollback pointsexamples/ # Positive and negative examples
Skill descriptions should follow the principle of “high differentiation, low ambiguity”: clearly state trigger conditions and out-of-scope cases, and avoid semantic overlap between multiple skills that could cause incorrect loading. For strong compliance scenarios, it is recommended to write non-omittable steps as hard checks rather than advisory notes.
3. Background Tasks: From Synchronous Blocking to Orchestratable Asynchronous Execution
The Tasks mechanism allows an agent to delegate time-consuming operations, or even entire sub-flows, to the server-side background and continue with other work, retrieving results after completion. The engineering essentials are handle-based design and state-machine design:
Submit task -> return task_idQuery status -> queued | running | succeeded | failed | canceledGet result -> result reference (object storage path/summary)
Four points need attention in implementation. First, idempotency: the submission API should support an idempotency key to avoid duplicate execution caused by retries. Second, timeout and cancellation: clients need to be able to actively terminate tasks and reclaim resources. Third, externalized results: large artifacts should be written to object storage and returned by reference rather than filled back into the context. Fourth, observability: task IDs should be integrated with logging services and monitoring alerts to form end-to-end tracing. Combined with a message queue for peak shaving and priority scheduling, this can prevent background tasks from competing with online requests for resources.
4. Interactive Elicitation: Keeping Humans in the Loop in a Controlled Way
Elicitation allows the server to pause during execution and request additional information or authorization from the user through a form or link, then resume from the breakpoint. Typical scenarios include confirmation before creating billing resources, secondary validation before destructive data operations, and requiring the input of an object name before deletion to confirm intent.
The implementation should follow the principle of least necessity: request only the fields required for the current step; use verifiable confirmation methods such as “input the exact name” for sensitive operations; set a validity period and timeout policy for each elicitation, converting to rejection and rollback after timeout; and keep audit records of all Q&A and authorizations to meet compliance traceability requirements.
5. Direct File Upload and Adoption Roadmap
The planned file upload capability aims to transfer documents, spreadsheets, images, and other files directly to the server without passing through the model context, thereby reducing token consumption and the data exposure surface. In engineering practice, this typically combines pre-signed uploads, content type and size validation, and virus scanning before entering the business pipeline.
A three-step rollout is recommended: first, validate loading accuracy with read-only Skills in a test environment; then introduce background tasks to transform long-running flows; finally, integrate Elicitation and the file channel, and complete permissions, auditing, and alerting. If an enterprise already uses a container platform and a unified gateway, skill distribution, task scheduling, and authentication can be consolidated at the gateway layer to reduce client-side differences.
It should be emphasized that the above capabilities belong to an open specification and its extensions, and are not exclusive to a particular client. Compatible service implementations can be reused in other clients that support the specification. For enterprises that want to validate quickly, a minimal viable pipeline can be built in the Baidu AI Cloud environment, using general-purpose capabilities (object storage, message queue, container platform, logging service, monitoring alerts) to carry skill distribution and task execution, then gradually expanded to production.
