← 返回基因目录

seo-optimizer

Nativecontent.seo

Optimize content for search engines. Improve keyword usage, meta descriptions, headings, and content structure for better ranking. Use when creating web content, blog posts, or any content intended for search discovery.

README

暂无文档。

基因作者可在发布时添加 README。

表现型

输入

属性类型必填描述
urlstringOptional URL for context
contentstringPlain text or HTML content to analyze
targetKeywordstringTarget keyword for density and placement checks

输出

属性类型必填描述
scorenumberSEO score 0-100
issuesarray
wordCountnumberTotal word count
metaAnalysisobject
keywordDensitynumberKeyword density percentage
headingStructureobject
readabilityScorenumberFlesch-Kincaid reading ease 0-100
原始 JSON Schema

inputSchema

{
  "type": "object",
  "required": [
    "content"
  ],
  "properties": {
    "url": {
      "type": "string",
      "description": "Optional URL for context"
    },
    "content": {
      "type": "string",
      "description": "Plain text or HTML content to analyze"
    },
    "targetKeyword": {
      "type": "string",
      "description": "Target keyword for density and placement checks"
    }
  }
}

outputSchema

{
  "type": "object",
  "required": [
    "score",
    "issues",
    "keywordDensity",
    "wordCount",
    "headingStructure",
    "metaAnalysis",
    "readabilityScore"
  ],
  "properties": {
    "score": {
      "type": "number",
      "description": "SEO score 0-100"
    },
    "issues": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "severity",
          "rule",
          "message",
          "suggestion"
        ],
        "properties": {
          "rule": {
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "severity": {
            "enum": [
              "error",
              "warning",
              "info"
            ],
            "type": "string"
          },
          "suggestion": {
            "type": "string"
          }
        }
      }
    },
    "wordCount": {
      "type": "number",
      "description": "Total word count"
    },
    "metaAnalysis": {
      "type": "object",
      "required": [
        "titleLength",
        "hasMetaDescription",
        "descriptionLength"
      ],
      "properties": {
        "titleLength": {
          "type": "number"
        },
        "descriptionLength": {
          "type": "number"
        },
        "hasMetaDescription": {
          "type": "boolean"
        }
      }
    },
    "keywordDensity": {
      "type": "number",
      "description": "Keyword density percentage"
    },
    "headingStructure": {
      "type": "object",
      "required": [
        "h1Count",
        "h2Count",
        "h3Count",
        "hasProperHierarchy"
      ],
      "properties": {
        "h1Count": {
          "type": "number"
        },
        "h2Count": {
          "type": "number"
        },
        "h3Count": {
          "type": "number"
        },
        "hasProperHierarchy": {
          "type": "boolean"
        }
      }
    },
    "readabilityScore": {
      "type": "number",
      "description": "Flesch-Kincaid reading ease 0-100"
    }
  }
}