AgentSkillsCN

year-make-model

使用CarsXE YMM API,根据年份、品牌与车型查询车辆数据。当用户没有VIN,但知道车辆的年份、品牌与车型,并希望获取车辆的规格、配置或功能时使用。

SKILL.md
--- frontmatter
name: year-make-model
description: Look up vehicle data by Year, Make, and Model using the CarsXE YMM API. Use this when a user doesn't have a VIN but knows the year, make, and model of a vehicle and wants specs, trims, or features.

When the user asks about a vehicle by year, make, and model (without a VIN):

  1. Make an HTTP GET request:
    code
    GET https://api.carsxe.com/v1/ymm?key={CARSXE_API_KEY}&year={YEAR}&make={MAKE}&model={MODEL}[&trim={TRIM}]
    
    Only include trim if the user specified one.
  2. Present available trims, engine options, features, and specs.
  3. If the user didn't specify a trim, list all available trims for that year/make/model.
  4. If the API key is missing, tell the user to set the CARSXE_API_KEY environment variable.