AI Capability Protocol Upgrade: Skills, Background Tasks, and Direct File Upload

    This article explains how AI capability protocols are evolving from simple tool exposure toward agent-to-agent collaboration. It covers four capability areas—skill packages, background tasks, interactive confirmation, and direct file upload—and shows how they redraw the boundary between the control plane and the data plane. It also addresses multi-server coordination, security governance, a phased rollout plan, and the metrics worth tracking. Readers will find conceptual JSON and pseudocode examples, design cautions, and practical guidance for turning existing APIs into capability endpoints built for agents.

    From “Calling Tools” to “Getting Work Done”: How the AI Capability Protocol Is Being Upgraded

    AI applications are moving from one-shot question answering toward task-oriented agents. In the past, external capability servers typically exposed only tool names, parameter descriptions, and return-value structures to the model. The model knew which tools existed, but not necessarily how they should be combined in a specific business context. This creates two problems. First, complex business knowledge ends up scattered across prompts, documents, and human experience, so the model struggles to reproduce it reliably. Second, long-running operations can only be awaited synchronously, while interaction, approval, and file transfer are squeezed into the model’s context window—which is neither economical nor safe.

    Around four capability areas—invoking specialized skills, executing background tasks, requesting information interactively, and uploading files directly—the capability protocol is turning external servers from plain tool providers into agent collaboration endpoints that can carry business knowledge, asynchronous tasks, and human-in-the-loop coordination. The core change is not a few extra endpoints. It is a redrawing of the line between control plane and data plane: the model understands the goal, selects skills, and orchestrates the flow; the server executes specialized skills, persists task state, and initiates confirmations when needed; large objects such as files travel over a separate channel, and the model keeps only the necessary references.

    1. From Tool Descriptions to Skill Packages: Capturing “How the Business Actually Works”

    Traditional tool calling operates at a fine granularity—for example, “query order,” “calculate amount,” “submit form.” Such tools perform atomic actions but cannot express a complete business process. A refund review, for instance, should first validate order status, then apply amount rules, then check risk-control conditions, and finally request human confirmation. Packing all of that into a system prompt consumes context and makes the knowledge hard to maintain per tenant, per version, and per scenario.

    The value of a skill package is that it publishes the capability together with the procedure. A skill package can typically contain: applicable scenarios, business constraints, best practices, multi-step flows, example inputs and outputs, dependent tools, exception-handling guidance, and tenant-specific operating instructions. The model does not need to load every skill at initialization; it retrieves, loads, and executes the relevant skill on demand based on the user’s goal. This reduces context consumption and lets business rules update in step with the capability server, cutting down on separate client-side installation and manual configuration.

    Conceptually, a skill manifest can be abstracted as follows (illustrative only, not a real interface definition):

    1. {
    2. "skill": "refund-review",
    3. "version": "1.2.0",
    4. "description": "Rule validation and approval preparation before processing a refund request",
    5. "guidance": [
    6. "Validate order status and payment status first",
    7. "Calculate the refundable amount according to business rules",
    8. "High-risk scenarios must request human confirmation"
    9. ],
    10. "tools": ["query_order", "calculate_refund", "submit_approval"],
    11. "inputs": {
    12. "order_id": "string",
    13. "reason": "string"
    14. },
    15. "tenant_overrides": {
    16. "approval_threshold": "determined by tenant policy"
    17. }
    18. }

    When designing skill packages, avoid writing boundless natural-language prose. A safer approach: state the applicable and non-applicable scope explicitly; express mandatory rules as verifiable conditions; keep recommendations separate from hard constraints; define success, failure, and human-intervention conditions for each step; and give each skill a version number, compatibility range, and rollback strategy. The closer a skill is to an “executable work instruction,” the more reliably the model can follow it.

    At the application level, skill packages are well suited to industry processes and internal enterprise standards. In e-commerce, steps such as storefront page design, product information updates, and campaign configuration can be packaged as skills. In customer operations, configuration onboarding, data validation, and exception handling can be packaged as skills. In enterprise analytics, metric definitions, data permissions, and analysis templates can be packaged as skills. The model only identifies intent and dispatches; the business knowledge itself is maintained continuously on the server side.

    2. Background Tasks: Replacing Synchronous Waiting with Asynchronous Orchestration

    When a tool call takes a long time, synchronous mode blocks the agent from doing anything else. A background task mechanism lets the model delegate a long-running operation—or an entire execution flow—to the capability server. The server runs it in the background, the model handles other requests in the meantime, and the result is retrieved later. This upgrades the agent from a short “call once, wait once” loop to task orchestration that is concurrent, resumable, and traceable.

    A practical background task model usually needs an explicit state machine, for example: created, running, waiting for user, succeeded, failed, cancelled, timed out. State transitions should be queryable, and results should include a summary, structured artifacts, and error reasons. For operations with side effects, the mechanism should also support idempotency keys, retry limits, compensating actions, and manual termination. A task cannot merely be “running in the background”—it must have lifecycle management, otherwise duplicate execution, resource leaks, and unclear ownership follow quickly.

    At the pseudocode level, this can be abstracted as:

    1. task = capability_server.create_task(
    2. skill="batch_data_quality_check",
    3. inputs=params,
    4. callback_context=request_id
    5. )
    6. # The client does not have to block; it can keep handling other requests
    7. if task.status in {"running", "waiting_user"}:
    8. schedule_poll_or_callback(task.id)
    9. # Once the task finishes, fetch the standardized result
    10. result = capability_server.get_task_result(task.id)

    Key design points for the task mechanism:

    1. Task granularity must be right. Too fine and state management becomes complex; too coarse and observability drops.
    2. Inputs and outputs must be serializable. Avoid stuffing transient session objects into a task.
    3. Progress and results must be auditable. Record who initiated it, which skill was invoked, and which permissions were used.
    4. Set timeouts, quotas, and concurrency limits so background tasks cannot pile up indefinitely.
    5. Failure recovery must distinguish retryable from non-retryable errors, and high-risk operations must not be automatically repeated.

    3. Interactive Information Requests: Making High-Risk Operations Pausable, Confirmable, and Resumable

    While executing a task, an agent frequently reaches points where the user must supply information or grant explicit authorization. An interactive request mechanism lets the server pause mid-task and ask the user for input, additional parameters, or confirmation of a high-risk operation through a form, a link, or a structured prompt—then continue from the interruption point. This effectively makes “human in the loop” a protocol capability rather than something the model has to improvise in conversation.

    Typical scenarios: confirming the cost impact before creating billing resources; requiring a second confirmation before a destructive data-structure change; requiring the user to type a repository name before deleting a high-value asset; letting the user choose an approval policy before submitting for approval; obtaining explicit authorization before processing privacy data. Compared with the model asking on its own, server-initiated requests are more controllable: question structure, validation rules, timeout policy, and audit records are all defined by the business system.

    A conceptual model can be expressed as:

    1. {
    2. "interaction": "confirm_destructive_operation",
    3. "reason": "An irreversible data cleanup is about to be executed",
    4. "fields": [
    5. {"name": "confirm_text", "type": "string", "required": true}
    6. ],
    7. "risk": "high",
    8. "expires_in": "10m"
    9. }

    The design should avoid “confirmation fatigue.” Low-risk operations should not interrupt the user frequently; medium-risk operations should state the impact scope clearly; high-risk operations should use stronger constraints such as typing a name, dual review, or separation of duties. Request state should be persisted and support timeout cancellation, revocation, and failure rollback. For interactive content returned by the server, the client should also verify provenance and isolate the display, so malicious content cannot masquerade as a system prompt and induce the user to authorize something.

    4. Direct File Upload: Moving Large Objects Out of the Model Context

    If documents, spreadsheets, and images all pass through the model’s context window, they add cost, latency, and privacy exposure. Direct file upload lets the client or the model transfer a file straight to the capability server; the model receives only a file identifier, metadata, and a necessary summary, while parsing, storage, and processing happen on the server side. This is control-plane/data-plane separation in practice: the model decides what to do, and the file channel handles where the data goes.

    A secure direct-upload flow typically includes: requesting upload intent, validating file type and size, uploading directly, server-side malware scanning and content validation, issuing a file reference, passing that reference in subsequent tool calls, and cleaning up expired files per policy. File references should carry a permission scope, an expiry, and a checksum so they cannot be reused by other sessions or tenants.

    A sketch of the flow:

    1. file_ref = capability_server.request_upload(
    2. purpose="process_spreadsheet",
    3. content_type="spreadsheet"
    4. )
    5. upload_file(file_ref, local_file)
    6. validation = capability_server.validate_file(file_ref)
    7. result = capability_server.invoke_skill(
    8. skill="analyze_spreadsheet",
    9. inputs={"file_ref": file_ref}
    10. )

    Data governance deserves particular attention here: whether files may be accessed across tenants; whether encrypted storage is mandatory; whether originals are retained; whether parsed text ends up in logs; and how files are deleted after the user revokes authorization. For sensitive files, the best approach is least privilege, short-lived credentials, and automatic cleanup on expiry. Direct upload is not simply a way to bypass the context window—it shifts security responsibility forward onto the capability server and the client’s upload channel.

    5. Coordinating Multiple Servers: Capability Discovery, Conflict Resolution, and Unified Auditing

    Complexity rises sharply once an agent connects to several capability servers. Different servers may offer similar skills, and naming collisions, inconsistent permission boundaries, and scattered task state are common. What is needed is a capability registration and selection mechanism: choose the appropriate skill based on tenant policy, data location, trust level, cost, and latency; build a unified task view across servers; and define clear dependencies and abort strategies for cross-server flows.

    For example, an analytics task might first fetch metrics from a data server, then call a document server to generate a report, and finally request human approval. If one step needs user confirmation, the whole flow should be able to pause while retaining context. If two servers both claim to provide the same skill, prefer the option where data does not cross domains, permissions are narrower, and auditing is more complete. Conflicting skill instructions should not simply be stacked; a higher-level policy engine should decide priority.

    Multi-server deployments also need unified observability: use one request identifier to thread together skill selection, task execution, request records, and file access; log input summaries, output summaries, and elapsed time for cross-server calls; and provide replayable event records for failed chains. Otherwise, when something breaks it is very hard to tell whether the model chose wrongly, a skill version was incompatible, or the server itself failed.

    6. Security Governance and Engineering Recommendations

    This kind of capability upgrade expands the range of systems an agent can reach, so governance must be designed alongside it. First, least privilege: every skill, task, and file reference should have its own authorization scope, so a single grant does not cover all capabilities. Second, trustworthy skill sources: sign, review, and version skill manifests to prevent malicious instruction injection. Third, mandatory human confirmation for high-risk operations, with non-repudiable audit records of the confirmation outcome. Fourth, data minimization: keep only necessary summaries in the model context, and pass files and large results by reference.

    Implementation can proceed in phases. In phase one, inventory existing tools, package high-frequency, clearly ruled, multi-step business flows as skill packages, and establish versioning and testing. In phase two, introduce background tasks, convert long-running operations to asynchronous execution, and fill in status queries, timeouts, retries, and idempotency. In phase three, add interactive requests for high-risk operations, with clear authorization interfaces and audit fields. In phase four, enable direct file upload and complete content validation, storage policy, and cleanup. Only then move on to multi-server coordination and a unified policy engine.

    When evaluating results, do not look only at single-call success rate. Also track task completion rate, human intervention rate, mean time to recovery, duplicate execution rate, audit coverage of sensitive operations, and changes in context consumption. For developers, the key idea is to design external services as capability endpoints for agents rather than exposing existing interfaces to the model as-is. For enterprises, the key is to establish three baselines: skill governance, permission governance, and audit governance.

    Overall, the point of upgrading the capability protocol is to move AI from “being able to call tools” to “being able to collaborate and get work done according to specialized processes.” Skill packages solve knowledge expression, background tasks solve the execution model, interactive requests solve high-risk decisions, and direct file upload solves the data channel. Combined, these four make it possible for agents to plug into business systems that are orchestrable, interruptible and resumable, and auditable. Such capabilities should also be implemented through open specifications and extension mechanisms, so servers supporting them can run in compatible clients. That lowers ecosystem lock-in risk and leaves developers more architectural freedom.