California Code

v0.2.1
io.github.pipeworx-io/california-code Checked 1 day ago Published 1 month ago

California Codes — the text of California statutes, by citation.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

ca_code_section

Get the FULL TEXT of a section of the California Codes — California state statutes — by citation. "Penal Code 187" is code "PEN", section "187". Returns the statutory text, where it sits in the code, and when it was last amended. Keyless. Use for "what does California Penal Code 187 say", "text of California Civil Code 1542", or to check a California statute a contract or case relies on.

ParameterTypeDescription
code *stringCalifornia code abbreviation, e.g. "PEN" (Penal), "CIV" (Civil), "VEH" (Vehicle), "LAB" (Labor). Call ca_codes to see all 29.
section *stringSection number as cited, e.g. "187" or "1542". Subdivisions like "187(a)" are not separate documents — pass the section.

ca_codes

List the 29 California codes with their subjects — Penal Code is PEN, Vehicle Code is VEH, Labor Code is LAB, and so on. Keyless. Use when you know the subject area but not which code governs it, before calling ca_code_section.

ParameterTypeDescription
subjectstringOptional subject to filter by, e.g. "divorce", "wages", "DUI".