{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/vruum-ai/json-schema/vruum-ai-facade-fetch-request-schema.json",
  "title": "FacadeFetchRequest",
  "description": "Body for the polymorphic ``fetch`` facade tool.",
  "x-generated": "2026-11-28",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/vruum-ai-openapi.json#/components/schemas/FacadeFetchRequest",
  "properties": {
    "type": {
      "type": "string",
      "title": "Type",
      "description": "Entity type to fetch. One of: workspace_fit_context, operation_contract, history_import_setup, history_imports, history_import_people, history_import_preview, history_import, history_import_batches, person_history_imports, relationship_history, relationship_history_detail, web_source, search_visibility, research_work_list, research_work, account_brief, account_research, account_context, similar_accounts, next_move, offer_publication, buyer_inquiry, conversation_history, conversation_commitments, conversation_reply_plan, conversation_meetings, measurement_projects, journey_comparison, deal_decision_plan, objective_workspace, objective_measurement, research_answers, research_run, research_sources, research_columns, research_column_fill, research_cells, workspace_research_answers, workspace_research_columns, workspace_research_column_fill, workspace_research_cells, objective, csv_import, company_resolution_queue, plan, conversation, person_research, company_research, company_family, customer_impact, customer_work, customer_work_handoffs, lifecycle_handoffs, journey_sales_handoff, account_state, unit_economics, motion_economics, motions, growth_formula, bowtie, retention, actions_inbox, action, attention_portfolio, experiments, experiment, experiment_assignments, insights, scoreboard, settings, billing, budgets, publish_readiness, research_playbook, job, skill, deal, deal_pipelines, deal_alerts, deal_outcome_reviews, post_analytics, seller_signals, stats, marketing, ads, relationship_attempt, claim, asset."
    },
    "subtype": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Subtype",
      "description": "Variant selector — required for insights (quality | pattern_tags | prompts | benchmarks | improve | reply_diagnosis), scoreboard (impact | bowtie) and settings (profile | automation | marketing | channel_status | booking_link | objective_delegations | ai_compute | record_views | team_job_roles | team_facts | guidance). Other types take no subtype."
    },
    "id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Id",
      "description": "Entity id (see the per-type semantics in the tool description). An ARRAY of ids is accepted for objective, plan, person_research and company_research (max 100). For job polling, pass the scalar job UUID returned by async tools; a one-element array is accepted and normalized for agent ergonomics."
    },
    "filters": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Filters",
      "description": "Extra query filters for the types that take them: account_context {sections? (array of account | people | deals | messages | meetings | commitments | decisions | open_actions | next_move), people_limit? (1-100, default 25), deals_limit? (1-50, default 10), messages_limit? (per channel, 1-20, default 5), excerpt_chars? (40-2000, default 280), meetings_limit? (1-20, default 5), passages_limit? (per meeting, 1-10, default 3), commitments_limit? (1-50, default 10), decisions_limit? (1-50, default 10), open_actions_limit? (1-50, default 20)}; similar_accounts {objective_id? (one UUID), days? (30-730, default 365)}; research_work_list {objective_id?, company_id?, limit? (1-50, default 10), offset? (0-10000, default 0)}; stats.outreach {start_date?, end_date?}; stats.prose {days? (default 30, 1-90)}; marketing.activity {days?, limit?}; ads.attribution {window_days?, objective_id?, by (creative|audience, REQUIRED)}; ads.targeting_entities {facet (titles|seniorities|industries|locations|staff_count_ranges), q (min 2 chars), integration_id?}; deal_pipelines {include_archived?}; bowtie {start_date?, end_date? (YYYY-MM-DD), objective_id? (UUID, comma-separated UUIDs or an array), ltv_horizon_years? (1-10, the declared lifetime horizon), run_id? (the approved First Impact observation run behind VM7, CR6 and Δt6)}; retention {start_date, end_date (YYYY-MM-DD, both required), objective_id? (same forms as bowtie), ltv_horizon_years? (1-10)}; actions_inbox {limit? (1-500, default 200), offset?}; experiments {objective_id? (one UUID), limit? (1-50, default 20), knowledge_cutoff? (ISO instant)}; experiment {knowledge_cutoff?}; experiment_assignments {arm? (control | treatment), after? (the previous page's next_after), limit? (1-200, default 100)}; insights.benchmarks {industry?, channel?, objective_id? (same forms as bowtie; the objectives whose declared scope the rows are compared with, default the active ones)}; scoreboard {window_days?}; customer_work {cutoff? (ISO instant with a timezone, not in the future), offset? (0-10000)}; unit_economics {window_days?, hourly_rate_usd?, horizon_years?, reporting_entity_id?, knowledge_cutoff?}; motions {start_date, end_date (YYYY-MM-DD, 7-365 UTC dates), offset? (0+), limit? (1-10), hourly_rate_usd?, horizon_years? (1-10), reporting_entity_id?, knowledge_cutoff?}; motion_economics {window_days? (7-365, default 30), hourly_rate_usd?, horizon_years? (1-10, the declared lifetime horizon), reporting_entity_id? (finance entity UUID; default the workspace's one entity), knowledge_cutoff? (past ISO instant)}; seller_signals {draft_brief?, include_posts?, include_notes?, include_knowledge?}; company_research {requested_fields: [company_summary|company_stage|current_priorities|funding_data|growth_metrics]}. Unknown keys are rejected with 422; other types take no filters."
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "type"
  ]
}