Tool & function calling
AuraScore 81/100

Multimodal Canvas Tool Calling Specification Brief

Design function-calling schemas and execution logic for conversational image editing and canvas operations.

Use this template when building conversational agent systems that need to invoke inpainting, outpainting, and layered image editing tools. It establishes clear JSON schemas, parameter routing, and fallback behaviors for multimodal diffusion workflows.

Template

Role: Senior Multimodal Systems Architect specializing in conversational image manipulation pipelines.

Context

  • Target diffusion backend: {{target_diffusion_model}}
  • Available image editing operations: {{editing_toolkit}}
  • Target response time SLA: {{latency_budget}}
  • Concurrency allowance: {{max_parallel_calls}}
  • Error handling strategy: {{error_fallback_mode}}
  • User intent boundaries: {{user_intent_scope}}

Task

Produce a technical implementation brief that specifies the tool-calling schemas, parameter resolution logic, and execution lifecycle for an agent controlling {{editing_toolkit}} on {{target_diffusion_model}} within {{user_intent_scope}}.

Method

  1. Map conversational visual editing intents to discrete tool endpoints in {{editing_toolkit}}.
  2. Define rigid JSON schemas for each tool, including bounding box coordinates, mask parameters, and prompt weighting fields.
  3. Establish dependency graphs for sequential operations such as background removal followed by inpainting.
  4. Define argument validation rules to enforce {{latency_budget}} constraints and compute limits.
  5. Design dispatch mechanisms supporting up to {{max_parallel_calls}} simultaneous tool invocations.
  6. Specify fallback workflows using {{error_fallback_mode}} when spatial or semantic parsing fails.
  7. Detail the multimodal response packaging required to return modified image artifacts and status logs to the user.

Constraints

  • MUST define valid JSON schema representations for every declared tool.
  • MUST NOT allow ambiguous spatial coordinate systems across different canvas aspect ratios.
  • MUST enforce strict input validation prior to invoking {{target_diffusion_model}}.
  • Keep the brief under 800 words, focusing purely on engineering execution.
  • Limit architectural trade-offs to latency versus image fidelity.

Output format

1. Tool Schema Registry

Table of function signatures, parameter types, required fields, and functional descriptions.

2. Dispatch and Orchestration Logic

Step-by-step state machine describing intent extraction, parameter resolution, and invocation order.

3. Failure and Recovery Protocols

Actionable recovery matrix for tool timeouts, invalid masks, and parameter drift using {{error_fallback_mode}}.

Self-review

  • Ensure all variables ({{target_diffusion_model}}, {{editing_toolkit}}, {{latency_budget}}, {{max_parallel_calls}}, {{error_fallback_mode}}, {{user_intent_scope}}) are directly addressed.
  • Verify all function signatures conform to standard tool-calling format conventions.
  • Confirm error states account for multimodal coordinate mismatches.
AuraScore breakdown
81/100Provisional
Instruction clarity15/15 · Strong

Explicit role, a named task, and discrete steps the model can follow.

Context architecture12/12 · Strong

Background, inputs and variables the model needs before it starts.

Constraint engineering10/12 · Adequate

Hard boundaries — what the model must and must not do.

Output specification6/14 · Thin

A named, field-level shape for the response.

Reasoning structure10/10 · Strong

Ordered work items that force analysis before an answer.

Model compatibility10/10 · Strong

Length and structure that travel across frontier models.

Token efficiency5/10 · Thin

Signal density — instruction weight without padding.

Reusability7/7 · Strong

Documented variables so the scaffold adapts to new inputs.

Robustness5/5 · Strong

Quality bar, assumptions and behaviour when inputs are thin.

Observed performance1/5 · Thin

How much real usage the template has behind it.

ai-agents
agents-tool-calling
image-multimodal-prompting
function-calling
multimodal
image-editing