add_help_tab( array( 'id' => 'ajaco-overview', 'title' => __( 'Overview', 'aj-agent-crawl-optimizer' ), 'content' => help_tab_overview(), ) ); $screen->add_help_tab( array( 'id' => 'ajaco-features', 'title' => __( 'Features', 'aj-agent-crawl-optimizer' ), 'content' => help_tab_features(), ) ); $screen->add_help_tab( array( 'id' => 'ajaco-developers', 'title' => __( 'For Developers', 'aj-agent-crawl-optimizer' ), 'content' => help_tab_developers(), ) ); $screen->add_help_tab( array( 'id' => 'ajaco-troubleshooting', 'title' => __( 'Troubleshooting', 'aj-agent-crawl-optimizer' ), 'content' => help_tab_troubleshooting(), ) ); $screen->set_help_sidebar( help_sidebar() ); } /** * @return string */ function help_tab_overview(): string { $html = '
' . esc_html__( 'AJ Agent Crawl Optimizer makes your site legible to AI agents.', 'aj-agent-crawl-optimizer' ) . '
'; $html .= '' . esc_html__( 'It exposes machine-readable manifests at well-known URLs (API catalog, MCP server card, agent skills index, OpenAPI spec, llms.txt), serves clean Markdown when an AI requests it via the Accept header, and declares your AI usage preferences in robots.txt. Nothing changes for human visitors.', 'aj-agent-crawl-optimizer' ) . '
'; $html .= '' . esc_html__( 'Each capability is a separate toggle below — enable only what you need. All toggles default to off.', 'aj-agent-crawl-optimizer' ) . '
'; return $html; } /** * @return string */ function help_tab_features(): string { $rows = array( array( __( 'Markdown Negotiation', 'aj-agent-crawl-optimizer' ), 'Accept: text/markdown' ), array( __( 'Content-Signals', 'aj-agent-crawl-optimizer' ), '/robots.txt' ), array( __( 'API Catalog', 'aj-agent-crawl-optimizer' ), '/.well-known/api-catalog' ), array( __( 'MCP Server Card', 'aj-agent-crawl-optimizer' ), '/.well-known/mcp/server-card.json' ), array( __( 'Agent Skills Index', 'aj-agent-crawl-optimizer' ), '/.well-known/agent-skills/index.json' ), array( __( 'WebMCP Tools', 'aj-agent-crawl-optimizer' ), 'navigator.modelContext.provideContext()' ), array( __( 'JSON-LD Schema', 'aj-agent-crawl-optimizer' ), '